Commit graph

33 commits

Author SHA1 Message Date
Paul Romano
1bc2bd8460 Apply clang-format on entire source 2021-08-11 11:41:49 -05:00
John Tramm
484858dfc1 Added fixes for fission bank overflow memory issue. 2021-07-01 16:24:17 +00:00
Gavin Ridley
061156e79a address PR comments 2021-05-03 18:03:06 -04:00
Gavin Ridley
ad4e1c9f4a remove std:: from vector,unique_ptr,make_unique,array 2021-05-03 18:01:27 -04:00
Gavin Ridley
2af4c9cd92 use base class to handle layout of particle data 2021-05-03 17:57:41 -04:00
YoungHui Park
e427dbde50 Reword src to source for consistency 2021-01-18 14:36:05 -06:00
YoungHui Park
74cae60a58 Use max_surf_banks for surface source bank allocation 2021-01-18 14:36:04 -06:00
YoungHui Park
d849014391 Switch surf_src_bank from vector to SharedArray 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
9ff0deda75 Adding null pointer checks in bank.cpp 2020-04-23 16:37:23 -05:00
John Tramm
56e314d724 Converted fission bank to SharedArray type. 2020-01-23 20:28:55 +00:00
John Tramm
38dacc97e4
Use resize() operator in fission bank sorting function.
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-17 14:19:02 -06:00
John Tramm
1c497e1759 Reduced memory usage of the fission bank sort in the average case by adding the ability to use the empty portions of the fission bank allocation for storing the sorted fission bank. The sort only does this if there is enough space, otherwise, it will allocate extra space as was done before this commit. 2020-01-17 18:08:14 +00: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
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
John Tramm
03397cab26 added O(n) fission bank sorting implementation 2020-01-16 22:35:32 +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
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
63ef983f19 formatting sweep 2020-01-14 02:14:09 +00:00
John Tramm
1f3bc2c4d3 In some unit tests, OpenMC finalize is called twice in a row without re-initializing the whole simulation. This caused the shared fission bank to be freed twice. Fixed now to check if it is a null pointer, and only free if null. Also initializes this value to null and sets it to null after freeing. 2020-01-14 01:32:45 +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
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
ff27ed2bbe made secondary particle bank particle owned instead of thread private 2019-12-11 16:00:10 +00:00
Paul Romano
279104cfed Move secondary bank outside of Particle class 2019-03-19 13:57:42 -05:00
Paul Romano
49bf4523c3 Remove thread_id and n_threads global variables 2019-03-19 13:57:42 -05:00
Paul Romano
d980b4a5ea Make secondary_bank_ a vector and improve interfaces 2019-03-19 13:57:42 -05:00
Paul Romano
368f89697d Use Position and Direction in Particle class 2019-03-01 16:00:36 -06:00
Paul Romano
3cac2a6702 Remove Fortan compatibility functions 2019-02-21 22:44:24 -06:00
Paul Romano
0439eb0fa1 Convert remainder of tallies to C++ 2019-02-21 19:30:04 -06:00
Paul Romano
b8187571b3 Move source and fission banks to C++ 2018-11-26 23:00:44 -06:00