Commit graph

1360 commits

Author SHA1 Message Date
Sam Powell-Gill
0fbfad4d49 Made requested formatting change 2020-02-20 16:29:08 +00:00
Sam Powell-Gill
6bd4c5cd90 Added suggested changes for #1489 2020-02-20 08:48:26 +00:00
Sam Powell-Gill
6fd08f5aec Unit test for exporting photon data with no atomic relax 2020-02-19 11:59:35 +00:00
Andrew Davis
8c432a2e54 added unit test for dlopen source, and changed library variable name 2020-02-17 15:48:12 +00:00
Andrew Davis
cba7e9bc87 Added regression tests for dlopen source 2020-02-17 15:48:12 +00:00
Andrew Davis
46c79c0889 Adding unit test for dlopen source 2020-02-17 15:48:12 +00:00
Mikolaj Adam Kowalski
fab30231ab Merge remote-tracking branch 'upstream/develop' into cam_WP7_task3 2020-02-14 19:04:41 +00:00
Mikolaj Adam Kowalski
d5f9a962e5 Adds general element enrichment to Material
Adds an option to specify an enrichment of an element composed of two
isotopes to Material.add_element
2020-02-14 18:55:50 +00:00
Mikolaj Adam Kowalski
98253ab9b4 Implemented unit tests for Element.expand 2020-02-14 17:54:01 +00:00
Paul Romano
e44e467322
Merge pull request #1482 from stevendargaville/develop
Make acceptable lost particles accessible
2020-02-13 14:14:48 -06:00
Paul Romano
70e914d245 Fix failing tests 2020-02-11 10:12:34 -06:00
stevendargaville
6a40a535e4 Modified the test_settings unit test for new max_lost_particles and rel_max_lost_particles to check they can be assigned/read by the python interface 2020-02-11 13:37:32 +00:00
Paul Romano
85264aa38c Support minutes and hours for depletion timesteps rather than years 2020-02-11 07:08:53 -06:00
Paul Romano
8771987bf4 Add unit test checking depletion timestep units for all integrators 2020-02-11 06:44:05 -06:00
rockfool
e74d6aa362 Merge branch 'develop' of github.com:openmc-dev/openmc into develop 2020-02-05 20:16:53 -05:00
rockfool
a740ae6d30 modify radius in unittest for zernikeradial 2020-01-30 21:08:07 -05:00
Patrick Shriwise
c94e3d2705
Merge pull request #1466 from paulromano/pullrequestinc-part1
Address review from Pullrequest Inc. (Part 1)
2020-01-29 09:54:25 -06:00
Sterling Harper
f1bb96eaef
Merge pull request #1381 from GiudGiud/PR_recursive_LNS
Lattice discretization with degenerate and recursive local neighbor symmetry algorithms
2020-01-28 18:22:45 -05:00
Paul Romano
04308b7677 Rewrite of openmc-ace-to-hdf5, moving some functionality to ace.py 2020-01-27 09:46:50 -06:00
Paul Romano
db72d14205
Merge pull request #1447 from eepeterson/add_material_mod
Adding material mixing to openmc.Material class
2020-01-22 23:03:06 -06:00
Ethan Peterson
8afa5ded10 Adding mix_materials method to Material class 2020-01-22 19:53:45 -05:00
guillaume
1565483a0f Address @smharper 's review 2020-01-21 20:59:42 -05:00
Gavin Ridley
7df7fc280b
Merge branch 'develop' into add_enums2 2020-01-21 13:13:50 -05:00
Paul Romano
386599776e
Merge pull request #1444 from eepeterson/duplicate_surface_fix
Removing duplicate surfaces from geometry
2020-01-20 10:39:08 -06:00
Ethan Peterson
55fab15b9a Implementing duplicate surface detection and removal
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
Co-Authored-By: Patrick Shriwise <pshriwise@gmail.com>
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-20 09:45:44 -05:00
Gavin Ridley
9483c409a8 convert all but one thing in cell.h to enums 2020-01-16 15:41:45 -05:00
Paul Romano
9787e9e8c0 Merge branch 'develop' into cell-instance-filter 2020-01-09 07:26:43 -06:00
Ethan Peterson
2b1380519d Adding data_type kwarg to DataLibrary.get_by_material
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>

Update tests/unit_tests/test_data_misc.py

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-03 10:16:50 -05:00
Paul Romano
2f044ccdfb Add unit test for CellInstanceFilter 2019-12-12 06:59:01 -06:00
Paul Romano
9e636a6f07
Merge pull request #1396 from lkissin2/utilstest
Testing _utils.py
2019-12-11 10:16:31 -06:00
=
2c7f23dc32 tests the download function in _utils.py 2019-12-10 15:02:18 -06:00
Giud
5c14652fe2
Merge branch 'develop' into PR_recursive_LNS 2019-12-06 01:24:29 -05:00
guillaume
35f599564e Remove automatic handling of subneighbors in recursive LNS 2019-12-06 01:22:21 -05:00
John Tramm
638172e68d refactor of prn() interface and python interface changes 2019-12-04 16:35:01 +00:00
John Tramm
7d3dcfedc0 Probably the final fix for unit tests 2019-11-22 19:27:42 +00:00
John Tramm
cdcb23796b fixed tabs/spacing issue in test file 2019-11-22 17:39:27 +00:00
John Tramm
5959db4ec1 fixed tabs/spacing issue in test file 2019-11-22 17:37:28 +00:00
John Tramm
a3af7f7a78 another attempt to fix the unit tests 2019-11-22 17:30:01 +00:00
John Tramm
ecb5f828d2 removed some comments. Also attempted to fix the math unit tests that now require direct passing of seeds and stream variables 2019-11-22 16:17:46 +00:00
guillaume
5fc1216708 Address @smharper's review 2019-11-05 13:57:11 -05:00
guillaume
4754d7fd40 Update unit tests 2019-10-31 10:32:35 -04:00
Giud
59e97b261d Fix unit test import for lattice discretization test 2019-10-16 13:16:52 -04:00
Giud
16ba46150d Add unit test for lattice discretization, degenerate and LNS 2019-10-16 11:49:38 -04:00
Giud
5bc10e89a6 Add unit test for restricting cloning on cell regions and materials 2019-10-16 11:44:49 -04:00
Paul Romano
4950392fd0 Support for setting rotation matrix directly 2019-10-16 11:01:34 +07:00
Patrick Shriwise
9a00357393 Updating name of material in DAGMC unit test. 2019-10-08 14:45:36 -05:00
Andrew Johnson
801f18b357
Provide Tally writable_ setter and getters
New member functions openmc::Tally.set_writable and get_writable
act on the writable attribute. These are used in the external
API with openmc_tally_set_writable and openmc_tally_get_writable
functions.

Cleaned up some other writeable -> writable typos as well
2019-09-26 21:09:13 -04:00
Andrew Johnson
a83f4d2bb2
Rename capi_* fixtures to lib_* in test_lib.py 2019-09-20 10:17:52 -05:00
Andrew Johnson
66593fd7e1
Expose tally.writeable_ through openmc.lib
Add two functions to capi.h:
openmc_tally_set_writeable and openmc_tally_get_writeable
which are exposed to the Python API through the
openmc.lib.Tally.writeable property. These functions are very
similar to the set/get active counterparts as both act on a boolean
Tally attribute

A new unit test test_tally_writeable has been added that toggles
the writeable state of a tally. It is important to note that the
writeable state must be reset, otherwise tallies in subsequent
tests will be skewed. This is because the test_tally_writeable
function requires the capi_simulation_init fixture and the tallies
are shared by those functions that use the capi_run fixture
2019-09-20 10:13:26 -05:00
Paul Romano
90ce9723ca
Merge pull request #1353 from smharper/tests_endf_data
Allow tests to run when OPENMC_ENDF_DATA is not set
2019-09-19 07:02:15 -05:00