Commit graph

200 commits

Author SHA1 Message Date
YoungHui Park
d849014391 Switch surf_src_bank from vector to SharedArray 2021-01-18 14:36:04 -06:00
YoungHui Park
c362ba5ef4 Write surface source only at the last batch, hard-code number of surfaces for surface_source.h5 sizing 2021-01-18 14:36:04 -06:00
YoungHui Park
2e49a1d6de Add section to write surface source into a separate file 2021-01-18 14:36:04 -06:00
YoungHui Park
209394082e Add a new bank type surf_src_bank for surface source banking 2021-01-18 14:36:04 -06:00
Paul Romano
3f62fab565 Add wrapper class for custom sources 2020-10-22 15:50:30 -05:00
Paul Romano
96a66789b1 Activate need_depletion_rx for reaction rate-based depletion only 2020-09-15 10:23:31 -05:00
Andrew Johnson
f1b7cd7938
Use templated write_message in a few more places
From review suggestions

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-06 08:19:03 -04:00
Andrew Johnson
9bb219af8e
Apply templated write_message to simulation.cpp 2020-08-06 07:05:01 -04:00
Andrew Johnson
b6276ea9e4
Reduce number of string concats with fmt::format 2020-08-06 07:04:59 -04:00
Paul Romano
ea9ff22805 Change data::elements to a vector of unique_ptr 2020-06-18 16:21:26 -05:00
Paul Romano
c8b99514b7 Make sure data gets initialized for particle restarts 2020-06-18 16:21:26 -05:00
Paul Romano
e579168969 Calculate min/max energies during simulation_init 2020-06-18 13:37:50 -05:00
Paul Romano
6aed017837 Call Nuclide::init_grid during simulation_init 2020-06-18 13:37:50 -05:00
Paul Romano
9dab8bf507 Use references consistently in geometry functions 2020-04-23 16:37:23 -05:00
Paul Romano
2c923f9f5c Changes in output.cpp from PullRequest Inc. review 2020-04-23 16:37:23 -05:00
Paul Romano
dd283875a8 Remove restart_timers and have openmc_init/run start/stop total timer 2020-04-07 13:49:10 -05:00
davidjohnlong
ce135cc4a9 Refactor fixed source sampling so call to custom library is made from call to sample_external_source() 2020-03-12 17:02:22 +00:00
davidjohnlong
c5aee746e8
Correct formatting in src/simulation.cpp
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 08:00:49 +00:00
davidjohnlong
f61fad5f75
Adjust setting of boolean variable "b"
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 08:00:13 +00:00
davidjohnlong
edb9cbc69f
Update formatting in src/simulation.cpp
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 07:42:58 +00:00
davidjohnlong
8556b8b681 Further correction to formatting 2020-03-10 12:07:01 +00:00
davidjohnlong
3cc7ae4618 Use correct style guide formatting for indentation in modifications 2020-03-10 09:22:31 +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
John Tramm
02470bc630 Incorporation of comments from code review. 2020-01-27 17:02:39 +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
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
e450eb82d2 fixed indentation in simulation function. 2020-01-23 17:30:34 +00:00
John Tramm
10a6d152de
Merge branch 'develop' into event_based_update 2020-01-22 09:06:38 -06:00
Gavin Ridley
b9bf4fc65b few more changes to make the develop merge work 2020-01-21 14:52:35 -05:00
Gavin Ridley
7df7fc280b
Merge branch 'develop' into add_enums2 2020-01-21 13:13:50 -05:00
Gavin Ridley
1d33aca9bd incorporate recommended name changes 2020-01-21 13:04:39 -05:00
John Tramm
c0a1056e55 added setting to control the maximum number of in flight particles. Also simplified enqueing procedure after XS lookup events to drop atomic usage there. 2020-01-21 17:40:54 +00:00
John Tramm
9d79cdc2d5 added some comments and cleaned things up 2020-01-20 18:20:02 +00:00
John Tramm
3641a6632f added timers 2020-01-20 18:19:59 +00:00
John Tramm
b3821256cb Moved redundant particle queuing code into its own function. 2020-01-20 18:19:58 +00:00
John Tramm
8c884a17de General import of event-based model from old branch. Seems to work, but need to test then work on cleaning up some more. 2020-01-20 18:19:57 +00: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
John Tramm
1c48584c46 Added progeny_id field of Particle::Bank type to MPI Bank type to fix bug. Also some minor comment/assert cleanups from debugging. 2020-01-17 15:50:19 +00:00
John Tramm
732a780366 fixed indexing error, though things are still going haywire with MPI. Going to test if this is due to sort or unique_ptr. 2020-01-17 15:03:34 +00:00
John Tramm
03397cab26 added O(n) fission bank sorting implementation 2020-01-16 22:35:32 +00:00
Gavin Ridley
9483c409a8 convert all but one thing in cell.h to enums 2020-01-16 15:41:45 -05:00
John Tramm
47cfc9cbf1 finished comment incorporation from code review 2020-01-16 01:48:59 +00:00
John Tramm
5066bfa42d
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-15 17:02:37 -06:00
Paul Romano
a7d08364d3 Parallelize source site generation for fixed source calcs 2020-01-14 15:10:33 -06:00
John Tramm
c60a7e569f formatting cleanup 2020-01-14 20:16:33 +00:00
John Tramm
d6d804600f formatting cleanup 2020-01-14 19:30:18 +00:00
John Tramm
f6020279c9 Refactored to remove the non-shared fission bank. This involved some minor changes to the MPI bank synchronization code and the site counting code, but overall makes the code much simpler. Since there is now only one fission bank, the name was changed from shared_fission_bank to just fission_bank throughout. 2020-01-14 15:39:20 +00:00
John Tramm
b05dedb179 moved transport functions in simulation to be more consistent 2020-01-14 02:48:27 +00:00