|
|
xxx |
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
Any snapshot (`NIR#.#`, `NIRLAST.#` files) can be used for a simulation
|
|
|
restart to continue a calculation. A restart is enabled by setting the
|
|
|
parameter `mode` in line 01 under category `SIMULATION I/O` in
|
|
|
`nirvana.par` to one of the values {`RES`,`MOD`}, and by specifying the
|
|
|
parameter `fname` representing the snapshot to be restarted.
|
|
|
|
|
|
The difference between `RES` and `MOD` is that in the `MOD` restart case
|
|
|
the function `modifyConfigUser()` is called after reading the snapshot
|
|
|
and before the calculation continues. In the call of
|
|
|
`modifyConfigUser()` the only function argument is the master mesh
|
|
|
pointer `gm`:
|
|
|
|
|
|
modifyConfigUser(gm);
|
|
|
|
|
|
The user can implement own code in `modifyConfigUser.c` in order to
|
|
|
modify the restart data. Such modifications, however, should always be
|
|
|
done with caution in the sense that *if you don’t know what you do,
|
|
|
don’t do!.*
|
|
|
|
|
|
The parameter `fname` must be set to the path plus *base* container
|
|
|
filename of the snapshot. The base container filename is `NIR#` or
|
|
|
`NIRLAST#` with `#`=`_C.model` excluding the dot and post-dot container
|
|
|
id.
|
|
|
|
|
|
For MPI restarts it is necessary to copy all container files belonging
|
|
|
to a snapshot to I/O directory as specified by the user in the MPI job
|
|
|
script.
|
|
|
|
|
|
*Note 1: In restart mode all input parameters following `fname` in
|
|
|
`nirvana.par` are ignored.*
|
|
|
|
|
|
*Note 2: MPI simulations can be restarted with a different number of
|
|
|
threads and with a different number of containers.*
|
|
|
|