Changeset 2541


Ignore:
Timestamp:
Jul 1, 2021, 8:36:13 AM (4 years ago)
Author:
emillour
Message:

Mars GCM:
Add possibility of additional tests (NaNs?, but also of unrealistic values) of
fields at the begining of physics (i.e. coming from the dynamics) and at the
end of the physics integration. These are respectively triggered by seting
flags "check_physics_inputs" and "check_physics_outputs" to .true.
EM

Location:
trunk/LMDZ.MARS
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2540 r2541  
    34083408== 29/06/2021 == AB
    34093409Make simu_MCS.F90 compatible with DYNAMICO lon-lat output files, with a check on the latitude array order when doing the interpolation
     3410
     3411== 01/07/2021 == EM
     3412Add possibility of additional tests (NaNs, but also of unrealistic values) of
     3413fields at the begining of physics (i.e. coming from the dynamics) and at the
     3414end of the physics integration. These are respectively triggered by seting
     3415flags "check_physics_inputs" and "check_physics_outputs" to .true.
  • trunk/LMDZ.MARS/deftank/callphys.def.co2clouds

    r1651 r2541  
    33#Run with or without tracer transport ?
    44tracer=.true.
     5
     6# check input fields when entering physics?
     7check_physics_inputs=.false.
     8# check fields at the end of physics?
     9check_physics_outputs=.false.
    510
    611#Directory where external input files are:
     
    1823#Save statistics in file "stats.nc" ?
    1924callstats =.true.
    20 
    21 #Save EOF profiles in file "profiles" for Climate Database?
    22 calleofdump = .false.
    2325
    2426## Dust scenario. Used if the dust is prescribed (i.e. if tracer=F or active=F)
  • trunk/LMDZ.MARS/deftank/callphys.def.hdo

    r2312 r2541  
    1616callstats =.true.
    1717
    18 #Save EOF profiles in file "profiles" for Climate Database?
    19 calleofdump = .false.
     18# check input fields when entering physics?
     19check_physics_inputs=.false.
     20# check fields at the end of physics?
     21check_physics_outputs=.false.
    2022
    2123#Directory where external input files are:
  • trunk/LMDZ.MARS/deftank/callphys.def.watercycle

    r1949 r2541  
    1616callstats =.true.
    1717
    18 #Save EOF profiles in file "profiles" for Climate Database?
    19 calleofdump = .false.
     18# check input fields when entering physics?
     19check_physics_inputs=.false.
     20# check fields at the end of physics?
     21check_physics_outputs=.false.
    2022
    2123#Directory where external input files are:
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2538 r2541  
    7474      use compute_dtau_mod, only: compute_dtau
    7575      use nonoro_gwd_ran_mod, only: nonoro_gwd_ran
     76      use check_fields_mod, only: check_physics_fields
    7677#ifdef MESOSCALE
    7778      use comsoil_h, only: mlayer,layer
     
    9697#endif
    9798      USE mod_grid_phy_lmdz, ONLY: grid_type, unstructured
     99      use ioipsl_getin_p_mod, only: getin_p
    98100
    99101      IMPLICIT NONE
     
    507509      integer iloop
    508510
    509 !      LOGICAL startphy_file
     511      ! flags to trigger extra sanity checks
     512      logical,save :: check_physics_inputs=.false.
     513      logical,save :: check_physics_outputs=.false.
    510514
    511515c=======================================================================
     
    519523
    520524      IF (firstcall) THEN
     525
     526         call getin_p("check_physics_inputs",check_physics_inputs)
     527         call getin_p("check_physics_outputs",check_physics_outputs)
    521528
    522529c        variables set to 0
     
    735742      ENDIF        !  (end of "if firstcall")
    736743
     744      if (check_physics_inputs) then
     745        ! Check the validity of input fields coming from the dynamics
     746        call check_physics_fields("begin physiq:",pt,pu,pv,pplev)
     747      endif
     748
    737749c ---------------------------------------------------
    738750c 1.2   Initializations done at every physical timestep:
     
    38883900#endif
    38893901
     3902      if (check_physics_outputs) then
     3903        ! Check the validity of updated fields at the end of the physics step
     3904        call check_physics_fields("end of physiq:",zt,zu,zv,zplev)
     3905      endif
    38903906
    38913907      icount=icount+1
Note: See TracChangeset for help on using the changeset viewer.