Changeset 5116 for LMDZ6/branches/Amaury_dev/libf/phylmd/iotd_ecrit.F90
- Timestamp:
- Jul 24, 2024, 2:54:37 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/iotd_ecrit.F90
r5113 r5116 58 58 ! Ajouts 59 59 integer, save :: ntime=0 60 integer:: idim,varid60 INTEGER :: idim,varid 61 61 character (len =50):: fichnom 62 62 integer, dimension(4) :: id … … 65 65 66 66 67 if (n_names_iotd_def>0 .and..not.any(names_iotd_def==nom)) return67 if (n_names_iotd_def>0 .and..not.any(names_iotd_def==nom)) RETURN 68 68 !*************************************************************** 69 69 ! Initialisation of 'firstnom' and create/open the "diagfi.nc" NetCDF file … … 83 83 84 84 zx(1:imax*jmax*llm)=px(1:imax*jmax*llm) 85 if (firstnom =='1234567890') then85 if (firstnom =='1234567890') THEN 86 86 firstnom=nom 87 87 endif … … 90 90 91 91 !! Quand on tombe sur la premiere variable on ajoute un pas de temps 92 if (nom==firstnom) then92 if (nom==firstnom) THEN 93 93 ! We have identified a "first call" (at given date) 94 94 … … 114 114 ! PRINT*,'IOTD Date ,varid,nid,ntime,date',varid,nid,ntime,date 115 115 116 if (ierr/=nf90_noerr) then117 write(*,*) "***** PUT_VAR matter in writediagfi_nc"118 write(*,*) "***** with time"119 write(*,*) 'ierr=', ierr116 if (ierr/=nf90_noerr) THEN 117 WRITE(*,*) "***** PUT_VAR matter in writediagfi_nc" 118 WRITE(*,*) "***** with time" 119 WRITE(*,*) 'ierr=', ierr 120 120 endif 121 121 122 ! write(6,*)'WRITEDIAGFI: date= ', date122 ! WRITE(6,*)'WRITEDIAGFI: date= ', date 123 123 end if ! of if (nom.eq.firstnom) 124 124 … … 126 126 !Case of a 3D variable 127 127 !--------------------- 128 if (llm==lmax) then128 if (llm==lmax) THEN 129 129 ndim=4 130 130 corner(1)=1 … … 142 142 !--------------------- 143 143 144 else if (llm==1) then144 else if (llm==1) THEN 145 145 ndim=3 146 146 corner(1)=1 … … 160 160 !----------------------------------------------- 161 161 162 if (ntime==1) then162 if (ntime==1) THEN 163 163 ierr = nf90_redef (nid) 164 164 ierr = nf90_def_var(nid,nom,nf90_float,dim_cc,varid) … … 175 175 ierr= nf90_put_var(nid,varid,zx,corner,edges) 176 176 177 if (ierr/=nf90_noerr) then178 write(*,*) "***** PUT_VAR problem in writediagfi"179 write(*,*) "***** with ",nom180 write(*,*) 'ierr=', ierr177 if (ierr/=nf90_noerr) THEN 178 WRITE(*,*) "***** PUT_VAR problem in writediagfi" 179 WRITE(*,*) "***** with ",nom 180 WRITE(*,*) 'ierr=', ierr 181 181 endif 182 182
Note: See TracChangeset
for help on using the changeset viewer.