Ignore:
Timestamp:
Nov 21, 2023, 8:25:02 AM (20 months ago)
Author:
emillour
Message:

Mars PCM:
Bug fix in phyetat0, igcm_co2_tmp was not initialed when paleoclimate==.false.
but used nonetheless. Added an if(paleoclimate) around computation of
perennial_co2ice() as it should only be computed in that context; also added
an if(paleoclimate) around writting perennial_co2ice() to restartfi.nc in
physdem1 for the same reason.
EM

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
2 edited

Legend:

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

    r3130 r3132  
    781781! Perennial CO2 ice
    782782perennial_co2ice(:,:) = 0.
    783 if (startphy_file) then
     783if (paleoclimate) then
     784  if (startphy_file) then
    784785    call get_field("perennial_co2ice",perennial_co2ice,found,indextime)
    785786    if (.not. found) then
     
    793794        endif
    794795    endif ! not found
    795 else
     796  else
    796797    if (abs(latitude(ngrid) - (-pi/2.)) < 1.e-5) then
    797798        do islope = 1,nslope
     
    800801        enddo
    801802    endif
    802 endif !startphy_file
     803  endif !startphy_file
     804endif ! of if (paleoclimate)
    803805
    804806! close file:
  • trunk/LMDZ.MARS/libf/phymars/phyredem.F90

    r3130 r3132  
    227227 
    228228  ! Perennial CO2 ice layer
    229   call put_field("perennial_co2ice","CO2 ice cover",perennial_co2ice,time)
     229  if(paleoclimate) then
     230    call put_field("perennial_co2ice","CO2 ice cover",perennial_co2ice,time)
     231  endif
    230232
    231233  ! Surface temperature
Note: See TracChangeset for help on using the changeset viewer.