Changeset 5073 for LMDZ6/trunk/libf/phylmd/Dust
- Timestamp:
- Jul 18, 2024, 4:57:05 PM (6 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd/Dust
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/Dust/condsurfc.F
r4593 r5073 24 24 INTEGER debut(2),epais(2) 25 25 ! 26 IF (jour .LT.0 .OR. jour.GT.(360-1)) THEN27 IF (jour .GT.(360-1).AND.jour.LE.367) THEN26 IF (jour<0 .OR. jour>(360-1)) THEN 27 IF (jour>(360-1).AND.jour<=367) THEN 28 28 jour=360-1 29 29 print *,'JE: jour changed to jour= ',jour … … 35 35 ! 36 36 ierr = NF_OPEN ("limitcarbon.nc", NF_NOWRITE, nid1) 37 if (ierr .ne.NF_NOERR) then37 if (ierr/=NF_NOERR) then 38 38 write(6,*)' Pb d''ouverture du fichier limitbc.nc' 39 39 write(6,*)' ierr = ', ierr … … 49 49 ! 50 50 ierr = NF_INQ_VARID (nid1, "BCFF", nvarid) 51 !nhl #ifdef NC_DOUBLE 52 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_bcff) 51 ierr = nf90_get_var(nid1, nvarid, lmt_bcff, debut, epais) 53 52 ! print *,'IERR = ',ierr 54 53 ! print *,'NF_NOERR = ',NF_NOERR 55 54 ! print *,'debut = ',debut 56 55 ! print *,'epais = ',epais 57 !nhl #else 58 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_bcff) 59 !nhl #endif 60 IF (ierr .NE. NF_NOERR) THEN 56 IF (ierr /= NF_NOERR) THEN 61 57 PRINT*, 'Pb de lecture pour les sources BC' 62 58 CALL exit(1) … … 65 61 ! 66 62 ierr = NF_INQ_VARID (nid1, "BCBB", nvarid) 67 !nhl #ifdef NC_DOUBLE 68 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_bcbb) 69 !nhl #else 70 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_bcbb) 71 !nhl #endif 72 IF (ierr .NE. NF_NOERR) THEN 63 ierr = nf90_get_var(nid1, nvarid, lmt_bcbb, debut, epais) 64 IF (ierr /= NF_NOERR) THEN 73 65 PRINT*, 'Pb de lecture pour les sources BC-biomass' 74 66 CALL exit(1) … … 77 69 ! 78 70 ierr = NF_INQ_VARID (nid1, "BCBL", nvarid) 79 !nhl #ifdef NC_DOUBLE 80 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_bcbbl) 81 !nhl #else 82 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_bcbbl) 83 !nhl #endif 84 IF (ierr .NE. NF_NOERR) THEN 71 ierr = nf90_get_var(nid1, nvarid, lmt_bcbbl, debut, epais) 72 IF (ierr /= NF_NOERR) THEN 85 73 PRINT*, 'Pb de lecture pour les sources BC low' 86 74 CALL exit(1) … … 89 77 ! 90 78 ierr = NF_INQ_VARID (nid1, "BCBH", nvarid) 91 !nhl #ifdef NC_DOUBLE 92 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_bcbbh) 93 !nhl #else 94 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_bcbbh) 95 !nhl #endif 96 IF (ierr .NE. NF_NOERR) THEN 79 ierr = nf90_get_var (nid1, nvarid, lmt_bcbbh, debut, epais) 80 IF (ierr /= NF_NOERR) THEN 97 81 PRINT*, 'Pb de lecture pour les sources BC high' 98 82 CALL exit(1) … … 100 84 ! 101 85 ierr = NF_INQ_VARID (nid1, "TERP", nvarid) 102 !nhl #ifdef NC_DOUBLE 103 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_terp) 104 !nhl #else 105 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_terp) 106 !nhl #endif 107 IF (ierr .NE. NF_NOERR) THEN 86 ierr = nf90_get_var (nid1, nvarid, lmt_terp, debut, epais) 87 IF (ierr /= NF_NOERR) THEN 108 88 PRINT*, 'Pb de lecture pour les sources Terpene' 109 89 CALL exit(1) … … 112 92 ! 113 93 ierr = NF_INQ_VARID (nid1, "BC_penner", nvarid) 114 !nhl #ifdef NC_DOUBLE 115 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, 116 . epais, lmt_bc_penner) 117 !nhl #else 118 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, 119 !nhl . lmt_bc_penner) 120 !nhl #endif 121 IF (ierr .NE. NF_NOERR) THEN 94 ierr = nf90_get_var (nid1, nvarid, lmt_bc_penner, debut, epais) 95 IF (ierr /= NF_NOERR) THEN 122 96 PRINT*, 'Pb de lecture pour les sources BC Penner' 123 97 CALL exit(1) … … 126 100 ! 127 101 ierr = NF_INQ_VARID (nid1, "OMFF", nvarid) 128 !nhl #ifdef NC_DOUBLE 129 ierr = NF_GET_VARA_DOUBLE (nid1, nvarid, debut, epais, lmt_omff) 130 !nhl #else 131 !nhl ierr = NF_GET_VARA_REAL (nid1, nvarid, debut, epais, lmt_omff) 132 !nhl #endif 133 IF (ierr .NE. NF_NOERR) THEN 102 ierr = nf90_get_var (nid1, nvarid, lmt_omff, debut, epais) 103 IF (ierr /= NF_NOERR) THEN 134 104 PRINT*, 'Pb de lecture pour les sources om-ifossil' 135 105 CALL exit(1) -
LMDZ6/trunk/libf/phylmd/Dust/condsurfs.F
r4593 r5073 24 24 INTEGER debut(2),epais(2) 25 25 c 26 IF (jour .LT.0 .OR. jour.GT.(360-1)) THEN27 IF ((jour .GT.(360-1)) .AND. (jour.LE.367)) THEN26 IF (jour<0 .OR. jour>(360-1)) THEN 27 IF ((jour>(360-1)) .AND. (jour<=367)) THEN 28 28 jour=360-1 29 29 print *,'JE: jour changed to jour= ',jour … … 35 35 c 36 36 ierr = NF_OPEN ("limitsoufre.nc", NF_NOWRITE, nid) 37 if (ierr .ne.NF_NOERR) then37 if (ierr/=NF_NOERR) then 38 38 write(6,*)' Pb d''ouverture du fichier limitsoufre.nc' 39 39 write(6,*)' ierr = ', ierr … … 48 48 c 49 49 ierr = NF_INQ_VARID (nid, "VOLC", nvarid) 50 cnhl #ifdef NC_DOUBLE 51 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2volc) 52 cnhl #else 53 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2volc) 54 cnhl #endif 55 IF (ierr .NE. NF_NOERR) THEN 50 ierr = nf90_get_var(nid, nvarid, lmt_so2volc, debut, epais) 51 IF (ierr /= NF_NOERR) THEN 56 52 PRINT*, 'Pb de lecture pour les sources so2 volcan' 57 53 CALL exit(1) … … 59 55 c 60 56 ierr = NF_INQ_VARID (nid, "ALTI", nvarid) 61 cnhl #ifdef NC_DOUBLE 62 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_altvolc) 63 cnhl #else 64 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_altvolc) 65 cnhl #endif 66 IF (ierr .NE. NF_NOERR) THEN 57 ierr = nf90_get_var(nid, nvarid, lmt_altvolc, debut, epais) 58 IF (ierr /= NF_NOERR) THEN 67 59 PRINT*, 'Pb de lecture pour les altitudes volcan' 68 60 CALL exit(1) … … 72 64 c 73 65 ierr = NF_INQ_VARID (nid, "SO2ED95L", nvarid) 74 cnhl #ifdef NC_DOUBLE 75 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2b) 76 cnhl #else 77 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2b) 78 cnhl #endif 79 IF (ierr .NE. NF_NOERR) THEN 66 ierr = nf90_get_var(nid, nvarid, lmt_so2b, debut, epais) 67 IF (ierr /= NF_NOERR) THEN 80 68 PRINT*, 'Pb de lecture pour les sources so2 edgar low' 81 69 CALL exit(1) … … 83 71 c 84 72 ierr = NF_INQ_VARID (nid, "SO2ED95H", nvarid) 85 cnhl #ifdef NC_DOUBLE 86 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2h) 87 cnhl #else 88 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2h) 89 cnhl #endif 90 IF (ierr .NE. NF_NOERR) THEN 73 ierr = nf90_get_var(nid, nvarid, lmt_so2h, debut, epais) 74 IF (ierr /= NF_NOERR) THEN 91 75 PRINT*, 'Pb de lecture pour les sources so2 edgar high' 92 76 CALL exit(1) … … 96 80 c 97 81 ierr = NF_INQ_VARID (nid, "SO2H", nvarid) 98 cnhl #ifdef NC_DOUBLE 99 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2h) 100 cnhl #else 101 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2h) 102 cnhl #endif 103 IF (ierr .NE. NF_NOERR) THEN 82 ierr = nf90_get_var(nid, nvarid, lmt_so2h, debut, epais) 83 IF (ierr /= NF_NOERR) THEN 104 84 PRINT*, 'Pb de lecture pour les sources so2 haut' 105 85 CALL exit(1) … … 107 87 c 108 88 ierr = NF_INQ_VARID (nid, "SO2B", nvarid) 109 cnhl #ifdef NC_DOUBLE 110 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2b) 111 cnhl #else 112 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2b) 113 cnhl #endif 114 IF (ierr .NE. NF_NOERR) THEN 89 ierr = nf90_get_var(nid, nvarid, lmt_so2b, debut, epais) 90 IF (ierr /= NF_NOERR) THEN 115 91 PRINT*, 'Pb de lecture pour les sources so2 bas' 116 92 CALL exit(1) … … 120 96 c 121 97 ierr = NF_INQ_VARID (nid, "SO2BB", nvarid) 122 cnhl #ifdef NC_DOUBLE 123 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2bb) 124 cnhl #else 125 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2bb) 126 cnhl #endif 127 IF (ierr .NE. NF_NOERR) THEN 98 ierr = nf90_get_var(nid, nvarid, lmt_so2bb, debut, epais) 99 IF (ierr /= NF_NOERR) THEN 128 100 PRINT*, 'Pb de lecture pour les sources so2 bb' 129 101 CALL exit(1) … … 131 103 c 132 104 ierr = NF_INQ_VARID (nid, "SO2BA", nvarid) 133 cnhl #ifdef NC_DOUBLE 134 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_so2ba) 135 cnhl #else 136 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_so2ba) 137 cnhl #endif 138 IF (ierr .NE. NF_NOERR) THEN 105 ierr = nf90_get_var(nid, nvarid, lmt_so2ba, debut, epais) 106 IF (ierr /= NF_NOERR) THEN 139 107 PRINT*, 'Pb de lecture pour les sources so2 bateau' 140 108 CALL exit(1) … … 142 110 c 143 111 ierr = NF_INQ_VARID (nid, "DMSB", nvarid) 144 cnhl #ifdef NC_DOUBLE 145 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_dmsbio) 146 cnhl #else 147 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsbio) 148 cnhl #endif 149 IF (ierr .NE. NF_NOERR) THEN 112 ierr = nf90_get_var(nid, nvarid, lmt_dmsbio, debut, epais) 113 IF (ierr /= NF_NOERR) THEN 150 114 PRINT*, 'Pb de lecture pour les sources dms bio' 151 115 CALL exit(1) … … 153 117 c 154 118 ierr = NF_INQ_VARID (nid, "H2SB", nvarid) 155 cnhl #ifdef NC_DOUBLE 156 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_h2sbio) 157 cnhl #else 158 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_h2sbio) 159 cnhl #endif 160 IF (ierr .NE. NF_NOERR) THEN 119 ierr = nf90_get_var(nid, nvarid, lmt_h2sbio, debut, epais) 120 IF (ierr /= NF_NOERR) THEN 161 121 PRINT*, 'Pb de lecture pour les sources h2s bio' 162 122 CALL exit(1) 163 123 ENDIF 164 124 c 165 IF (flag_dms .EQ.1) THEN125 IF (flag_dms==1) THEN 166 126 c 167 127 ierr = NF_INQ_VARID (nid, "DMSL", nvarid) 168 cnhl #ifdef NC_DOUBLE 169 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_dms) 170 cnhl #else 171 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dms) 172 cnhl #endif 173 IF (ierr .NE. NF_NOERR) THEN 128 ierr = nf90_get_var(nid, nvarid, lmt_dms, debut, epais) 129 IF (ierr /= NF_NOERR) THEN 174 130 PRINT*, 'Pb de lecture pour les sources dms liss' 175 131 CALL exit(1) 176 132 ENDIF 177 133 c 178 ELSEIF (flag_dms .EQ.2) THEN134 ELSEIF (flag_dms==2) THEN 179 135 c 180 136 ierr = NF_INQ_VARID (nid, "DMSW", nvarid) 181 cnhl #ifdef NC_DOUBLE 182 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut, epais, lmt_dms) 183 cnhl #else 184 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dms) 185 cnhl #endif 186 IF (ierr .NE. NF_NOERR) THEN 137 ierr = nf90_get_var(nid, nvarid, lmt_dms, debut, epais) 138 IF (ierr /= NF_NOERR) THEN 187 139 PRINT*, 'Pb de lecture pour les sources dms wann' 188 140 CALL exit(1) 189 141 ENDIF 190 142 c 191 ELSEIF (flag_dms .EQ.3) THEN143 ELSEIF (flag_dms==3) THEN 192 144 c 193 145 ierr = NF_INQ_VARID (nid, "DMSC1", nvarid) 194 cnhl #ifdef NC_DOUBLE 195 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 196 cnhl #else 197 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 198 cnhl #endif 199 IF (ierr .NE. NF_NOERR) THEN 146 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 147 IF (ierr /= NF_NOERR) THEN 200 148 PRINT*, 'Pb de lecture pour les sources dmsconc old' 201 149 CALL exit(1) 202 150 ENDIF 203 151 c 204 ELSEIF (flag_dms .EQ.4) THEN152 ELSEIF (flag_dms==4) THEN 205 153 c 206 154 ierr = NF_INQ_VARID (nid, "DMSC2", nvarid) 207 cnhl #ifdef NC_DOUBLE 208 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 209 cnhl #else 210 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 211 cnhl #endif 212 IF (ierr .NE. NF_NOERR) THEN 155 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 156 IF (ierr /= NF_NOERR) THEN 213 157 PRINT*, 'Pb de lecture pour les sources dms conc 2' 214 158 CALL exit(1) 215 159 ENDIF 216 160 c 217 ELSEIF (flag_dms .EQ.5) THEN161 ELSEIF (flag_dms==5) THEN 218 162 c 219 163 ierr = NF_INQ_VARID (nid, "DMSC3", nvarid) 220 cnhl #ifdef NC_DOUBLE 221 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 222 cnhl #else 223 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 224 cnhl #endif 225 IF (ierr .NE. NF_NOERR) THEN 164 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 165 IF (ierr /= NF_NOERR) THEN 226 166 PRINT*, 'Pb de lecture pour les sources dms conc 3' 227 167 CALL exit(1) 228 168 ENDIF 229 169 c 230 ELSEIF (flag_dms .EQ.6) THEN170 ELSEIF (flag_dms==6) THEN 231 171 c 232 172 ierr = NF_INQ_VARID (nid, "DMSC4", nvarid) 233 cnhl #ifdef NC_DOUBLE 234 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 235 cnhl #else 236 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 237 cnhl #endif 238 IF (ierr .NE. NF_NOERR) THEN 173 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 174 IF (ierr /= NF_NOERR) THEN 239 175 PRINT*, 'Pb de lecture pour les sources dms conc 4' 240 176 CALL exit(1) 241 177 ENDIF 242 178 c 243 ELSEIF (flag_dms .EQ.7) THEN179 ELSEIF (flag_dms==7) THEN 244 180 c 245 181 ierr = NF_INQ_VARID (nid, "DMSC5", nvarid) 246 cnhl #ifdef NC_DOUBLE 247 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 248 cnhl #else 249 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 250 cnhl #endif 251 IF (ierr .NE. NF_NOERR) THEN 182 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 183 IF (ierr /= NF_NOERR) THEN 252 184 PRINT*, 'Pb de lecture pour les sources dms conc 5' 253 185 CALL exit(1) 254 186 ENDIF 255 187 c 256 ELSEIF (flag_dms .EQ.8) THEN188 ELSEIF (flag_dms==8) THEN 257 189 c 258 190 ierr = NF_INQ_VARID (nid, "DMSC6", nvarid) 259 cnhl #ifdef NC_DOUBLE 260 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 261 cnhl #else 262 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 263 cnhl #endif 264 IF (ierr .NE. NF_NOERR) THEN 191 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 192 IF (ierr /= NF_NOERR) THEN 265 193 PRINT*, 'Pb de lecture pour les sources dms conc 6' 266 194 CALL exit(1) 267 195 ENDIF 268 196 c 269 ELSEIF (flag_dms .EQ.9) THEN197 ELSEIF (flag_dms==9) THEN 270 198 c 271 199 ierr = NF_INQ_VARID (nid, "DMSC7", nvarid) 272 cnhl #ifdef NC_DOUBLE 273 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 274 cnhl #else 275 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 276 cnhl #endif 277 IF (ierr .NE. NF_NOERR) THEN 200 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 201 IF (ierr /= NF_NOERR) THEN 278 202 PRINT*, 'Pb de lecture pour les sources dms conc 7' 279 203 CALL exit(1) 280 204 ENDIF 281 205 c 282 ELSEIF (flag_dms .EQ.10) THEN206 ELSEIF (flag_dms==10) THEN 283 207 c 284 208 ierr = NF_INQ_VARID (nid, "DMSC8", nvarid) 285 cnhl #ifdef NC_DOUBLE 286 ierr = NF_GET_VARA_DOUBLE (nid, nvarid, debut,epais,lmt_dmsconc) 287 cnhl #else 288 cnhl ierr = NF_GET_VARA_REAL (nid, nvarid, debut, epais, lmt_dmsconc) 289 cnhl #endif 290 IF (ierr .NE. NF_NOERR) THEN 209 ierr = nf90_get_var(nid, nvarid, lmt_dmsconc, debut, epais) 210 IF (ierr /= NF_NOERR) THEN 291 211 PRINT*, 'Pb de lecture pour les sources dms conc 8' 292 212 CALL exit(1) … … 302 222 ierr = NF_CLOSE(nid) 303 223 c 304 IF (flag_dms .LE.2) THEN224 IF (flag_dms<=2) THEN 305 225 DO i=1, klon 306 226 lmt_dmsconc(i)=0.0 -
LMDZ6/trunk/libf/phylmd/Dust/read_dust.F
r4593 r5073 46 46 start(3)=step 47 47 c 48 #ifdef NC_DOUBLE49 48 ! status=NF_GET_VARA_DOUBLE(ncid1,varid1,start,count,dust_nc) 50 status=NF_GET_VARA_DOUBLE(ncid1,varid1,start,count,dust_nc_glo) 51 #else 52 ! status=NF_GET_VARA_REAL(ncid1,varid1,start,count,dust_nc) 53 status=NF_GET_VARA_REAL(ncid1,varid1,start,count,dust_nc_glo) 54 #endif 49 status=nf90_get_var(ncid1,varid1,dust_nc_glo,start,count) 55 50 c 56 51 ! call correctbid(iim,jjp1,dust_nc) -
LMDZ6/trunk/libf/phylmd/Dust/read_surface.F90
r4593 r5073 65 65 ! print *,'stat,i',status,i,outcycle,aux4s 66 66 ! print *,'ifclause',status.NE. NF_NOERR ,outcycle == .false. 67 IF ((.not.(status .NE.NF_NOERR) ).and.( .not. outcycle )) THEN67 IF ((.not.(status/= NF_NOERR) ).and.( .not. outcycle )) THEN 68 68 outcycle=.true. 69 69 latstr=aux4s … … 75 75 varid=NCVID(ncid,latstr,rcode) 76 76 77 #ifdef NC_DOUBLE 78 status=NF_GET_VARA_DOUBLE(ncid,varid,startj,endj,lats_glo) 79 #else 80 status=NF_GET_VARA_REAL(ncid,varid,startj,endj,lats_glo) 81 #endif 77 status=nf90_get_var(ncid,varid,lats_glo,startj,endj) 82 78 ! print *,latstr,varid,status,jjp1,rcode 83 79 ! IF (status .NE. NF_NOERR) print*,'NOOOOOOO' … … 113 109 ! Lecture 114 110 ! ----------------------- 115 #ifdef NC_DOUBLE 116 status=NF_GET_VARA_DOUBLE(ncid,varid,start,count,tmp_dyn_glo) 117 #else 118 status=NF_GET_VARA_REAL(ncid,varid,start,count,tmp_dyn_glo) 119 #endif 111 status=nf90_get_var(ncid,varid,tmp_dyn_glo,start,count) 120 112 121 113 ! call dump2d(iip1,jjp1,tmp_dyn,'tmp_dyn ') -
LMDZ6/trunk/libf/phylmd/Dust/read_vent.F
r4593 r5073 51 51 c 52 52 start(3)=step 53 c 54 #ifdef NC_DOUBLE 55 ! status=NF_GET_VARA_DOUBLE(ncidu1,varidu1,start,count,u10m_nc) 56 status=NF_GET_VARA_DOUBLE(ncidu1,varidu1,start,count,u10m_nc_glo) 57 #else 58 ! status=NF_GET_VARA_REAL(ncidu1,varidu1,start,count,u10m_nc) 59 status=NF_GET_VARA_REAL(ncidu1,varidu1,start,count,u10m_nc_glo) 60 #endif 61 ! print *,status 62 c 63 #ifdef NC_DOUBLE 64 ! status=NF_GET_VARA_DOUBLE(ncidv1,varidv1,start,count,v10m_nc) 65 status=NF_GET_VARA_DOUBLE(ncidv1,varidv1,start,count,v10m_nc_glo) 66 #else 67 ! status=NF_GET_VARA_REAL(ncidv1,varidv1,start,count,v10m_nc) 68 status=NF_GET_VARA_REAL(ncidv1,varidv1,start,count,v10m_nc_glo) 69 #endif 70 c 53 54 status=nf90_get_var(ncidu1,varidu1,u10m_nc_glo,start,count) 55 56 status=nf90_get_var(ncidv1,varidv1,v10m_nc_glo,start,count) 57 71 58 72 59 ! print *,'beforebidcor u10m_nc', u10m_nc(1,jjp1) … … 131 118 do l=1,nl 132 119 do i=2,iim-1 133 if(abs(x(i,l)) .gt.1.e10) then120 if(abs(x(i,l))>1.e10) then 134 121 zz=0.5*(x(i-1,l)+x(i+1,l)) 135 122 c print*,'correction ',i,l,x(i,l),zz
Note: See TracChangeset
for help on using the changeset viewer.