mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Added particle restart case for fixed_source runs
This commit is contained in:
parent
5bcf714d0f
commit
d3f4efde46
3 changed files with 9 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ module fixed_source
|
|||
use tally, only: synchronize_tallies, setup_active_usertallies
|
||||
use tracking, only: transport
|
||||
|
||||
type(Bank), pointer :: source_site => null()
|
||||
!$omp threadprivate(source_site)
|
||||
|
||||
contains
|
||||
|
|
|
|||
|
|
@ -256,6 +256,9 @@ module global
|
|||
! Mode to run in (fixed source, eigenvalue, plotting, etc)
|
||||
integer :: run_mode = NONE
|
||||
|
||||
! Fixed source particle bank
|
||||
type(Bank), pointer :: source_site => null()
|
||||
|
||||
! Restart run
|
||||
logical :: restart_run = .false.
|
||||
integer :: restart_batch
|
||||
|
|
|
|||
|
|
@ -42,7 +42,12 @@ contains
|
|||
call pr % file_create(filename)
|
||||
|
||||
! Get information about source particle
|
||||
src => source_bank(current_work)
|
||||
select case (run_mode)
|
||||
case (MODE_EIGENVALUE)
|
||||
src => source_bank(current_work)
|
||||
case (MODE_FIXEDSOURCE)
|
||||
src => source_site
|
||||
end select
|
||||
|
||||
! Write data to file
|
||||
call pr % write_data(FILETYPE_PARTICLE_RESTART, 'filetype')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue