Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
OOF stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 10, 2022
1 parent e08f725 commit dc894e6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/setup/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,19 @@ module subroutine setup_construct_system(system, param)
class is (symba_parameters)
if (param%lencounter_save) then
allocate(encounter_storage :: system%encounter_history)
allocate(encounter_io_parameters :: system%encounter_history%nce)
allocate(fraggle_io_parameters :: system%encounter_history%ncc)
call system%encounter_history%reset()
system%encounter_history%nce%file_number = param%iloop / param%dump_cadence
system%encounter_history%ncc%file_number = param%iloop / param%dump_cadence
associate (encounter_history => system%encounter_history)
allocate(encounter_io_parameters :: encounter_history%nce)
call encounter_history%reset()
select type(nce => encounter_history%nce)
class is (encounter_io_parameters)
nce%file_number = param%iloop / param%dump_cadence
end select
allocate(fraggle_io_parameters :: encounter_history%ncc)
select type(ncc => encounter_history%ncc)
class is (fraggle_io_parameters)
ncc%file_number = param%iloop / param%dump_cadence
end select
end associate
end if
end select
end select
Expand Down

0 comments on commit dc894e6

Please sign in to comment.