Changeset 2438 for trunk


Ignore:
Timestamp:
Dec 16, 2020, 6:08:49 PM (4 years ago)
Author:
abierjon
Message:

Mars GCM:
Fix a typo made in r2434 in localtime.F90, that replaced the long_name attribute
of variables by "Time"

AB

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2437 r2438  
    32433243- improvedclouds_mod.F: update of the nucleation equation with its analytical resolution
    32443244- writediagmicrofi.F: makes it possible to get outputs from the microphysics (call example in watercloud_mod.F)
     3245
     3246== 16/12/2020 == AB
     3247Fix a typo made in r2434 in localtime.F90, that replaced the long_name attribute
     3248of variables by "Time"
  • trunk/LMDZ.MARS/util/localtime.F90

    r2434 r2438  
    607607      units=" "
    608608      long_name=" "
    609       ierr=nf_get_att_text(nid,timevar,"long_name",long_name)
     609      ierr=nf_get_att_text(nid,varid,"long_name",long_name)
    610610      if (ierr.ne.nf_noerr) then
    611611      ! if no attribute "long_name", try "title"
    612         ierr=nf_get_att_text(nid,timevar,"title",long_name)
     612        ierr=nf_get_att_text(nid,varid,"title",long_name)
    613613      endif
    614614      ierr=nf_get_att_text(nid,varid,"units",units)
Note: See TracChangeset for help on using the changeset viewer.