Changeset 4034 for LMDZ6


Ignore:
Timestamp:
Nov 30, 2021, 7:36:27 PM (3 years ago)
Author:
lguez
Message:

Bug fix: define fields written to startphy

When compiled in debug mode, CE0L wrote NaNs? in startphy for variables
awake_dens, cv_gen, delta_tsurf, beta_aridity, ratqs_inter
and reading this startphy with gcm crashed in procedure
phyetat0_get, when computing min and max.

Location:
LMDZ6/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk

  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r3989 r4034  
    9393  USE conf_phys_m, ONLY: conf_phys
    9494  USE init_ssrf_m, ONLY: start_init_subsurf
     95  USE phys_state_var_mod, ONLY: beta_aridity, delta_tsurf, awake_dens, cv_gen, &
     96       ratqs_inter
    9597  !use ioipsl_getincom
    9698  IMPLICIT NONE
     
    127129  LOGICAL :: filtre_oro=.false.
    128130
     131  INCLUDE "compbl.h"
     132  INCLUDE "thermcell.h"
     133 
    129134  deg2rad= pi/180.0
    130135  iml=assert_eq(SIZE(masque,1),SIZE(phis,1),TRIM(modname)//" iml")
     
    230235  wake_delta_pbl_TKE(:,:,:)=0
    231236  wake_dens(:)=0
     237  awake_dens = 0.
     238  cv_gen = 0.
    232239  ale_bl = 0.
    233240  ale_bl_trig =0.
     
    272279  CALL fonte_neige_init(run_off_lic_0)
    273280  CALL pbl_surface_init( fder, snsrf, qsurf, tsoil )
     281
     282  IF (iflag_pbl>1 .AND. iflag_wake>=1  .AND. iflag_pbl_split >=1) then
     283     delta_tsurf = 0.
     284     beta_aridity = 0.
     285  end IF
     286
     287  ratqs_inter = 0.002
    274288  CALL phyredem( "startphy.nc" )
    275289
Note: See TracChangeset for help on using the changeset viewer.