Changeset 5084 for LMDZ6/trunk/libf/phylmd/interfoce_lim.F90
- Timestamp:
- Jul 19, 2024, 6:40:44 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/interfoce_lim.F90
r5075 r5084 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_nowrite13 12 14 13 IMPLICIT NONE 14 15 INCLUDE "netcdf.inc" 15 16 16 17 ! Cette routine sert d'interface entre le modele atmospherique et un fichier … … 115 116 fich = TRIM(fich) 116 117 ierr = NF_OPEN (fich, NF_NOWRITE,nid) 117 IF (ierr /=NF_NOERR) THEN118 IF (ierr.NE.NF_NOERR) THEN 118 119 abort_message = 'Pb d''ouverture du fichier de conditions aux limites' 119 120 CALL abort_physic(modname,abort_message,1) … … 136 137 CALL abort_physic(modname,abort_message,1) 137 138 ENDIF 138 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_oce),start,epais) 139 #ifdef NC_DOUBLE 140 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais,pct_tmp(1,is_oce)) 141 #else 142 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais,pct_tmp(1,is_oce)) 143 #endif 139 144 IF (ierr /= NF_NOERR) THEN 140 145 abort_message = 'Lecture echouee pour <FOCE>' … … 149 154 CALL abort_physic(modname,abort_message,1) 150 155 ENDIF 151 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_sic),start,epais) 156 #ifdef NC_DOUBLE 157 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais,pct_tmp(1,is_sic)) 158 #else 159 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais,pct_tmp(1,is_sic)) 160 #endif 152 161 IF (ierr /= NF_NOERR) THEN 153 162 abort_message = 'Lecture echouee pour <FSIC>' … … 162 171 CALL abort_physic(modname,abort_message,1) 163 172 ENDIF 164 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_ter),start,epais) 173 #ifdef NC_DOUBLE 174 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais,pct_tmp(1,is_ter)) 175 #else 176 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais,pct_tmp(1,is_ter)) 177 #endif 165 178 IF (ierr /= NF_NOERR) THEN 166 179 abort_message = 'Lecture echouee pour <FTER>' … … 175 188 CALL abort_physic(modname,abort_message,1) 176 189 ENDIF 177 ierr = nf90_get_var(nid,nvarid,pct_tmp(:,is_lic),start,epais) 190 #ifdef NC_DOUBLE 191 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais,pct_tmp(1,is_lic)) 192 #else 193 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais,pct_tmp(1,is_lic)) 194 #endif 178 195 IF (ierr /= NF_NOERR) THEN 179 196 abort_message = 'Lecture echouee pour <FLIC>' … … 188 205 CALL abort_physic(modname,abort_message,1) 189 206 ENDIF 190 ierr = nf90_get_var(nid,nvarid,nat_lu,start,epais) 207 #ifdef NC_DOUBLE 208 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais, nat_lu) 209 #else 210 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais, nat_lu) 211 #endif 191 212 IF (ierr /= NF_NOERR) THEN 192 213 abort_message = 'Lecture echouee pour <NAT>' … … 218 239 CALL abort_physic(modname,abort_message,1) 219 240 ENDIF 220 ierr = nf90_get_var(nid,nvarid,sst_lu,start,epais) 241 #ifdef NC_DOUBLE 242 ierr = NF_GET_VARA_DOUBLE(nid,nvarid,start,epais, sst_lu) 243 #else 244 ierr = NF_GET_VARA_REAL(nid,nvarid,start,epais, sst_lu) 245 #endif 221 246 IF (ierr /= NF_NOERR) THEN 222 247 abort_message = 'Lecture echouee pour <SST>'
Note: See TracChangeset
for help on using the changeset viewer.