Changeset 2425 for trunk


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

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2417 r2425  
    31863186- 2D fields "dust_rad_adjust_prev" and "dust_rad_adjust_next" required to
    31873187  compute coefficient "dust_rad_adjust" need to be stored in (re)startfi files
     3188
     3189==02/11/2020 == EM
     3190Adaptation for when using dust injection and/or dustscaling_mode==2. The
     3191dust scenarios are then meant to just hold one value per sol deemed to
     3192be valid for a given local time (t_scenario_sol in dust_param_mod). Thus
     3193to avoid unwanted temporal interpolation in read_dust_scenario, the time
     3194axis there should simply contain integers.
  • 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.