Commit graph

7602 commits

Author SHA1 Message Date
Jose Salcedo Perez
7f83000812 Adding direct-mapping implementation. 2017-12-21 09:44:08 +00:00
Paul Romano
48812172f0 Normalize fixed source calculations by total external source strength 2017-12-20 14:09:40 +07:00
Paul Romano
3431ebd8fe Move write_message to error module (break geometry -> output dependence) 2017-12-20 14:09:38 +07:00
Paul Romano
fa89104350 Move cross_surface to tracking (break geometry -> tally dependence) 2017-12-20 14:08:31 +07:00
Paul Romano
c771d0f0ae Rearrange type-bound procedures in particle_header 2017-12-20 14:08:31 +07:00
Paul Romano
d4f366cbd4 Move particle restart writing / lost particle handling to particle_header 2017-12-20 14:08:31 +07:00
Sterling Harper
a149ef42a0
Merge pull request #946 from paulromano/eq-hash
Ensure mutable objects are not hashable
2017-12-20 01:51:12 -05:00
Paul Romano
55f7260b2a Remove _smart_set_bins in favor of overriding Filter.bins.setter 2017-12-20 10:12:07 +07:00
Paul Romano
2ef1c23d5a Make Filter.num_bins a (usually) computed property 2017-12-19 21:54:08 +07:00
Paul Romano
e6b5803f70 Make filter_strides a property of Tally 2017-12-19 15:58:14 +07:00
Paul Romano
c2e1adf94c
Merge pull request #911 from smharper/style_docs
Update the style guide with C++ guidelines
2017-12-18 17:17:38 +07:00
Paul Romano
2c9b210440
Merge pull request #945 from smharper/h5py_compatibility
Use 'earliest' libver with h5py for backwards-compatibility
2017-12-18 12:42:10 +07:00
Sterling Harper
b666d9b49e Improve references to Core Guidelines in style doc 2017-12-18 00:23:57 -05:00
Sterling Harper
c76e77f7f8 Use argparse choices for libver in xsgen scripts 2017-12-17 23:43:46 -05:00
Paul Romano
e698403076 Don't allocate/deallocate p0 from openmc_material_set_densities 2017-12-18 10:33:30 +07:00
Sterling Harper
0460d9a538 Allow optional 'latest' libver for HDF5 xs data 2017-12-17 19:48:08 -05:00
Sterling Harper
f754357aea Use 'earliest' libver in h5py for backwards-compat 2017-12-16 19:56:34 -05:00
Paul Romano
9aaa927222 Update Jupyter notebooks to remove use of openmc.Nuclide 2017-12-17 07:16:06 +07:00
Paul Romano
2b6cd880f1 Auto-expand elements at the time they are added to a material 2017-12-17 07:16:06 +07:00
Paul Romano
9c182ece34 Remove various uses of Nuclide.name property 2017-12-17 07:16:06 +07:00
Paul Romano
ee2f7e925f Make Nuclide, Element, and Macroscopic subclasses of str 2017-12-17 07:16:06 +07:00
Paul Romano
9744d173b7 Don't store material % p0 if it isn't being used 2017-12-17 07:16:06 +07:00
Paul Romano
f722d57ca3 Change input format for isotropic-in-lab scattering 2017-12-17 07:16:06 +07:00
Paul Romano
4d162335f9 Remove __eq__ and __hash__ on Element 2017-12-17 07:16:06 +07:00
Paul Romano
3c9e259553 Remove __eq__ and __hash__ on Material 2017-12-17 07:16:06 +07:00
Paul Romano
b771fb7ae3 Remove eq/hash on Mesh and Tally 2017-12-17 07:16:06 +07:00
Paul Romano
e2dfb5b5fb Remove more unnecessary eq/hash 2017-12-17 07:16:05 +07:00
Paul Romano
61bdb5b322 Remove __eq__ and __hash__ on geometry objects 2017-12-17 07:16:05 +07:00
Sterling Harper
598b5d4f2b
Merge pull request #944 from paulromano/api-updates
Additions in openmc.capi and elsewhere
2017-12-16 17:13:29 -05:00
Brody Bassett
9b867f9863 Removed whitespace. 2017-12-15 04:17:40 -05:00
Brody Bassett
8e6b617116 Added a check for minimum energy in the source sampling. Set multigroup min and max energies and removed check for these after samping the source. 2017-12-15 02:37:23 -05:00
Brody Bassett
2891fdae46 Reverted changes to test_mgxs_library_ce_to_mg.py. 2017-12-15 02:37:23 -05:00
Brody Bassett
b0fcb11136 Removed whitespace. 2017-12-15 02:37:23 -05:00
Brody Bassett
fae2888b26 Fixed issue in source.F90 with fixing energy bins. 2017-12-15 02:37:23 -05:00
Brody Bassett
a9ec1af39e Updated results for test_mgxs_library_ce_to_mg.py. 2017-12-15 02:37:23 -05:00
Brody Bassett
53434692fa Removed reversal of energy bins in multigroup mode to agree with energy bin search in source. 2017-12-15 02:37:23 -05:00
Paul Romano
08bf32e1ae Throw exception if next_batch() is called before simulation is initialized 2017-12-15 11:38:28 +07:00
Paul Romano
8e1b8d6264 Make capi.keff() usable during inactive and active batches 2017-12-15 11:05:46 +07:00
Paul Romano
25ce61622d
Merge pull request #939 from smharper/c_rng
Translate the RNG to C++
2017-12-15 10:13:13 +07:00
Sterling Harper
4b6402104e Switch C++ RNG to Doxygen-style comments 2017-12-14 16:19:26 -05:00
Paul Romano
9fa391aa66 Make sure latest version of pytest is used 2017-12-14 11:52:30 +07:00
Paul Romano
147bbefbe7 Run pytest verbosely 2017-12-14 10:36:28 +07:00
Paul Romano
74a28519d0 Fix import for Python 2.7 2017-12-14 10:04:14 +07:00
Paul Romano
7b56bcead6 Add unit tests for openmc.capi 2017-12-14 09:52:05 +07:00
Sterling Harper
f6d6b926b1 Address #939 comments 2017-12-13 18:49:12 -05:00
Sterling Harper
37671e1792 Fix styleguide typos 2017-12-13 18:10:17 -05:00
Sterling Harper
110684619d Separate Fortran and C++ info in the styleguide 2017-12-12 19:27:16 -05:00
Sterling Harper
ec302b52d6 Fix multiple definition error in random_lcg.h 2017-12-12 17:57:53 -05:00
Sterling Harper
ed5ff626f4 Link Fortran RNG constants to C++ definitions 2017-12-12 15:16:54 -05:00
Sterling Harper
168f202e3e Address #939 feedback 2017-12-11 15:47:01 -05:00