Restart with additional nest
It would be great to be able to restart a simulation from a restart file and nest another domain inside.
Currently, at least configure_dynamics
causes an issue, as it tries to load values for an additional domain from the restart files.
Maybe it would be sufficient to rewrite the following:
IF (restartAttributes%is_init) THEN
! Read time level indices from restart file.
! NOTE: this part will be modified later for a proper handling
! of multiple domains!!!
DO jdom = 1,ndom
WRITE (sdom, "(i2.2)") jdom
CALL restartAttributes%get('nold_DOM'//sdom, nold(jdom))
CALL restartAttributes%get('nnow_DOM'//sdom, nnow(jdom))
CALL restartAttributes%get('nnew_DOM'//sdom, nnew(jdom))
CALL restartAttributes%get('nnow_rcf_DOM'//sdom, nnow_rcf(jdom))
CALL restartAttributes%get('nnew_rcf_DOM'//sdom, nnew_rcf(jdom))
END DO
ELSE ! not isRestart
nnow(:) = 1
nnew(:) = 2
nold(:) = 3
nnow_rcf(:) = 1
nnew_rcf(:) = 2
END IF
such that it is tested if a domain has been defined before and otherwise is handled like the not isRestart
case.
A workaround might be to define these domains already when starting the initial run, but just put their execute time outside of the experiment time frame. However, this assumes, that the grids are already know that shall be calculated.