Ignore:
Timestamp:
Jan 20, 2025, 7:05:11 PM (3 days ago)
Author:
jbclement
Message:

PEM:
The initialization of constants between dynamics and physics was messed up which led to uninitialized variables.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3584 r3589  
    8484    use mod_phys_lmdz_para, only: is_parallel, is_sequential, is_mpi_root, is_omp_root, is_master
    8585    use planete_h,          only: aphelie, periheli, year_day, peri_day, obliquit, iniorbit
    86     use comcstfi_h,         only: pi, rad, g, mugaz, r
     86    use comcstfi_h,         only: mugaz
    8787    use surfini_mod,        only: surfini
    88     use comconst_mod,       only: kappa, cpp
     88    use comconst_mod,       only: pi, rad, g, r, cpp, kappa
    8989#else
    9090    use tracer_h,           only: noms, igcm_h2o_ice, igcm_co2 ! Tracer names
     
    405405    call gr_dyn_fi(1,iip1,jjp1,ngridmx,ps_start_dyn,ps_start)
    406406
    407     call iniconst !new
    408     call inigeom
     407    call iniconst ! Initialization of dynamical constants (comconst_mod)
     408    call inigeom ! Initialization of geometry
    409409
    410410    allocate(ap(nlayer + 1))
     
    417417    status = nf90_close(ncid)
    418418
     419    ! Initialization of physics constants (comcstfi_h)
    419420    call iniphysiq(iim,jjm,llm,(jjm - 1)*iim + 2,comm_lmdz,daysec,day_ini,dtphys/nsplit_phys,rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp,iflag_phys)
    420421#else
     
    512513    if (noms(nnq) == "co2") igcm_co2 = nnq
    513514enddo
    514 r = 8.314511*1000./mugaz
    515515
    516516!------------------------
Note: See TracChangeset for help on using the changeset viewer.