Changeset 2425 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Nov 2, 2020, 4:56:49 PM (4 years ago)
Author:
emillour
Message:

Mars GCM:
Adaptation for when using dust injection and/or dustscaling_mode==2. The
dust scenarios are then meant to just hold one value per sol deemed to
be valid for a given local time (t_scenario_sol in dust_param_mod). Thus
to avoid unwanted temporal interpolation in read_dust_scenario, the time
axis there should simply contain integers.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/read_dust_scenario.F90

    r2415 r2425  
    66use geometry_mod, only: latitude, longitude ! in radians
    77use datafile_mod, only: datadir
    8 use dust_param_mod, only: odpref
     8use dust_param_mod, only: odpref, dustscaling_mode
     9use planete_h, only: year_day
    910implicit none
    1011
     
    158159   ENDIF
    159160
     161   ! Adapt time axis values if using dustinjection scheme and/or
     162   ! dustscaling_mode == 2
     163   IF ((dustinjection>0).or.(dustscaling_mode==2)) THEN
     164     ! Sanity check: we expect to have one map per sol
     165     if (timelen/=year_day) then
     166       write(*,*)"read_dust_scenario error: timelen=",timelen
     167       write(*,*)" whereas it was exepceted to be year_day=",year_day
     168       call abort_physic("read_dust_scenario","timelen/=year_day",1)
     169     endif
     170     ! fill time() with intergers from 0 to timelen-1
     171     write(*,*)"read_dust_scenario: adapting time axis to integer values"
     172     do iloop=1,timelen
     173       time(iloop)=iloop-1
     174     enddo
     175   ENDIF ! of IF ((dustinjection>0).or.(dustscaling_mode==2))
     176
    160177   ierr=nf90_inq_varid(nid,"latitude",nvarid)
    161178   ierr=nf90_get_var(nid,nvarid,lat)
Note: See TracChangeset for help on using the changeset viewer.