Added particle restart case for fixed_source runs

This commit is contained in:
Sterling Harper 2014-07-01 14:14:31 +02:00
parent 5bcf714d0f
commit d3f4efde46
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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')