fixed the anomalous abort of OASIS
The anomalous termination of the run (caused by an ABORT of oasis) has been fixed by running for (nsteps-1) timesteps in the main loop, instead of nsteps. Out of the main loop, the last snapshot is printed in the netcdf output file with an additional nc_write call, before calling the oasis termination.