Changeset 5101 for LMDZ6/branches/Amaury_dev/libf/dyn3dmem/dynredem_loc.F90
- Timestamp:
- Jul 23, 2024, 8:22:55 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3dmem/dynredem_loc.F90
r5100 r5101 11 11 USE strings_mod, ONLY: maxlen 12 12 USE infotrac, ONLY: nqtot, tracers 13 USE netcdf, ONLY: nf90_create, nf90_def_dim, NF90_INQ_VARID, nf90_global, &13 USE netcdf, ONLY: nf90_create, nf90_def_dim, nf90_inq_varid, nf90_global, & 14 14 nf90_close, nf90_put_att, nf90_unlimited, nf90_clobber, & 15 15 nf90_64bit_offset … … 178 178 USE infotrac, ONLY: nqtot, tracers, type_trac 179 179 USE control_mod 180 USE netcdf, ONLY: nf90_open, nf90_nowrite, nf90_get_var, NF90_INQ_VARID, &181 nf90_close, NF90_WRITE, nf90_put_var, nf90_noerr180 USE netcdf, ONLY: nf90_open, nf90_nowrite, nf90_get_var, nf90_inq_varid, & 181 nf90_close, nf90_write, nf90_put_var, nf90_noerr 182 182 USE dynredem_mod, ONLY: dynredem_write_u, dynredem_write_v, dynredem_read_u, & 183 183 err, modname, fil, msg … … 213 213 IF(mpi_rank==0) THEN !++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 214 214 modname='dynredem1_loc'; fil=fichnom 215 CALL err(nf90_open(fil, NF90_WRITE,nid),"open",fil)215 CALL err(nf90_open(fil,nf90_write,nid),"open",fil) 216 216 217 217 !--- Write/extend time coordinate 218 218 nb = nb + 1 219 219 var="temps" 220 CALL err( NF90_INQ_VARID(nid,var,vID),"inq",var)220 CALL err(nf90_inq_varid(nid,var,vID),"inq",var) 221 221 CALL err(nf90_put_var(nid,vID,[time]),"put",var) 222 222 WRITE(lunout,*)TRIM(modname)//": Saving for ", nb, time … … 224 224 !--- Rewrite control table (itaufin undefined in dynredem0) 225 225 var="controle" 226 CALL err( NF90_INQ_VARID(nid,var,vID),"inq",var)226 CALL err(nf90_inq_varid(nid,var,vID),"inq",var) 227 227 CALL err(nf90_get_var(nid,vID,tab_cntrl),"get",var) 228 228 tab_cntrl(31)=DBLE(itau_dyn + itaufin) 229 CALL err( NF90_INQ_VARID(nid,var,vID),"inq",var)229 CALL err(nf90_inq_varid(nid,var,vID),"inq",var) 230 230 CALL err(nf90_put_var(nid,vID,tab_cntrl),"put",var) 231 231 END IF !++++++++++++++++++++++++++++++++++++++++++++++++++++++++ … … 253 253 !$OMP MASTER 254 254 fil="start_trac.nc" 255 ierr= NF90_INQ_VARID(nid_trac,var,vID_trac)255 ierr=nf90_inq_varid(nid_trac,var,vID_trac) 256 256 dum='inq'; IF(ierr==nf90_noerr) dum='fnd' 257 257 WRITE(lunout,*)msg(dum,var)
Note: See TracChangeset
for help on using the changeset viewer.