Commit graph

187 commits

Author SHA1 Message Date
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
John Tramm
e1abbe6fcb Unified the calculate XS functions, as its not really necessary to split them up. Also cleaned up simulation headers. 2020-01-14 02:40:41 +00:00
John Tramm
2ea0859fd3 Removed some comment references to threadprivate variables that no longer exist. 2020-01-14 02:30:17 +00:00
John Tramm
63ef983f19 formatting sweep 2020-01-14 02:14:09 +00:00
John Tramm
ad96fa6ffa Moved allocation/freeing of SHM fission bank into the existing allocation/freeing routines for the bank, to simplify things slightly. Also restored the DagMC regression tests. 2020-01-13 22:58:19 +00:00
John Tramm
ed0a804d0a removed all event-based code from this branch 2020-01-13 22:33:57 +00:00
John Tramm
b41f3aadb4 Code cleanup. Removed some dead code from throughout. 2020-01-08 22:55:30 +00:00
John Tramm
65418f56b4 changes to int64_t for event-based particle queueing variables 2020-01-08 19:55:34 +00:00
John Tramm
e194dfb1b1 Moved event buffer initialization to simulation initialization function, rather than allocating and free'ing each power iteration. Also added ifdef for enabling/disabling event-based simulation. 2020-01-08 19:30:14 +00:00
John Tramm
1fdf446bfe Enforcement of maximum shared fission bank length added. Also some minor code cleanup. 2020-01-08 17:50:02 +00:00
John Tramm
e60dd30079 moved shared fission bank and event based functions around. Created new event files for event-based logic. 2020-01-08 17:09:41 +00:00
John Tramm
8aaa97a0bd Removed old style history() function from particle object, and moved it into new functions in simulation file. Also had to fix particle_restart function to follow similar logic that was moved to initialize_history() function. 2020-01-07 23:03:13 +00:00
John Tramm
747971dffe Added multigroup support for shared fission bank. Should be relatively easy to support for GPU. 2020-01-07 18:25:50 +00:00
John Tramm
e59a70ebb7 Fixed one issue with event-based mode when converting to unified functions. Needed to be attempting to revive after BOTH surface crossing and collions events. Had previously only been doing it for one. 2020-01-06 22:47:38 +00:00