-
Notifications
You must be signed in to change notification settings - Fork 118
Description
Hi all,
Another issue has cropped up in relation to lagrangian detector IO.
In the lagrangian-detector-issues branch, I have added a test named "lagrangian_detector_checkpoint_newarray". This test picks up from a precomputed checkpoint, with one lagrangian detector array (Steve). The checkpointed .flml has been modified, with an additional lagrangian detector array (Bob) added, which is initialized via python (so one detector array should pick up from the checkpoint - Steve -, whilst the other should not -Bob).
The simulation fails at line 1624 of file Diagnostic_variables.F90:
(unit = 11, file = 'lagrangian_detectors_1_checkpoint_det.groups')
Fortran runtime error: End of file
Despite specifying that detector array Bob should be initialized via python, fluidity is trying to initialize it from a checkpoint.
From looking at the code, it seems that the detector IO routines cannot accommodate both checkpointed and initialized detector arrays simultaneously. Indeed, if there is one checkpointed detector array, the assumption is that that is true for all, which will not necessarily be the case.
Was there a reason that this was setup like this or is it a bug?
Best wishes,
Rhodri