Commit graph

1672 commits

Author SHA1 Message Date
Patrick Shriwise
38c5544e25 Finishing inheritance infrastructure. 2020-03-19 14:15:26 -05:00
Patrick Shriwise
05cd5ec2f6 Starting definition of general mesh interface. 2020-03-19 14:15:26 -05:00
davidjohnlong
6c188f2578
Update include/openmc/source.h
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 15:46:23 +00:00
davidjohnlong
47ea7bbcf5
Update include/openmc/source.h
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 15:46:08 +00:00
davidjohnlong
29cd473448
Remove line in include/openmc/particle.h
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 15:44:02 +00:00
davidjohnlong
086568b562 Remove primary_source_ structure from particle class and sample directly from source distribution in Particle::write_restart() function for fixed source simulations. Eigenvalue simulations reverted back to indexing from primary source bank 2020-03-12 12:10:55 +00:00
davidjohnlong
eac442f31c Move function description to header file 2020-03-12 09:34:38 +00:00
davidjohnlong
315c6dfc9e
Correct formatting in include/openmc/particle.h
Co-Authored-By: Simon Richards <s.richards@physics.org>
2020-03-10 11:56:52 +00:00
davidjohnlong
3cc7ae4618 Use correct style guide formatting for indentation in modifications 2020-03-10 09:22:31 +00:00
davidjohnlong
68841672a5
Merge pull request #1 from davidjohnlong/develop
Update fixed source development branch
2020-03-09 10:13:45 +00:00
davidjohnlong
907459d02f Implement new fixed source bank model for custom library source. Additional non-member functions in source.cpp with function pointer saved in model namespace allow custom library to be opened, sampled as needed in initialize_history and closed. 2020-03-06 16:03:15 +00:00
davidjohnlong
0ae1077a39 Implement the new fixed source bank model. For a fixed source calcultion the primary source bank is not allocated memory and source particles can not be read/written to files. The source particles for each history are now sampled at the start of initialize_history() through call to sample_external_source() with the appropriate seed. The timing stats for sampling has been removed from the output since this processing is now part of the transport timer 2020-03-05 19:23:51 +00:00
Paul Romano
a90af303d5
Merge pull request #1504 from smharper/distrib_init
Speed up distribcell initialization
2020-03-04 07:05:36 -06:00
Gavin Ridley
4838c4b4dd
formatting fix
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-03 13:10:08 -05:00
Gavin Ridley
8502cb01e8 add accessor of xsdata to mgxs 2020-03-03 09:36:42 -05:00
Paul Romano
d62cc4105e
Merge pull request #1500 from pshriwise/reorder_attrs
Reorder data members
2020-03-03 06:35:09 -06:00
Sterling Harper
193c6a9d7c Speed up distribcell initialization 2020-02-29 19:17:20 -05:00
Gavin Ridley
741f6d85e0 make MG scattering gmin, gmax be int, not double 2020-02-28 12:01:28 -05:00
Patrick Shriwise
d9a135f234 Change initialization order instead of declaration order for FilterBinIter. 2020-02-28 10:50:10 -06:00
Patrick Shriwise
19c9f3464c Reordering data members s.t. they match initialization. 2020-02-26 16:23:53 -06:00
Paul Romano
c5dbff356a Fixes to custom source feature 2020-02-17 15:45:50 -06:00
Andrew Davis
7c2b695c98 Refactor into function as suggested by review 2020-02-17 15:48:12 +00:00
Andrew Davis
39672e79b0 Added internal infrastructure for dlopen based shared object sources 2020-02-17 15:48:12 +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
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
Paul Romano
2a230cd739 More use of fmt::print and fmt::format 2020-02-10 10:33:57 -06:00
Paul Romano
dfe4d911b5
Merge pull request #1477 from gridley/access_dist_members
add some getters to 1D distributions (needed for my research project)
2020-02-10 10:19:20 -06:00
Gavin Ridley
9d0649d1dd fix typo 2020-02-07 16:42:10 -05:00
Paul Romano
2e2a269f10
Merge pull request #1435 from smharper/collective_mpio_tally
Use collective MPI I/O for reading and writing tally results to statepoint
2020-02-07 14:24:47 -06:00
Gavin Ridley
d45583ed19 add some getters to 1D distributions 2020-02-07 15:16:02 -05:00
John Tramm
76e58e7b4c Changed thread_safe_append() to require a value argument, and re-arranged create_fission_sites() in physics.cpp and physics_mg.cpp to use the new interface. 2020-01-29 02:07:02 +00:00
John Tramm
18b1166e67 removed unused function prototype from event.h 2020-01-28 17:39:27 +00:00
John Tramm
fbc241765b Changed thread_safe_append() to optionally accept an element to append. Also changed some TODO discussion comment text in event.h 2020-01-28 15:57:01 +00:00
John Tramm
958a77f103 Changed some comment descriptions in shared_array.h 2020-01-27 21:43:14 +00:00
John Tramm
02470bc630 Incorporation of comments from code review. 2020-01-27 17:02:39 +00:00
John Tramm
48a550aaf7 updated doc strings and comments in event.h and shared_array.h to be more consistent with the STL verbiage. 2020-01-27 16:39:07 +00:00
John Tramm
53e59a6790 Refactored name of struct from QueueItem to EventQueueItem. 2020-01-27 16:07:15 +00:00
John Tramm
598bead82e added more comments and documentation. 2020-01-24 03:50:13 +00:00
John Tramm
05e39fb9e4 first pass on adding event_based and in_flight_particles as xml and python options. 2020-01-23 22:50:51 +00:00
John Tramm
0b9a37a489 cleaned up some formatting etc. 2020-01-23 20:43:50 +00:00
John Tramm
56e314d724 Converted fission bank to SharedArray type. 2020-01-23 20:28:55 +00:00
John Tramm
6bf15297ec converted event based queues and particle buffer into SharedArrays 2020-01-23 20:08:28 +00:00
John Tramm
0894b608d1 A few changes to the sharedarray object. 2020-01-23 18:36:05 +00:00
John Tramm
4ebf7c893d initial commit of sharedarray object. 2020-01-23 18:29:51 +00:00
John Tramm
97da05095f Merge branch 'event_based_update' of github.com:jtramm/openmc into event_based_update 2020-01-23 17:28:02 +00:00
John Tramm
d7d76d0e47 Style fixes implemented from code review. 2020-01-23 17:27:34 +00:00
John Tramm
10a6d152de
Merge branch 'develop' into event_based_update 2020-01-22 09:06:38 -06:00