Changeset 2979


Ignore:
Timestamp:
Jun 9, 2023, 3:06:52 PM (20 months ago)
Author:
abierjon
Message:

Mars GCM:
Adapt simu_MCS.F90 so that it also recognizes new dust opacity names from aeroptical (since r2817 : "opa_dust" instead of "opadust")
(retrocompatible with old names as well)

AB

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r2976 r2979  
    40654065Also updated "deftank/field_def_physics_mars.xml" to keep up with recently added
    40664066variables
     4067
     4068== 09/06/2023 == AB
     4069Adapt simu_MCS.F90 so that it also recognizes new dust opacity names from aeroptical (since r2817 : "opa_dust" instead of "opadust")
     4070(retrocompatible with old names as well)
  • trunk/LMDZ.MARS/util/simu_MCS.F90

    r2558 r2979  
    15731573    status=nf90_inq_varid(outfid,trim(out_dztauname),out_dztauid)
    15741574    if (status.ne.nf90_noerr) then
    1575       ! if no "d/ndust" in outfile, look for "d/nopadust"
    1576       out_dztauname = out_dztauname(1:1)//"opadust"
     1575      ! if no "d/ndust" in outfile, look for "d/nopa_dust"
     1576      out_dztauname = out_dztauname(1:1)//"opa_dust"
    15771577      status=nf90_inq_varid(outfid,trim(out_dztauname),out_dztauid)
    15781578      if (status.ne.nf90_noerr) then
    1579         tau_ratio_ok = .false.
    1580         write(*,*)"No dust opacity in the outfile, we'll pass the computation of the CDOD ratio"
     1579        ! if no "d/ndust" nor d/nopa_dust" in outfile, look for "d/nopadust" (old variable name from aeroptical, before r2817)
     1580        out_dztauname = out_dztauname(1:1)//"opadust"
     1581        status=nf90_inq_varid(outfid,trim(out_dztauname),out_dztauid)
     1582        if (status.ne.nf90_noerr) then
     1583          tau_ratio_ok = .false.
     1584          write(*,*)"No dust opacity in the outfile, we skip the computation of the CDOD ratio"
     1585        endif
    15811586      endif
    15821587    endif
     
    15881593    if (status.ne.nf90_noerr) then
    15891594      tau_ratio_ok = .false.
    1590       write(*,*)"No temperature in the outfile, we'll pass the computation of the CDOD ratio"
     1595      write(*,*)"No temperature in the obsfile, we skip the computation of the CDOD ratio"
    15911596    endif
    15921597  endif
Note: See TracChangeset for help on using the changeset viewer.