Hi everyone,
I am running a simulation with Basilisk and I generate restart/dump files during the run. My question is: after stopping a case (either by Ctrl+C or after it finishes generating a dump file), how can I continue running it from the last saved state?
For context, my current workflow is:
# Compile the serial version
qcc -o tangaroa tangaroa.c -lm -L$BASILISK/gl -lglutils -lfb_tiny
# Run the serial version to generate a restart file
./tangaroa
# Compile the MPI version with dump file support
qcc -source -D_MPI=1 -DDUMP=1 tangaroa.c
mpicc -DDUMP=1 -Wall -std=c99 -D_XOPEN_SOURCE=700 -O2 _tangaroa.c -o tangaroa_mpi \
-lm -L/home/sjy/basilisk/src/gl -lglutils -lfb_tiny
# Run the MPI version, which generates dump files periodically
mpirun -np 4 ./tangaroa_mpi
After stopping the run, I am not sure how to restart the simulation from the last saved state. Could anyone please advise the recommended way to continue a case?
Thanks in advance!