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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.