Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/ecumev6_flux.F90

    r5101 r5116  
    253253!----------------------- Modif Olive calcul de PRHOA ---------------------------
    254254
    255 !write(*,*) "PZ0SEA ",PZ0SEA
    256 !write(*,*) "PTA ",PTA
    257 !write(*,*) "PSST ",PSST
    258 !write(*,*) "PQA ",PQA
    259 !write(*,*) "PVMOD ",PVMOD
    260 !write(*,*) "PZREF ",PZREF
    261 !write(*,*) "PUREF ",PUREF
    262 !write(*,*) "PPS ",PPS
    263 !write(*,*) "PPA ",PPA
    264 !write(*,*) "OPRECIP ",OPRECIP
    265 !write(*,*) "PZ0HSEA ",PZ0HSEA
    266 !write(*,*) "PRAIN ",PRAIN
     255!WRITE(*,*) "PZ0SEA ",PZ0SEA
     256!WRITE(*,*) "PTA ",PTA
     257!WRITE(*,*) "PSST ",PSST
     258!WRITE(*,*) "PQA ",PQA
     259!WRITE(*,*) "PVMOD ",PVMOD
     260!WRITE(*,*) "PZREF ",PZREF
     261!WRITE(*,*) "PUREF ",PUREF
     262!WRITE(*,*) "PPS ",PPS
     263!WRITE(*,*) "PPA ",PPA
     264!WRITE(*,*) "OPRECIP ",OPRECIP
     265!WRITE(*,*) "PZ0HSEA ",PZ0HSEA
     266!WRITE(*,*) "PRAIN ",PRAIN
    267267
    268268
    269269PRHOA(:) = PPS(:) / (287.1 * PTA(:) * (1.+.61*PQA(:)))
    270 !write(*,*) "klon klon ",klon,PTA
    271 !write(*,*) "PRHOA ",SIZE(PRHOA),PRHOA
     270!WRITE(*,*) "klon klon ",klon,PTA
     271!WRITE(*,*) "PRHOA ",SIZE(PRHOA),PRHOA
    272272
    273273PREF = 100900.                    ! = 1000 hPa
     
    358358ZVMOD = MAX(PVMOD , 0.1 * MIN(10.,PUREF) )    !set a minimum value to wind
    359359
    360 write(*,*) "ZVMOD ",SIZE(ZVMOD)
     360WRITE(*,*) "ZVMOD ",SIZE(ZVMOD)
    361361
    362362!       2.0. Radiative fluxes - For warm layer & cool skin
     
    386386ZWORK2A    = XRD/XRV
    387387
    388 !write(*,*) "ZFOES ",ZFOES
    389 !write(*,*) "PPS ",PPS
    390 !write(*,*) "ZWORK1 ",ZWORK1
    391 !write(*,*) "XRD ",XRD
    392 !write(*,*) "XRV ",XRV
    393 !write(*,*) "PPA ",PPA
    394 !write(*,*) "ZWORK1A ",ZWORK1A
    395 
    396 write(*,*) "PQSAT : ",PQSAT
    397 write(*,*) "PQSATA : ",PQSATA
     388!WRITE(*,*) "ZFOES ",ZFOES
     389!WRITE(*,*) "PPS ",PPS
     390!WRITE(*,*) "ZWORK1 ",ZWORK1
     391!WRITE(*,*) "XRD ",XRD
     392!WRITE(*,*) "XRV ",XRV
     393!WRITE(*,*) "PPA ",PPA
     394!WRITE(*,*) "ZWORK1A ",ZWORK1A
     395
     396WRITE(*,*) "PQSAT : ",PQSAT
     397WRITE(*,*) "PQSATA : ",PQSATA
    398398
    399399!*       2.    COMPUTE SATURATION HUMIDITY
     
    410410ZDQ(:) = PQA(:)-PQSATA(:)
    411411
    412 write(*,*) "PQA ",PQA(:)
    413 write(*,*) "PQSAT",PQSAT(:)
    414 write(*,*) "ZDQ",ZDQ(:)
     412WRITE(*,*) "PQA ",PQA(:)
     413WRITE(*,*) "PQSAT",PQSAT(:)
     414WRITE(*,*) "ZDQ",ZDQ(:)
    415415
    416416!       2.3. Latent heat of vaporisation
     
    421421
    422422
    423 write(*,*) "ZLVA ",ZLVA
    424 write(*,*) "ZLVS ",ZLVS
     423WRITE(*,*) "ZLVA ",ZLVA
     424WRITE(*,*) "ZLVS ",ZLVS
    425425
    426426
     
    450450ZDDQ(:) = SIGN(MAX(ABS(ZDDQ(:)),10.0*ZDQSR0),ZDDQ(:))
    451451
    452 write(*,*) "ZDDU ",ZDDU
    453 write(*,*) "ZDDQ ",ZDDQ
    454 write(*,*) "ZDDT ",ZDDT
     452WRITE(*,*) "ZDDU ",ZDDU
     453WRITE(*,*) "ZDDQ ",ZDDQ
     454WRITE(*,*) "ZDDT ",ZDDT
    455455
    456456JCV (:) = -1
     
    624624  ZEF(JLON)  = -PRHOA(JLON)*ZLVS(JLON)*ZUSR(JLON)*ZQSR(JLON)
    625625
    626   write(*,*) "ZTAU = ",ZTAU(JLON)
    627   write(*,*) "SENS = ",ZHF(JLON)
    628   write(*,*) "LAT = ",ZEF(JLON)
     626  WRITE(*,*) "ZTAU = ",ZTAU(JLON)
     627  WRITE(*,*) "SENS = ",ZHF(JLON)
     628  WRITE(*,*) "LAT = ",ZEF(JLON)
    629629
    630630!       4.2. Exchange coefficients PCD, PCH, PCE
     
    634634  PCE(JLON) = (ZUSR(JLON)*ZQSR(JLON))/(ZDDU(JLON)*ZDDQ(JLON))
    635635
    636   write(*,*) "ZUSR = ",ZUSR(JLON)
    637   write(*,*) "ZTSR = ",ZTSR(JLON)
    638   write(*,*) "ZQSR = ",ZQSR(JLON)
     636  WRITE(*,*) "ZUSR = ",ZUSR(JLON)
     637  WRITE(*,*) "ZTSR = ",ZTSR(JLON)
     638  WRITE(*,*) "ZQSR = ",ZQSR(JLON)
    639639
    640640!       4.3. Stochastic perturbation of turbulent fluxes
     
    753753!ENDIF
    754754
    755 write(*,*) "JLON ",JLON
    756 write(*,*) "PTA ",klon,PTA
    757 write(*,*) "PCD ",SIZE(PCD),PCD
    758 write(*,*) "PCQ ",SIZE(PCE),PCE
    759 write(*,*) "PCH ",SIZE(PCH),PCH
     755WRITE(*,*) "JLON ",JLON
     756WRITE(*,*) "PTA ",klon,PTA
     757WRITE(*,*) "PCD ",SIZE(PCD),PCD
     758WRITE(*,*) "PCQ ",SIZE(PCE),PCE
     759WRITE(*,*) "PCH ",SIZE(PCH),PCH
    760760
    761761coeffs = [PCD,&
Note: See TracChangeset for help on using the changeset viewer.