Ignore:
Timestamp:
05/25/18 09:18:52 (6 years ago)
Author:
cetlod
Message:

Consolidation of +1=+1 restartablity option : change the date in all mpi NEMO restart file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver

    r3798 r3835  
    171171        ## Take care : 1231 is forced here. Still to be done for monthly run or  
    172172        ## make nrstdt=1 working for all NEMO component. Not done for sea ice yet. 
    173         ncap2 -s "ndastp=${yearrst}1231" ${NEMO_RESTART_FILE}  tmp.nc 
    174         mv tmp.nc ${NEMO_RESTART_FILE} 
     173        if [ -f restartopa_0000.nc ] ; then 
     174           typeset -Z4 ncpu=0 
     175           while [ $ncpu -lt ${OCE_PROC_MPI} ] ; do 
     176              ncap2 -s "ndastp=${yearrst}1231" restartopa_${ncpu}.nc  tmp.nc 
     177              mv tmp.nc restartopa_${ncpu}.nc 
     178              (( ncpu = ncpu + 1 )) 
     179           done 
     180        else 
     181           ncap2 -s "ndastp=${yearrst}1231" ${NEMO_RESTART_FILE}  tmp.nc 
     182           mv tmp.nc ${NEMO_RESTART_FILE} 
     183        fi 
    175184        ##-- Getting from restart file the "new" restart date of run at which we want to re-start 
    176185        NEMO_NDASTP_FROM_RESTART=$(ncdump -v ndastp ${NEMO_RESTART_FILE}|grep 'ndastp ='|awk '{print $3}' ) 
Note: See TracChangeset for help on using the changeset viewer.