[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | subroutine read_pstoke(irec, |
---|
| 7 | . zrec,zklono,zklevo,airefi,phisfi, |
---|
| 8 | . t,mfu,mfd,en_u,de_u,en_d,de_d,coefh, |
---|
[541] | 9 | . fm_therm,en_therm, |
---|
[524] | 10 | . frac_impa,frac_nucl,pyu1,pyv1,ftsol,psrf) |
---|
| 11 | |
---|
[541] | 12 | C****************************************************************************** |
---|
| 13 | C Frederic HOURDIN, Abderrahmane IDELKADI |
---|
| 14 | C Lecture des parametres physique stockes online necessaires pour |
---|
| 15 | C recalculer offline le transport de traceurs sur une grille 2x plus fine que |
---|
| 16 | C celle online |
---|
| 17 | C A FAIRE : une seule routine au lieu de 2 (lectflux, redecoupe)! |
---|
| 18 | C****************************************************************************** |
---|
[524] | 19 | |
---|
[1146] | 20 | use netcdf |
---|
[940] | 21 | USE dimphy |
---|
[524] | 22 | IMPLICIT NONE |
---|
| 23 | |
---|
| 24 | #include "netcdf.inc" |
---|
| 25 | #include "dimensions.h" |
---|
| 26 | #include "paramet.h" |
---|
| 27 | #include "comconst.h" |
---|
| 28 | #include "comgeom.h" |
---|
| 29 | #include "temps.h" |
---|
| 30 | #include "ener.h" |
---|
| 31 | #include "logic.h" |
---|
| 32 | #include "description.h" |
---|
| 33 | #include "serre.h" |
---|
| 34 | #include "indicesol.h" |
---|
| 35 | #include "control.h" |
---|
[940] | 36 | cccc#include "dimphy.h" |
---|
[524] | 37 | |
---|
[541] | 38 | integer klono,klevo,imo,jmo |
---|
[524] | 39 | parameter (imo=iim/2,jmo=(jjm+1)/2) |
---|
| 40 | parameter(klono=(jmo-1)*imo+2,klevo=llm) |
---|
[541] | 41 | REAL phisfi(klono) |
---|
| 42 | REAL phisfi2(imo,jmo+1),airefi2(imo,jmo+1) |
---|
[524] | 43 | |
---|
[541] | 44 | REAL mfu(klono,klevo), mfd(klono,klevo) |
---|
| 45 | REAL en_u(klono,klevo), de_u(klono,klevo) |
---|
| 46 | REAL en_d(klono,klevo), de_d(klono,klevo) |
---|
| 47 | REAL coefh(klono,klevo) |
---|
| 48 | REAL fm_therm(klono,klevo),en_therm(klono,klevo) |
---|
[524] | 49 | |
---|
[541] | 50 | REAL mfu2(imo,jmo+1,klevo), mfd2(imo,jmo+1,klevo) |
---|
| 51 | REAL en_u2(imo,jmo+1,klevo), de_u2(imo,jmo+1,klevo) |
---|
| 52 | REAL en_d2(imo,jmo+1,klevo), de_d2(imo,jmo+1,klevo) |
---|
| 53 | REAL coefh2(imo,jmo+1,klevo) |
---|
| 54 | REAL fm_therm2(imo,jmo+1,klevo) |
---|
| 55 | REAL en_therm2(imo,jmo+1,klevo) |
---|
[524] | 56 | |
---|
[541] | 57 | REAL pl(klevo) |
---|
[524] | 58 | integer irec |
---|
[541] | 59 | integer xid,yid,zid,tid |
---|
[524] | 60 | real zrec,zklono,zklevo,zim,zjm |
---|
[541] | 61 | integer ncrec,ncklono,ncklevo,ncim,ncjm |
---|
[524] | 62 | |
---|
[541] | 63 | real airefi(klono) |
---|
| 64 | character*20 namedim |
---|
[524] | 65 | |
---|
| 66 | c !! attention !! |
---|
| 67 | c attention il y a aussi le pb de def klono |
---|
| 68 | c dim de phis?? |
---|
| 69 | |
---|
| 70 | |
---|
[541] | 71 | REAL frac_impa(klono,klevo), frac_nucl(klono,klevo) |
---|
| 72 | REAL frac_impa2(imo,jmo+1,klevo), |
---|
[524] | 73 | . frac_nucl2(imo,jmo+1,klevo) |
---|
[541] | 74 | REAL pyu1(klono), pyv1(klono) |
---|
| 75 | REAL pyu12(imo,jmo+1), pyv12(imo,jmo+1) |
---|
| 76 | REAL ftsol(klono,nbsrf) |
---|
| 77 | REAL psrf(klono,nbsrf) |
---|
| 78 | REAL ftsol1(klono),ftsol2(klono),ftsol3(klono),ftsol4(klono) |
---|
| 79 | REAL psrf1(klono),psrf2(klono),psrf3(klono),psrf4(klono) |
---|
| 80 | REAL ftsol12(imo,jmo+1),ftsol22(imo,jmo+1), |
---|
[524] | 81 | . ftsol32(imo,jmo+1), |
---|
| 82 | . ftsol42(imo,jmo+1) |
---|
[541] | 83 | REAL psrf12(imo,jmo+1),psrf22(imo,jmo+1),psrf32(imo,jmo+1), |
---|
[524] | 84 | . psrf42(imo,jmo+1) |
---|
[541] | 85 | REAL t(klono,klevo) |
---|
| 86 | REAL t2(imo,jmo+1,klevo) |
---|
[524] | 87 | integer ncidp |
---|
| 88 | save ncidp |
---|
| 89 | integer varidt |
---|
| 90 | integer varidmfu, varidmfd, varidps, varidenu, variddeu |
---|
| 91 | integer varidend,varidded,varidch,varidfi,varidfn |
---|
[541] | 92 | integer varidfmth,varidenth |
---|
[524] | 93 | integer varidyu1,varidyv1,varidpl,varidai,varididvt |
---|
| 94 | integer varidfts1,varidfts2,varidfts3,varidfts4 |
---|
| 95 | integer varidpsr1,varidpsr2,varidpsr3,varidpsr4 |
---|
| 96 | save varidmfu, varidmfd, varidps, varidenu, variddeu |
---|
| 97 | save varidend,varidded,varidch,varidfi,varidfn |
---|
[541] | 98 | save varidfmth,varidenth |
---|
[524] | 99 | save varidyu1,varidyv1,varidpl,varidai,varididvt |
---|
| 100 | save varidfts1,varidfts2,varidfts3,varidfts4 |
---|
| 101 | save varidpsr1,varidpsr2,varidpsr3,varidpsr4 |
---|
| 102 | save varidt |
---|
| 103 | |
---|
| 104 | integer l, i |
---|
| 105 | integer start(4),count(4),status |
---|
| 106 | real rcode |
---|
| 107 | logical first |
---|
| 108 | save first |
---|
| 109 | data first/.true./ |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | c --------------------------------------------- |
---|
| 114 | c Initialisation de la lecture des fichiers |
---|
| 115 | c --------------------------------------------- |
---|
| 116 | |
---|
| 117 | if (irec .eq. 0) then |
---|
| 118 | |
---|
[1146] | 119 | rcode=nf90_open('phystoke.nc',nf90_nowrite,ncidp) |
---|
[524] | 120 | |
---|
[1146] | 121 | rcode = nf90_inq_varid(ncidp, 'phis', varidps) |
---|
[524] | 122 | print*,'ncidp,varidps',ncidp,varidps |
---|
| 123 | |
---|
[1146] | 124 | rcode = nf90_inq_varid(ncidp, 'sig_s', varidpl) |
---|
[524] | 125 | print*,'ncidp,varidpl',ncidp,varidpl |
---|
| 126 | |
---|
[1146] | 127 | rcode = nf90_inq_varid(ncidp, 'aire', varidai) |
---|
[524] | 128 | print*,'ncidp,varidai',ncidp,varidai |
---|
| 129 | |
---|
[541] | 130 | c A FAIRE: Es-il necessaire de stocke t? |
---|
[1146] | 131 | rcode = nf90_inq_varid(ncidp, 't', varidt) |
---|
[524] | 132 | print*,'ncidp,varidt',ncidp,varidt |
---|
[541] | 133 | |
---|
[1146] | 134 | rcode = nf90_inq_varid(ncidp, 'mfu', varidmfu) |
---|
[524] | 135 | print*,'ncidp,varidmfu',ncidp,varidmfu |
---|
| 136 | |
---|
[1146] | 137 | rcode = nf90_inq_varid(ncidp, 'mfd', varidmfd) |
---|
[524] | 138 | print*,'ncidp,varidmfd',ncidp,varidmfd |
---|
| 139 | |
---|
[1146] | 140 | rcode = nf90_inq_varid(ncidp, 'en_u', varidenu) |
---|
[524] | 141 | print*,'ncidp,varidenu',ncidp,varidenu |
---|
| 142 | |
---|
[1146] | 143 | rcode = nf90_inq_varid(ncidp, 'de_u', variddeu) |
---|
[524] | 144 | print*,'ncidp,variddeu',ncidp,variddeu |
---|
| 145 | |
---|
[1146] | 146 | rcode = nf90_inq_varid(ncidp, 'en_d', varidend) |
---|
[524] | 147 | print*,'ncidp,varidend',ncidp,varidend |
---|
| 148 | |
---|
[1146] | 149 | rcode = nf90_inq_varid(ncidp, 'de_d', varidded) |
---|
[524] | 150 | print*,'ncidp,varidded',ncidp,varidded |
---|
| 151 | |
---|
[1146] | 152 | rcode = nf90_inq_varid(ncidp, 'coefh', varidch) |
---|
[524] | 153 | print*,'ncidp,varidch',ncidp,varidch |
---|
| 154 | |
---|
[541] | 155 | c abder (pour thermiques) |
---|
[1146] | 156 | rcode = nf90_inq_varid(ncidp, 'fm_th', varidfmth) |
---|
[541] | 157 | print*,'ncidp,varidfmth',ncidp,varidfmth |
---|
| 158 | |
---|
[1146] | 159 | rcode = nf90_inq_varid(ncidp, 'en_th', varidenth) |
---|
[541] | 160 | print*,'ncidp,varidenth',ncidp,varidenth |
---|
| 161 | |
---|
[1146] | 162 | rcode = nf90_inq_varid(ncidp, 'frac_impa', varidfi) |
---|
[524] | 163 | print*,'ncidp,varidfi',ncidp,varidfi |
---|
| 164 | |
---|
[1146] | 165 | rcode = nf90_inq_varid(ncidp, 'frac_nucl', varidfn) |
---|
[524] | 166 | print*,'ncidp,varidfn',ncidp,varidfn |
---|
| 167 | |
---|
[1146] | 168 | rcode = nf90_inq_varid(ncidp, 'pyu1', varidyu1) |
---|
[524] | 169 | print*,'ncidp,varidyu1',ncidp,varidyu1 |
---|
| 170 | |
---|
[1146] | 171 | rcode = nf90_inq_varid(ncidp, 'pyv1', varidyv1) |
---|
[524] | 172 | print*,'ncidp,varidyv1',ncidp,varidyv1 |
---|
| 173 | |
---|
[1146] | 174 | rcode = nf90_inq_varid(ncidp, 'ftsol1', varidfts1) |
---|
[524] | 175 | print*,'ncidp,varidfts1',ncidp,varidfts1 |
---|
| 176 | |
---|
[1146] | 177 | rcode = nf90_inq_varid(ncidp, 'ftsol2', varidfts2) |
---|
[524] | 178 | print*,'ncidp,varidfts2',ncidp,varidfts2 |
---|
| 179 | |
---|
[1146] | 180 | rcode = nf90_inq_varid(ncidp, 'ftsol3', varidfts3) |
---|
[524] | 181 | print*,'ncidp,varidfts3',ncidp,varidfts3 |
---|
| 182 | |
---|
[1146] | 183 | rcode = nf90_inq_varid(ncidp, 'ftsol4', varidfts4) |
---|
[524] | 184 | print*,'ncidp,varidfts4',ncidp,varidfts4 |
---|
| 185 | |
---|
[1146] | 186 | rcode = nf90_inq_varid(ncidp, 'psrf1', varidpsr1) |
---|
[524] | 187 | print*,'ncidp,varidpsr1',ncidp,varidpsr1 |
---|
| 188 | |
---|
[1146] | 189 | rcode = nf90_inq_varid(ncidp, 'psrf2', varidpsr2) |
---|
[524] | 190 | print*,'ncidp,varidpsr2',ncidp,varidpsr2 |
---|
| 191 | |
---|
[1146] | 192 | rcode = nf90_inq_varid(ncidp, 'psrf3', varidpsr3) |
---|
[524] | 193 | print*,'ncidp,varidpsr3',ncidp,varidpsr3 |
---|
| 194 | |
---|
[1146] | 195 | rcode = nf90_inq_varid(ncidp, 'psrf4', varidpsr4) |
---|
[524] | 196 | print*,'ncidp,varidpsr4',ncidp,varidpsr4 |
---|
| 197 | |
---|
| 198 | c ID pour les dimensions |
---|
| 199 | |
---|
| 200 | status = nf_inq_dimid(ncidp,'y',yid) |
---|
| 201 | status = nf_inq_dimid(ncidp,'x',xid) |
---|
| 202 | status = nf_inq_dimid(ncidp,'sig_s',zid) |
---|
| 203 | status = nf_inq_dimid(ncidp,'time_counter',tid) |
---|
| 204 | |
---|
| 205 | c lecture des dimensions |
---|
| 206 | |
---|
| 207 | status = nf_inq_dim(ncidp,yid,namedim,ncjm) |
---|
| 208 | status = nf_inq_dim(ncidp,xid,namedim,ncim) |
---|
| 209 | status = nf_inq_dim(ncidp,zid,namedim,ncklevo) |
---|
| 210 | status = nf_inq_dim(ncidp,tid,namedim,ncrec) |
---|
| 211 | |
---|
| 212 | zrec=ncrec |
---|
| 213 | zklevo=ncklevo |
---|
| 214 | zim=ncim |
---|
| 215 | zjm=ncjm |
---|
| 216 | |
---|
| 217 | zklono=zim*(zjm-2)+2 |
---|
| 218 | |
---|
| 219 | write(*,*) 'read_pstoke : zrec = ', zrec |
---|
| 220 | write(*,*) 'read_pstoke : zklevo = ', zklevo |
---|
| 221 | write(*,*) 'read_pstoke : zim = ', zim |
---|
| 222 | write(*,*) 'read_pstoke : zjm = ', zjm |
---|
| 223 | write(*,*) 'read_pstoke : zklono = ', zklono |
---|
| 224 | |
---|
| 225 | c niveaux de pression |
---|
[541] | 226 | #ifdef NC_DOUBLE |
---|
| 227 | status=NF_GET_VARA_DOUBLE(ncidp,varidpl,1,zklevo,pl) |
---|
| 228 | #else |
---|
| 229 | status=NF_GET_VARA_REAL(ncidp,varidpl,1,zklevo,pl) |
---|
| 230 | #endif |
---|
[524] | 231 | |
---|
| 232 | c lecture de aire et phis |
---|
| 233 | |
---|
| 234 | start(1)=1 |
---|
| 235 | start(2)=1 |
---|
| 236 | start(3)=1 |
---|
| 237 | start(4)=0 |
---|
| 238 | |
---|
| 239 | count(1)=zim |
---|
| 240 | count(2)=zjm |
---|
| 241 | count(3)=1 |
---|
| 242 | count(4)=0 |
---|
| 243 | |
---|
| 244 | c phis |
---|
[541] | 245 | #ifdef NC_DOUBLE |
---|
| 246 | status=NF_GET_VARA_DOUBLE(ncidp,varidps,start,count,phisfi2) |
---|
| 247 | #else |
---|
[524] | 248 | status=NF_GET_VARA_REAL(ncidp,varidps,start,count,phisfi2) |
---|
[541] | 249 | #endif |
---|
[524] | 250 | call gr_ecrit_fi(1,klono,imo,jmo+1,phisfi2,phisfi) |
---|
| 251 | |
---|
| 252 | c aire |
---|
[541] | 253 | #ifdef NC_DOUBLE |
---|
| 254 | status=NF_GET_VARA_DOUBLE(ncidp,varidai,start,count,airefi2) |
---|
| 255 | #else |
---|
[524] | 256 | status=NF_GET_VARA_REAL(ncidp,varidai,start,count,airefi2) |
---|
[541] | 257 | #endif |
---|
[524] | 258 | call gr_ecrit_fi(1,klono,imo,jmo+1,airefi2,airefi) |
---|
| 259 | else |
---|
| 260 | |
---|
| 261 | print*,'ok1' |
---|
| 262 | |
---|
| 263 | c --------------------- |
---|
| 264 | c lecture des champs |
---|
| 265 | c --------------------- |
---|
| 266 | |
---|
| 267 | print*,'WARNING!!! Il n y a pas de test de coherence' |
---|
| 268 | print*,'sur le nombre de niveaux verticaux dans le fichier nc' |
---|
| 269 | |
---|
| 270 | start(1)=1 |
---|
| 271 | start(2)=1 |
---|
| 272 | start(3)=1 |
---|
| 273 | start(4)=irec |
---|
| 274 | |
---|
| 275 | count(1)=zim |
---|
| 276 | count(2)=zjm |
---|
| 277 | count(3)=zklevo |
---|
| 278 | count(4)=1 |
---|
| 279 | |
---|
[541] | 280 | |
---|
| 281 | C *** Lessivage****************************************************** |
---|
[524] | 282 | c frac_impa |
---|
[541] | 283 | #ifdef NC_DOUBLE |
---|
| 284 | status=NF_GET_VARA_DOUBLE(ncidp,varidfi,start,count,frac_impa2) |
---|
| 285 | #else |
---|
[524] | 286 | status=NF_GET_VARA_REAL(ncidp,varidfi,start,count,frac_impa2) |
---|
[541] | 287 | #endif |
---|
[524] | 288 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,frac_impa2,frac_impa) |
---|
| 289 | |
---|
| 290 | c frac_nucl |
---|
[541] | 291 | #ifdef NC_DOUBLE |
---|
| 292 | status=NF_GET_VARA_DOUBLE(ncidp,varidfn,start,count,frac_nucl2) |
---|
| 293 | #else |
---|
[524] | 294 | status=NF_GET_VARA_REAL(ncidp,varidfn,start,count,frac_nucl2) |
---|
[541] | 295 | #endif |
---|
[524] | 296 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,frac_nucl2,frac_nucl) |
---|
| 297 | |
---|
[541] | 298 | C*** Temperature ****************************************************** |
---|
[524] | 299 | c abder t |
---|
[541] | 300 | #ifdef NC_DOUBLE |
---|
| 301 | status=NF_GET_VARA_DOUBLE(ncidp,varidt,start,count,t2) |
---|
| 302 | #else |
---|
[524] | 303 | status=NF_GET_VARA_REAL(ncidp,varidt,start,count,t2) |
---|
[541] | 304 | #endif |
---|
[524] | 305 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,t2,t) |
---|
| 306 | |
---|
[541] | 307 | C*** Flux pour le calcul de la convection TIEDTK *********************** |
---|
[524] | 308 | c mfu |
---|
[541] | 309 | #ifdef NC_DOUBLE |
---|
| 310 | status=NF_GET_VARA_DOUBLE(ncidp,varidmfu,start,count,mfu2) |
---|
| 311 | #else |
---|
[524] | 312 | status=NF_GET_VARA_REAL(ncidp,varidmfu,start,count,mfu2) |
---|
[541] | 313 | #endif |
---|
[524] | 314 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,mfu2,mfu) |
---|
| 315 | |
---|
| 316 | c mfd |
---|
[541] | 317 | #ifdef NC_DOUBLE |
---|
| 318 | status=NF_GET_VARA_DOUBLE(ncidp,varidmfd,start,count,mfd2) |
---|
| 319 | #else |
---|
[524] | 320 | status=NF_GET_VARA_REAL(ncidp,varidmfd,start,count,mfd2) |
---|
[541] | 321 | #endif |
---|
[524] | 322 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,mfd2,mfd) |
---|
| 323 | |
---|
| 324 | c en_u |
---|
[541] | 325 | #ifdef NC_DOUBLE |
---|
| 326 | status=NF_GET_VARA_DOUBLE(ncidp,varidenu,start,count,en_u2) |
---|
| 327 | #else |
---|
[524] | 328 | status=NF_GET_VARA_REAL(ncidp,varidenu,start,count,en_u2) |
---|
[541] | 329 | #endif |
---|
[524] | 330 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,en_u2,en_u) |
---|
| 331 | |
---|
| 332 | c de_u |
---|
[541] | 333 | #ifdef NC_DOUBLE |
---|
| 334 | status=NF_GET_VARA_DOUBLE(ncidp,variddeu,start,count,de_u2) |
---|
| 335 | #else |
---|
[524] | 336 | status=NF_GET_VARA_REAL(ncidp,variddeu,start,count,de_u2) |
---|
[541] | 337 | #endif |
---|
[524] | 338 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,de_u2,de_u) |
---|
| 339 | |
---|
| 340 | c en_d |
---|
[541] | 341 | #ifdef NC_DOUBLE |
---|
| 342 | status=NF_GET_VARA_DOUBLE(ncidp,varidend,start,count,en_d2) |
---|
| 343 | #else |
---|
[524] | 344 | status=NF_GET_VARA_REAL(ncidp,varidend,start,count,en_d2) |
---|
[541] | 345 | #endif |
---|
[524] | 346 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,en_d2,en_d) |
---|
| 347 | |
---|
| 348 | c de_d |
---|
[541] | 349 | #ifdef NC_DOUBLE |
---|
| 350 | status=NF_GET_VARA_DOUBLE(ncidp,varidded,start,count,de_d2) |
---|
| 351 | #else |
---|
[524] | 352 | status=NF_GET_VARA_REAL(ncidp,varidded,start,count,de_d2) |
---|
[541] | 353 | #endif |
---|
[524] | 354 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,de_d2,de_d) |
---|
| 355 | |
---|
[541] | 356 | C **** Coeffecient du mellange turbulent********************************** |
---|
[524] | 357 | c coefh |
---|
[541] | 358 | #ifdef NC_DOUBLE |
---|
| 359 | status=NF_GET_VARA_DOUBLE(ncidp,varidch,start,count,coefh2) |
---|
| 360 | #else |
---|
[524] | 361 | status=NF_GET_VARA_REAL(ncidp,varidch,start,count,coefh2) |
---|
[541] | 362 | #endif |
---|
[524] | 363 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,coefh2,coefh) |
---|
| 364 | |
---|
[541] | 365 | C*** Flux ascendant et entrant pour les Thermiques************************ |
---|
| 366 | cabder thermiques |
---|
| 367 | #ifdef NC_DOUBLE |
---|
| 368 | status=NF_GET_VARA_DOUBLE(ncidp,varidfmth,start,count,fm_therm2) |
---|
| 369 | #else |
---|
| 370 | status=NF_GET_VARA_REAL(ncidp,varidfmth,start,count,fm_therm2) |
---|
| 371 | #endif |
---|
| 372 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,fm_therm2,fm_therm) |
---|
| 373 | |
---|
| 374 | #ifdef NC_DOUBLE |
---|
| 375 | status=NF_GET_VARA_DOUBLE(ncidp,varidenth,start,count,en_therm2) |
---|
| 376 | #else |
---|
| 377 | status=NF_GET_VARA_REAL(ncidp,varidenth,start,count,en_therm2) |
---|
| 378 | #endif |
---|
| 379 | call gr_ecrit_fi(klevo,klono,imo,jmo+1,en_therm2,en_therm) |
---|
| 380 | |
---|
| 381 | C*** Vitesses aux sol ****************************************************** |
---|
[524] | 382 | start(3)=irec |
---|
| 383 | start(4)=0 |
---|
| 384 | count(3)=1 |
---|
| 385 | count(4)=0 |
---|
| 386 | c pyu1 |
---|
[541] | 387 | #ifdef NC_DOUBLE |
---|
| 388 | status=NF_GET_VARA_DOUBLE(ncidp,varidyu1,start,count,pyu12) |
---|
| 389 | #else |
---|
[524] | 390 | status=NF_GET_VARA_REAL(ncidp,varidyu1,start,count,pyu12) |
---|
[541] | 391 | #endif |
---|
[524] | 392 | call gr_ecrit_fi(1,klono,imo,jmo+1,pyu12,pyu1) |
---|
| 393 | |
---|
| 394 | c pyv1 |
---|
[541] | 395 | #ifdef NC_DOUBLE |
---|
| 396 | status=NF_GET_VARA_DOUBLE(ncidp,varidyv1,start,count,pyv12) |
---|
| 397 | #else |
---|
[524] | 398 | status=NF_GET_VARA_REAL(ncidp,varidyv1,start,count,pyv12) |
---|
[541] | 399 | #endif |
---|
[524] | 400 | call gr_ecrit_fi(1,klono,imo,jmo+1,pyv12,pyv1) |
---|
| 401 | |
---|
[541] | 402 | C*** Temperature au sol ******************************************** |
---|
[524] | 403 | c ftsol1 |
---|
[541] | 404 | #ifdef NC_DOUBLE |
---|
| 405 | status=NF_GET_VARA_DOUBLE(ncidp,varidfts1,start,count,ftsol12) |
---|
| 406 | #else |
---|
[524] | 407 | status=NF_GET_VARA_REAL(ncidp,varidfts1,start,count,ftsol12) |
---|
[541] | 408 | #endif |
---|
[524] | 409 | call gr_ecrit_fi(1,klono,imo,jmo+1,ftsol12,ftsol1) |
---|
| 410 | |
---|
| 411 | c ftsol2 |
---|
[541] | 412 | #ifdef NC_DOUBLE |
---|
| 413 | status=NF_GET_VARA_DOUBLE(ncidp,varidfts2,start,count,ftsol22) |
---|
| 414 | #else |
---|
[524] | 415 | status=NF_GET_VARA_REAL(ncidp,varidfts2,start,count,ftsol22) |
---|
[541] | 416 | #endif |
---|
[524] | 417 | call gr_ecrit_fi(1,klono,imo,jmo+1,ftsol22,ftsol2) |
---|
| 418 | |
---|
| 419 | c ftsol3 |
---|
[541] | 420 | #ifdef NC_DOUBLE |
---|
| 421 | status=NF_GET_VARA_DOUBLE(ncidp,varidfts3,start,count,ftsol32) |
---|
| 422 | #else |
---|
[524] | 423 | status=NF_GET_VARA_REAL(ncidp,varidfts3,start,count,ftsol32) |
---|
[541] | 424 | #endif |
---|
[524] | 425 | call gr_ecrit_fi(1,klono,imo,jmo+1,ftsol32,ftsol3) |
---|
| 426 | |
---|
| 427 | c ftsol4 |
---|
[541] | 428 | #ifdef NC_DOUBLE |
---|
| 429 | status=NF_GET_VARA_DOUBLE(ncidp,varidfts4,start,count,ftsol42) |
---|
| 430 | #else |
---|
[524] | 431 | status=NF_GET_VARA_REAL(ncidp,varidfts4,start,count,ftsol42) |
---|
[541] | 432 | #endif |
---|
[524] | 433 | call gr_ecrit_fi(1,klono,imo,jmo+1,ftsol42,ftsol4) |
---|
| 434 | |
---|
[541] | 435 | C*** Nature du sol ************************************************** |
---|
[524] | 436 | c psrf1 |
---|
[541] | 437 | #ifdef NC_DOUBLE |
---|
| 438 | status=NF_GET_VARA_DOUBLE(ncidp,varidpsr1,start,count,psrf12) |
---|
| 439 | #else |
---|
[524] | 440 | status=NF_GET_VARA_REAL(ncidp,varidpsr1,start,count,psrf12) |
---|
[541] | 441 | #endif |
---|
[524] | 442 | call gr_ecrit_fi(1,klono,imo,jmo+1,psrf12,psrf1) |
---|
| 443 | |
---|
| 444 | c psrf2 |
---|
[541] | 445 | #ifdef NC_DOUBLE |
---|
| 446 | status=NF_GET_VARA_DOUBLE(ncidp,varidpsr2,start,count,psrf22) |
---|
| 447 | #else |
---|
[524] | 448 | status=NF_GET_VARA_REAL(ncidp,varidpsr2,start,count,psrf22) |
---|
[541] | 449 | #endif |
---|
[524] | 450 | call gr_ecrit_fi(1,klono,imo,jmo+1,psrf22,psrf2) |
---|
| 451 | |
---|
| 452 | c psrf3 |
---|
[541] | 453 | #ifdef NC_DOUBLE |
---|
| 454 | status=NF_GET_VARA_DOUBLE(ncidp,varidpsr3,start,count,psrf32) |
---|
| 455 | #else |
---|
[524] | 456 | status=NF_GET_VARA_REAL(ncidp,varidpsr3,start,count,psrf32) |
---|
[541] | 457 | #endif |
---|
[524] | 458 | call gr_ecrit_fi(1,klono,imo,jmo+1,psrf32,psrf3) |
---|
| 459 | |
---|
| 460 | c psrf4 |
---|
[541] | 461 | #ifdef NC_DOUBLE |
---|
| 462 | status=NF_GET_VARA_DOUBLE(ncidp,varidpsr4,start,count,psrf42) |
---|
| 463 | #else |
---|
[524] | 464 | status=NF_GET_VARA_REAL(ncidp,varidpsr4,start,count,psrf42) |
---|
[541] | 465 | #endif |
---|
[524] | 466 | call gr_ecrit_fi(1,klono,imo,jmo+1,psrf42,psrf4) |
---|
| 467 | |
---|
| 468 | do i = 1,klono |
---|
| 469 | |
---|
| 470 | psrf(i,1) = psrf1(i) |
---|
| 471 | psrf(i,2) = psrf2(i) |
---|
| 472 | psrf(i,3) = psrf3(i) |
---|
| 473 | psrf(i,4) = psrf4(i) |
---|
| 474 | |
---|
| 475 | ftsol(i,1) = ftsol1(i) |
---|
| 476 | ftsol(i,2) = ftsol2(i) |
---|
| 477 | ftsol(i,3) = ftsol3(i) |
---|
| 478 | ftsol(i,4) = ftsol4(i) |
---|
| 479 | |
---|
| 480 | enddo |
---|
| 481 | |
---|
| 482 | endif |
---|
| 483 | |
---|
| 484 | return |
---|
| 485 | |
---|
| 486 | end |
---|
| 487 | |
---|