Changeset 13061 for NEMO/releases/r4.0/r4.0-HEAD/src/OCE/IOM/iom_nf90.F90
- Timestamp:
- 2020-06-08T15:20:11+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/releases/r4.0/r4.0-HEAD/src/OCE/IOM/iom_nf90.F90
r11536 r13061 60 60 CHARACTER(LEN=256) :: clinfo ! info character 61 61 CHARACTER(LEN=256) :: cltmp ! temporary character 62 CHARACTER(LEN=12 ) :: clfmt ! writing format 63 INTEGER :: idg ! number of digits 62 64 INTEGER :: iln ! lengths of character 63 65 INTEGER :: istop ! temporary storage of nstop … … 69 71 INTEGER :: ihdf5 ! local variable for retrieval of value for NF90_HDF5 70 72 LOGICAL :: llclobber ! local definition of ln_clobber 71 INTEGER :: ilevels 73 INTEGER :: ilevels ! vertical levels 72 74 !--------------------------------------------------------------------- 73 75 ! … … 104 106 IF( ldwrt ) THEN !* the file should be open in write mode so we create it... 105 107 IF( jpnij > 1 ) THEN 106 WRITE(cltmp,'(a,a,i4.4,a)') cdname(1:iln-1), '_', narea-1, '.nc' 108 idg = MAX( INT(LOG10(REAL(MAX(1,jpnij-1),wp))) + 1, 4 ) ! how many digits to we need to write? min=4, max=9 109 WRITE(clfmt, "('(a,a,i', i1, '.', i1, ',a)')") idg, idg ! '(a,a,ix.x,a)' 110 WRITE(cltmp,clfmt) cdname(1:iln-1), '_', narea-1, '.nc' 107 111 cdname = TRIM(cltmp) 108 112 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.