New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 6144 for branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO – NEMO

Ignore:
Timestamp:
2015-12-21T13:21:24+01:00 (8 years ago)
Author:
jpalmier
Message:

JPALM --21-12-2015 -- add print statement on restarts writing

Location:
branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r5733 r6144  
    5454      !!---------------------------------------------------------------------- 
    5555      INTEGER, INTENT(in) ::   kt     ! ocean time-step 
     56      INTEGER             ::   iyear, imonth, iday 
     57      REAL (wp)           ::   zsec 
    5658      !! 
    5759      CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character 
    5860      CHARACTER(LEN=50)   ::   clname   ! ocean output restart file name 
    59       CHARACTER(lc)       ::   clpath   ! full path to ocean output restart file 
     61      CHARACTER(LEN=150)  ::   clpath   ! full path to ocean output restart file 
    6062      !!---------------------------------------------------------------------- 
    6163      ! 
    6264      IF( kt == nit000 ) THEN   ! default definitions 
    63          lrst_oce = .FALSE.    
     65         lrst_oce = .FALSE. 
    6466         IF( ln_rst_list ) THEN 
    6567            nrst_lst = 1 
     
    7173 
    7274      ! frequency-based restart dumping (nn_stock) 
    73       IF( .NOT. ln_rst_list .AND. MOD( kt - 1, nstock ) == 0 ) THEN    
     75      IF( .NOT. ln_rst_list .AND. MOD( kt - 1, nstock ) == 0 ) THEN 
    7476         ! we use kt - 1 and not kt - nit000 to keep the same periodicity from the beginning of the experiment 
    7577         nitrst = kt + nstock - 1                  ! define the next value of nitrst for restart writing 
     
    8082      ! except if we write ocean restart files every time step or if an ocean restart file was writen at nitend - 1 
    8183      IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 
    82          IF( nitrst <= nitend .AND. nitrst > 0 ) THEN  
    83             ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
    84             IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
    85             ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
     84         IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 
     85            IF ( ln_rstdate ) THEN 
     86            WRITE(numout,*) 'JPALM - oce restart kt = ',kt,'==', nitrst - 1 
     87            WRITE(numout,*) 'JPALM - oce restart nstock = ',nstock,'== 1 ' 
     88            WRITE(numout,*) 'JPALM - oce restart kt = ',kt,'==',nitend 
     89            WRITE(numout,*) 'JPALM - oce restart nitrst = ',nitrst,'<=',nitend,' and > 0' 
     90            WRITE(numout,*) '-----------------------------' 
     91 
     92               CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 
     93               WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 
     94            ELSE 
     95               ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
     96               IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
     97               ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
     98               ENDIF 
    8699            ENDIF 
    87100            ! create the file 
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90

    r6109 r6144  
    8686      IF( kt == nitrst - 2*nn_dttrc .OR. nstock == nn_dttrc .OR. ( kt == nitend - nn_dttrc .AND. .NOT. lrst_trc ) ) THEN 
    8787         IF ( ln_rstdate ) THEN 
     88            WRITE(numout,*) 'JPALM - trc restart kt = ',kt,'==', nitrst - 2*nn_dttrc 
     89            WRITE(numout,*) 'JPALM - trc restart nstock = ',nstock,'==',nn_dttrc 
     90            WRITE(numout,*) 'JPALM - trc restart kt = ',kt,'==',nitend - nn_dttrc 
     91            WRITE(numout,*) '-----------------------------' 
    8892            CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 
    8993            WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 
Note: See TracChangeset for help on using the changeset viewer.