Ignore:
Timestamp:
Oct 24, 2023, 12:13:53 PM (9 months ago)
Author:
oboucher
Message:

moving the calculation of wfbilo wfrain and wfsnow inside phys_output_write_mod so that it uses the timestep values of rain and snow instead of the values from the previous timestep as it was the case in pbl_surface. Thus there is exact mass balance in the output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/phys_local_var_mod.F90

    r4703 r4737  
    455455      REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: proba_notrig, random_notrig
    456456!$OMP THREADPRIVATE(proba_notrig, random_notrig)
    457       REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: fsolsw, wfbils, wfbilo
    458 !$OMP THREADPRIVATE(fsolsw, wfbils, wfbilo)
    459       REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: wfevap, wfrain, wfsnow
    460 !$OMP THREADPRIVATE(wfevap,wfrain,wfsnow)
     457      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: fsolsw, wfbils
     458!$OMP THREADPRIVATE(fsolsw, wfbils)
     459      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: wfevap
     460!$OMP THREADPRIVATE(wfevap)
    461461      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:)  :: t2m, fluxlat, fsollw,evap_pot
    462462!$OMP THREADPRIVATE(t2m, fluxlat, fsollw,evap_pot)
     
    990990      ALLOCATE(t2m(klon, nbsrf), fluxlat(klon, nbsrf))
    991991      ALLOCATE(fsollw(klon, nbsrf))
    992       ALLOCATE(fsolsw(klon, nbsrf), wfbils(klon, nbsrf), wfbilo(klon, nbsrf))
    993       ALLOCATE(wfevap(klon, nbsrf), wfrain(klon,nbsrf), wfsnow(klon, nbsrf))
     992      ALLOCATE(fsolsw(klon, nbsrf), wfbils(klon, nbsrf))
     993      ALLOCATE(wfevap(klon, nbsrf))
    994994      ALLOCATE(evap_pot(klon, nbsrf))
    995995! FC
     
    13611361      DEALLOCATE(t2m, fluxlat)
    13621362      DEALLOCATE(fsollw, evap_pot)
    1363       DEALLOCATE(fsolsw, wfbils, wfbilo)
    1364       DEALLOCATE(wfevap,wfrain,wfsnow)
     1363      DEALLOCATE(fsolsw, wfbils)
     1364      DEALLOCATE(wfevap)
    13651365
    13661366      DEALLOCATE(pmflxr, pmflxs)
Note: See TracChangeset for help on using the changeset viewer.