Commit graph

184 commits

Author SHA1 Message Date
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
Paul Romano
e44e467322
Merge pull request #1482 from stevendargaville/develop
Make acceptable lost particles accessible
2020-02-13 14:14:48 -06:00
stevendargaville
d763806c43 Also made rel_max_lost_particle name consistent between C++ and python layers 2020-02-13 14:52:44 +00:00
stevendargaville
a9d1e37aba Changed the name of the max_lost_particles in the C++ layer to match the python side 2020-02-13 14:46:34 +00:00
stevendargaville
9f64dd1a88 Modified the REL_MAX_LOST_PARTICLES const in particle.h to be a variable stored in settings that can be modified by the c/python/xml layers. 2020-02-11 13:37:26 +00:00
stevendargaville
516ac9e1d3 Modified the MAX_LOST_PARTICLES const in particle.h to be a variable stored in settings that can be modified by the c/python/xml layers. 2020-02-11 13:37:00 +00:00
Sterling Harper
8854286e66 Raise helpful error for large banks in openmc.lib 2020-02-10 16:05:42 -05:00
Gavin Ridley
7df7fc280b
Merge branch 'develop' into add_enums2 2020-01-21 13:13:50 -05:00
Paul Romano
8f52e04735
Merge pull request #1451 from jtramm/no_thread_private
Preparation for event-based parallelism (Thread private variable removal)
2020-01-20 10:45:05 -06:00
Gavin Ridley
f7281d9b57 fix off-by-ones 😦 2020-01-16 22:46:09 -05:00
Gavin Ridley
e258093d08 Annndddd that made it segfault 2020-01-16 22:12:42 -05:00
John Tramm
714d0b266e Converted fission_bank to unique_ptr rather than regular pointer. Also added some comments to explain usage of unique_ptr as opposed to vector type. 2020-01-17 02:47:14 +00:00
Gavin Ridley
3ec68866a7 maybe fix CI? 2020-01-16 16:49:07 -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
abe5596cb3
Merge pull request #1337 from shikhar413/cmfd-omp
OpenMP parallelism + minor code cleanup for CMFD
2019-12-17 22:28:46 -06:00
John Tramm
25eb7edffd update Bank datatype on python side 2019-12-11 16:08:10 +00:00
John Tramm
166b86a80a fixed other python math function default seed value generation technique. 2019-12-06 16:36:00 +00:00
John Tramm
c84fc282a5 Moved seed accessor functions into header. Changed python rotate_angle default seed generation technique. 2019-12-06 14:56:42 +00:00
John Tramm
638172e68d refactor of prn() interface and python interface changes 2019-12-04 16:35:01 +00:00
John Tramm
2ec02d6472
Apply formatting fixes from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-12-03 10:36:01 -06:00
John Tramm
12ec9bacff cleanup of comments and adding some parameter descriptions for altered function prototypes 2019-11-22 22:56:16 +00:00
John Tramm
d3e2d36fc8 fixed normal variate unit test 2019-11-22 19:47:19 +00:00
John Tramm
7d3dcfedc0 Probably the final fix for unit tests 2019-11-22 19:27:42 +00:00
John Tramm
84e351f153 another unit test fix 2019-11-22 19:07:13 +00:00
John Tramm
1d889b09f5 More unit test fixes 2019-11-22 18:32: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
Shikhar Kumar
362e4d16b4 Merge branch 'develop' of github.com:openmc-dev/openmc into cmfd-omp
Conflicts:
	openmc/cmfd.py
2019-11-04 22:52:16 -05:00
Patrick Shriwise
739419b8b7 Exposing write summary settings option to CAPI. 2019-10-30 16:04:49 -05:00
Andrew Johnson
7a1a424d0f
Tally.writeable -> Tally.writable
Oops

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-09-26 20:34:11 -04: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
348dd74dcc Merge branch 'develop' into local-photon-heating 2019-09-16 11:00:33 -05:00
Paul Romano
bbb0b78383 Rename openmc.capi -> openmc.lib 2019-09-13 10:38:26 -05:00