Commit graph

245 commits

Author SHA1 Message Date
Gavin Ridley
2172907bcf refactor particle source import/export 2023-03-31 14:17:04 -04:00
Patrick Shriwise
1891ff7c24 Updating batch number checks for simulation and sp load 2023-02-16 13:47:42 -06:00
Paul Romano
9ae44b3fd1 Rearragne MCPL source writing logic 2022-12-22 14:56:40 -06:00
Paul Romano
361b3486ef Move remainder of MCPL-related code to mcpl_interface.h/cpp 2022-12-22 14:56:36 -06:00
Paul Romano
987293cfff Small fixes and formatting changes 2022-12-22 10:57:11 -06:00
Erik B Knudsen
5da08f6b0e fix logic to avoid writing both kinds of source file 2022-10-14 01:40:52 +02:00
Erik B Knudsen
81fa3b45a3 mcpl-file output simimlar to regular source output file 2022-10-14 00:22:28 +02:00
Erik B Knudsen
ca396268b5 protect against compilation wo mcpl 2022-10-12 19:32:09 +02:00
Erik B Knudsen
6e523fa1f8 must have a full filename 2022-10-11 16:50:40 +02:00
Erik B Knudsen
8b78374934 fix typo 2022-10-11 16:50:15 +02:00
Erik B Knudsen
cd9eb5b1b2 add a trigger to simulation control 2022-10-11 16:50:15 +02:00
Erik B Knudsen
22ce618601 fix typo 2022-10-11 16:49:44 +02:00
Erik B Knudsen
1519f4f3e6 add a trigger to simulation control 2022-10-11 16:49:44 +02:00
lewisgross1296
0ef945cc06 removing set_strides() from tally.cpp causes issues, but it should be fine to add in openmc_simulation_init() and in there should occur before init_results. this is because init_results use n_filter_bins_ which is modified by set_strides() 2022-08-18 14:55:56 -05:00
Paul Romano
e34bf445f0 Add max_tracks setting (maximum number of tracks per process) 2022-05-20 10:46:59 -05:00
Paul Romano
365aa0b0eb Write all tracks to a single file 2022-05-19 13:27:33 -04:00
Patrick Shriwise
86ac407544 Reset ww ratio when initializing particle history 2022-02-02 17:46:43 -06:00
Patrick Shriwise
564f7bba5c Fix: resetting particle split count in initialize_history. 2022-01-09 21:21:17 -06:00
Paul Romano
e665965c60 Ensure particles lost during event_calculate_xs are terminated 2021-11-19 15:37:25 -06:00
Paul Romano
1bc2bd8460 Apply clang-format on entire source 2021-08-11 11:41:49 -05: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
Gavin Ridley
d5d2072266 change particle to using accessor methods 2021-05-03 17:56:57 -04:00
AI-Pranto
a6144a4ab8 Rename to max_surface_particles 2021-02-25 10:46:57 +06:00
Gavin Ridley
5e76078ab7 reset n_event_ in initialize_history 2021-02-12 11:15:19 -05:00
YoungHui Park
5f48ec9eeb Rename max_surf_banks to max_particles 2021-01-18 14:36:05 -06:00
YoungHui Park
fa97e03d57 Apply suggestions from code review - remove deprecated changes
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-01-18 14:36:05 -06:00
YoungHui Park
7a79f78c77 Remove unnecessary population of source bank 2021-01-18 14:36:05 -06:00
YoungHui Park
e427dbde50 Reword src to source for consistency 2021-01-18 14:36:05 -06:00
YoungHui Park
fb9ee5504e Switch surf_src_bank in write_source_point to be optional 2021-01-18 14:36:05 -06:00
YoungHui Park
3ab5568ac7 Localize variables total_surf_banks and max_bank_size 2021-01-18 14:36:04 -06:00
YoungHui Park
dd82da692a Move query_surf_src_size from simulation.cpp to state_point.cpp 2021-01-18 14:36:04 -06:00
YoungHui Park
073f5704b3 Update src/simulation.cpp
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-01-18 14:36:04 -06:00
YoungHui Park
065d65d3a5 Cleanup 2021-01-18 14:36:04 -06:00
YoungHui Park
f388ac2e1e Rename variables for better readability 2021-01-18 14:36:04 -06:00
YoungHui Park
82606011c0 Properly trigger surface source reading 2021-01-18 14:36:04 -06:00
YoungHui Park
03a4c1dc56 Initialize source when surface source file is provided 2021-01-18 14:36:04 -06:00
YoungHui Park
10e3e83f90 Set maximum bank size inside write_source_bank 2021-01-18 14:36:04 -06:00
YoungHui Park
09863806df Add comments and minor changes 2021-01-18 14:36:04 -06:00
YoungHui Park
5091418d71 Add a new variable to store maximum bank size 2021-01-18 14:36:04 -06:00
YoungHui Park
9fd222f483 Revise query_surf_src_size 2021-01-18 14:36:04 -06:00
YoungHui Park
5d9655256b Add new variables and functions to query global surface source bank size and index 2021-01-18 14:36:04 -06:00
YoungHui Park
74cae60a58 Use max_surf_banks for surface source bank allocation 2021-01-18 14:36:04 -06:00
YoungHui Park
5ad6cfc4dc Switching to arbitrary source bank depending on surface source bank boolean 2021-01-18 14:36:04 -06:00
YoungHui Park
feb4af6149 Revise 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
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