Skip to content

Commit 51c5367

Browse files
committed
Updating MF14
1 parent e937bc3 commit 51c5367

12 files changed

+38
-42
lines changed

CMakeLists.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ if( ENDFtk.python )
274274
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/13.python.cpp
275275
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/13/TotalCrossSection.python.cpp
276276
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/13/PartialCrossSection.python.cpp
277-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14.python.cpp
278-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/IsotropicDiscretePhoton.python.cpp
279-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/LegendreCoefficients.python.cpp
280-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/TabulatedDistribution.python.cpp
281-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/LegendreDistributions.python.cpp
282-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/TabulatedDistributions.python.cpp
277+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14.python.cpp
278+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/IsotropicDiscretePhoton.python.cpp
279+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/LegendreCoefficients.python.cpp
280+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/TabulatedDistribution.python.cpp
281+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/LegendreDistributions.python.cpp
282+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/14/TabulatedDistributions.python.cpp
283283
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/15.python.cpp
284284
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/15/OutgoingEnergyDistribution.python.cpp
285285
${CMAKE_CURRENT_SOURCE_DIR}/python/src/section/15/TabulatedSpectrum.python.cpp
@@ -306,7 +306,7 @@ if( ENDFtk.python )
306306
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/10.python.cpp
307307
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/12.python.cpp
308308
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/13.python.cpp
309-
# ${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/14.python.cpp
309+
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/14.python.cpp
310310
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/15.python.cpp
311311
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/23.python.cpp
312312
${CMAKE_CURRENT_SOURCE_DIR}/python/src/file/26.python.cpp

cmake/unit_testing.cmake

+6-6
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ add_subdirectory( src/ENDFtk/section/12/test )
198198
add_subdirectory( src/ENDFtk/section/13/PartialCrossSection/test )
199199
add_subdirectory( src/ENDFtk/section/13/TotalCrossSection/test )
200200
add_subdirectory( src/ENDFtk/section/13/test )
201-
#add_subdirectory( src/ENDFtk/section/14/IsotropicDiscretePhoton/test )
202-
#add_subdirectory( src/ENDFtk/section/14/LegendreCoefficients/test )
203-
#add_subdirectory( src/ENDFtk/section/14/LegendreDistributions/test )
204-
#add_subdirectory( src/ENDFtk/section/14/TabulatedDistribution/test )
205-
#add_subdirectory( src/ENDFtk/section/14/TabulatedDistributions/test )
206-
#add_subdirectory( src/ENDFtk/section/14/test )
201+
add_subdirectory( src/ENDFtk/section/14/IsotropicDiscretePhoton/test )
202+
add_subdirectory( src/ENDFtk/section/14/LegendreCoefficients/test )
203+
add_subdirectory( src/ENDFtk/section/14/LegendreDistributions/test )
204+
add_subdirectory( src/ENDFtk/section/14/TabulatedDistribution/test )
205+
add_subdirectory( src/ENDFtk/section/14/TabulatedDistributions/test )
206+
add_subdirectory( src/ENDFtk/section/14/test )
207207
add_subdirectory( src/ENDFtk/section/15/PartialDistribution/test )
208208
add_subdirectory( src/ENDFtk/section/15/Probability/test )
209209
add_subdirectory( src/ENDFtk/section/15/TabulatedSpectrum/OutgoingEnergyDistribution/test )

cmake/unit_testing_python.cmake

+5-5
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ add_python_test( MF13.PartialCrossSection MF13/Test_ENDFtk_MF13_PartialCrossSect
174174
add_python_test( MF13.TotalCrossSection MF13/Test_ENDFtk_MF13_TotalCrossSection.py )
175175

176176
#add_python_test( MF14.Section MF14/Test_ENDFtk_MF14_Section.py )
177-
#add_python_test( MF14.IsotropicDiscretePhoton MF14/Test_ENDFtk_MF14_IsotropicDiscretePhoton.py )
178-
#add_python_test( MF14.LegendreCoefficients MF14/Test_ENDFtk_MF14_LegendreCoefficients.py )
179-
#add_python_test( MF14.LegendreDistributions MF14/Test_ENDFtk_MF14_LegendreDistributions.py )
180-
#add_python_test( MF14.TabulatedDistribution MF14/Test_ENDFtk_MF14_TabulatedDistribution.py )
181-
#add_python_test( MF14.TabulatedDistributions MF14/Test_ENDFtk_MF14_TabulatedDistributions.py )
177+
add_python_test( MF14.IsotropicDiscretePhoton MF14/Test_ENDFtk_MF14_IsotropicDiscretePhoton.py )
178+
add_python_test( MF14.LegendreCoefficients MF14/Test_ENDFtk_MF14_LegendreCoefficients.py )
179+
add_python_test( MF14.LegendreDistributions MF14/Test_ENDFtk_MF14_LegendreDistributions.py )
180+
add_python_test( MF14.TabulatedDistribution MF14/Test_ENDFtk_MF14_TabulatedDistribution.py )
181+
add_python_test( MF14.TabulatedDistributions MF14/Test_ENDFtk_MF14_TabulatedDistributions.py )
182182

183183
#add_python_test( MF15.Section MF15/Test_ENDFtk_MF15_Section.py )
184184
add_python_test( MF15.OutgoingEnergyDistribution MF15/Test_ENDFtk_MF15_OutgoingEnergyDistribution.py )

python/src/ENDFtk.python.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ PYBIND11_MODULE( ENDFtk, module ) {
9595
wrapFile_10( module, viewmodule );
9696
wrapFile_12( module, viewmodule );
9797
wrapFile_13( module, viewmodule );
98-
// wrapFile_14( module, viewmodule );
98+
wrapFile_14( module, viewmodule );
9999
wrapFile_15( module, viewmodule );
100100
wrapFile_23( module, viewmodule );
101101
wrapFile_26( module, viewmodule );

python/src/file/14.python.cpp

+16-16
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ void wrapFile_14( python::module& module, python::module& viewmodule ) {
3030
// wrap sections
3131
wrapSection_14( submodule, viewmodule );
3232

33-
// wrap views created by this file
34-
// none of these are supposed to be created directly by the user
35-
wrapBidirectionalAnyViewOf< Section >(
36-
viewmodule,
37-
"any_view< section::Type< 14 >, bidirectional >" );
38-
39-
// create the file
40-
python::class_< File > file(
41-
42-
submodule,
43-
"File",
44-
"MF14 file - angular distributions of secondary photons"
45-
);
46-
47-
// add standard file definitions
48-
addStandardFileDefinitions< File, Section, SectionRange >( file );
33+
// // wrap views created by this file
34+
// // none of these are supposed to be created directly by the user
35+
// wrapBidirectionalAnyViewOf< Section >(
36+
// viewmodule,
37+
// "any_view< section::Type< 14 >, bidirectional >" );
38+
//
39+
// // create the file
40+
// python::class_< File > file(
41+
//
42+
// submodule,
43+
// "File",
44+
// "MF14 file - angular distributions of secondary photons"
45+
// );
46+
//
47+
// // add standard file definitions
48+
// addStandardFileDefinitions< File, Section, SectionRange >( file );
4949
}

python/src/section/14.python.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
8+
#include "tools/views/views-python.hpp"
99

1010
// namespace aliases
1111
namespace python = pybind11;

python/src/section/14/IsotropicDiscretePhoton.python.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
98

109
// namespace aliases
1110
namespace python = pybind11;

python/src/section/14/LegendreCoefficients.python.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
98

109
// namespace aliases
1110
namespace python = pybind11;

python/src/section/14/LegendreDistributions.python.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
8+
#include "tools/views/views-python.hpp"
99

1010
// namespace aliases
1111
namespace python = pybind11;

python/src/section/14/TabulatedDistribution.python.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
98

109
// namespace aliases
1110
namespace python = pybind11;

python/src/section/14/TabulatedDistributions.python.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// local includes
66
#include "ENDFtk/section/14.hpp"
77
#include "definitions.hpp"
8-
#include "views.hpp"
8+
#include "tools/views/views-python.hpp"
99

1010
// namespace aliases
1111
namespace python = pybind11;

src/ENDFtk/section/14.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <variant>
66

77
// other includes
8-
#include "range/v3/view/transform.hpp"
98
#include "ENDFtk/macros.hpp"
109
#include "ENDFtk/ControlRecord.hpp"
1110
#include "ENDFtk/ListRecord.hpp"

0 commit comments

Comments
 (0)