Ignore:
Timestamp:
Sep 21, 2021, 1:55:55 PM (3 years ago)
Author:
emillour
Message:

Mars GCM:
Improve wstats: the callstats flag is now embedded within wstats and checked
internaly so no need to have some "if (callstats)" conditions around calls
to wstats anymore.
In addition: wstats now looks for an (optional) stats.def file in the
directory where the GCM is run to know which variable should be included
in the stats.nc file. The stats.def ASCII file should simply contain
one variable name per line, in the same way as the diagfi.def file for
diagfi outputs. If there is no stats.def file then all variables sent to
wstats will be in the stats.nc file (which matches the behaviour prior to
this improvement).
EM

Location:
trunk/LMDZ.MARS/libf/aeronomars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/calchim_mod.F90

    r2559 r2563  
    3131      use photolysis_mod, only: init_photolysis, nphot
    3232      use iono_h, only: temp_elect
    33       use wstats_mod, only: callstats, wstats
     33      use wstats_mod, only: wstats
    3434
    3535      implicit none
     
    953953!            endif
    954954           
    955             if (callstats) then
    956955               call wstats(ngrid,'jo3','j o3->o1d',       &
    957956                           's-1',3,jo3_3d(1,1))
     
    962961               call wstats(ngrid,'mmean','mean molecular mass',       &
    963962                           'g.mole-1',3,mmean(1,1))
    964             endif
    965963         end if ! of if (ngrid.gt.1)
    966964      end if ! of if (output)
  • trunk/LMDZ.MARS/libf/aeronomars/surfacearea.F

    r2559 r2563  
    99      use conc_mod, only: rnew
    1010      use comcstfi_h, only: pi
    11       use wstats_mod, only: callstats, wstats
     11      use wstats_mod, only: wstats
    1212      implicit none
    1313
     
    114114! write diagnostics in micron2/cm3
    115115     
    116       if (callstats) then
    117         call wstats(ngrid,"surfdust", "Dust surface area",
     116      call wstats(ngrid,"surfdust", "Dust surface area",
    118117     $            "micron2 cm-3",3,surfdust*1.e6)
    119         call wstats(ngrid,"surfice", "Ice cloud surface area",
     118      call wstats(ngrid,"surfice", "Ice cloud surface area",
    120119     $            "micron2 cm-3",3,surfice*1.e6)
    121       endif
     120
    122121      call writediagfi(ngrid,"surfdust", "Dust surface area",
    123122     $            "micron2 cm-3",3,surfdust*1.e6)
     
    125124     $            "micron2 cm-3",3,surfice*1.e6)
    126125
    127       return
    128126      end
Note: See TracChangeset for help on using the changeset viewer.