Changeset 5088 for LMDZ6/branches/Amaury_dev/libf/phylmd/interfoce_lim.F90
- Timestamp:
- Jul 20, 2024, 4:30:31 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/interfoce_lim.F90
r5075 r5088 10 10 USE mod_phys_lmdz_para 11 11 USE indice_sol_mod 12 USE lmdz_netcdf, ONLY: nf90_get_var,nf_close,nf_noerr,nf_inq_varid,nf_open,nf_nowrite12 USE netcdf, ONLY: nf90_get_var,nf90_close,nf90_noerr,nf90_inq_varid,nf90_open,nf90_nowrite 13 13 14 14 IMPLICIT NONE … … 114 114 115 115 fich = TRIM(fich) 116 ierr = NF_OPEN (fich, NF_NOWRITE,nid)117 IF (ierr/= NF_NOERR) THEN116 ierr = nf90_open (fich, nf90_nowrite,nid) 117 IF (ierr/=nf90_noerr) THEN 118 118 abort_message = 'Pb d''ouverture du fichier de conditions aux limites' 119 119 CALL abort_physic(modname,abort_message,1) … … 131 131 ! Fraction "ocean" 132 132 ! 133 ierr = NF_INQ_VARID(nid, 'FOCE', nvarid)134 IF (ierr /= NF_NOERR) THEN133 ierr = nf90_inq_varid(nid, 'FOCE', nvarid) 134 IF (ierr /= nf90_noerr) THEN 135 135 abort_message = 'Le champ <FOCE> est absent' 136 136 CALL abort_physic(modname,abort_message,1) 137 137 ENDIF 138 138 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_oce),start,epais) 139 IF (ierr /= NF_NOERR) THEN139 IF (ierr /= nf90_noerr) THEN 140 140 abort_message = 'Lecture echouee pour <FOCE>' 141 141 CALL abort_physic(modname,abort_message,1) … … 144 144 ! Fraction "glace de mer" 145 145 ! 146 ierr = NF_INQ_VARID(nid, 'FSIC', nvarid)147 IF (ierr /= NF_NOERR) THEN146 ierr = nf90_inq_varid(nid, 'FSIC', nvarid) 147 IF (ierr /= nf90_noerr) THEN 148 148 abort_message = 'Le champ <FSIC> est absent' 149 149 CALL abort_physic(modname,abort_message,1) 150 150 ENDIF 151 151 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_sic),start,epais) 152 IF (ierr /= NF_NOERR) THEN152 IF (ierr /= nf90_noerr) THEN 153 153 abort_message = 'Lecture echouee pour <FSIC>' 154 154 CALL abort_physic(modname,abort_message,1) … … 157 157 ! Fraction "terre" 158 158 ! 159 ierr = NF_INQ_VARID(nid, 'FTER', nvarid)160 IF (ierr /= NF_NOERR) THEN159 ierr = nf90_inq_varid(nid, 'FTER', nvarid) 160 IF (ierr /= nf90_noerr) THEN 161 161 abort_message = 'Le champ <FTER> est absent' 162 162 CALL abort_physic(modname,abort_message,1) 163 163 ENDIF 164 164 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_ter),start,epais) 165 IF (ierr /= NF_NOERR) THEN165 IF (ierr /= nf90_noerr) THEN 166 166 abort_message = 'Lecture echouee pour <FTER>' 167 167 CALL abort_physic(modname,abort_message,1) … … 170 170 ! Fraction "glacier terre" 171 171 ! 172 ierr = NF_INQ_VARID(nid, 'FLIC', nvarid)173 IF (ierr /= NF_NOERR) THEN172 ierr = nf90_inq_varid(nid, 'FLIC', nvarid) 173 IF (ierr /= nf90_noerr) THEN 174 174 abort_message = 'Le champ <FLIC> est absent' 175 175 CALL abort_physic(modname,abort_message,1) 176 176 ENDIF 177 177 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_lic),start,epais) 178 IF (ierr /= NF_NOERR) THEN178 IF (ierr /= nf90_noerr) THEN 179 179 abort_message = 'Lecture echouee pour <FLIC>' 180 180 CALL abort_physic(modname,abort_message,1) … … 183 183 ELSE ! on en est toujours a rnatur 184 184 ! 185 ierr = NF_INQ_VARID(nid, 'NAT', nvarid)186 IF (ierr /= NF_NOERR) THEN185 ierr = nf90_inq_varid(nid, 'NAT', nvarid) 186 IF (ierr /= nf90_noerr) THEN 187 187 abort_message = 'Le champ <NAT> est absent' 188 188 CALL abort_physic(modname,abort_message,1) 189 189 ENDIF 190 190 ierr = nf90_get_var(nid,nvarid,nat_lu,start,epais) 191 IF (ierr /= NF_NOERR) THEN191 IF (ierr /= nf90_noerr) THEN 192 192 abort_message = 'Lecture echouee pour <NAT>' 193 193 CALL abort_physic(modname,abort_message,1) … … 213 213 ! Lecture SST 214 214 ! 215 ierr = NF_INQ_VARID(nid, 'SST', nvarid)216 IF (ierr /= NF_NOERR) THEN215 ierr = nf90_inq_varid(nid, 'SST', nvarid) 216 IF (ierr /= nf90_noerr) THEN 217 217 abort_message = 'Le champ <SST> est absent' 218 218 CALL abort_physic(modname,abort_message,1) 219 219 ENDIF 220 220 ierr = nf90_get_var(nid,nvarid,sst_lu,start,epais) 221 IF (ierr /= NF_NOERR) THEN221 IF (ierr /= nf90_noerr) THEN 222 222 abort_message = 'Lecture echouee pour <SST>' 223 223 CALL abort_physic(modname,abort_message,1) … … 228 228 ! 229 229 !**************************************************************************************** 230 ierr = NF_CLOSE(nid)230 ierr = nf90_close(nid) 231 231 ENDIF ! is_mpi_root 232 232
Note: See TracChangeset
for help on using the changeset viewer.