Changeset 2994


Ignore:
Timestamp:
Jul 13, 2023, 3:37:43 PM (17 months ago)
Author:
llange
Message:

MARS PCM
Introduce paleoclimate modul which will contains all the stuff used for
the paleoclimates studies. For now, just the lag layer thicknesses (for
preliminary tests with the 1D model).
LL

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r2966 r2994  
    5454      use aeropacity_mod, only: iddist, topdustref
    5555      USE mod_phys_lmdz_transfert_para, ONLY: bcast
     56      USE paleoclimate_mod,ONLY: paleoclimate
    5657      IMPLICIT NONE
    5758      include "callkeys.h"
     
    346347         call getin_p("rayleigh",rayleigh)
    347348         write(*,*)" rayleigh = ",rayleigh
     349
     350! PALEOCLIMATE
     351
     352         write(*,*)"Is it paleoclimate run?"
     353         paleoclimate=.false. ! default value
     354         call getin_p("paleoclimate",paleoclimate)
     355         write(*,*)" paleoclimate = ",paleoclimate
    348356
    349357
  • trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90

    r2919 r2994  
    2727  use comsoil_h, only: flux_geo
    2828  USE comslope_mod, ONLY: nslope, major_slope
     29  USE paleoclimate_mod, ONLY: paleoclimate, lag_h2o_ice, lag_co2_ice
    2930  implicit none
    3031 
     
    752753endif !startphy_file
    753754
    754 !
     755
     756if (paleoclimate) then
     757  if (startphy_file) then
     758   call get_field("lag_h2o_ice",lag_h2o_ice,found,indextime)
     759   write(*,*) 'paleo found start?',found
     760   
     761   if (.not.found) then
     762     write(*,*) "phyetat0: Failed loading <lag_h2o_ice> : ", &
     763                          "<lag_h2o_ice> is set as -1 (no subsurface ice)"
     764     lag_h2o_ice(:,:) = -1.
     765   endif
     766
     767   call get_field("lag_co2_ice",lag_co2_ice,found,indextime)
     768   if (.not.found) then
     769     write(*,*) "phyetat0: Failed loading <lag_co2_ice> : ", &
     770                          "<lag_co2_ice> is set as -1 (no subsurface ice)"
     771     lag_co2_ice(:,:) = -1.
     772   endif
     773  else
     774     lag_h2o_ice(:,:) = -1.
     775     lag_co2_ice(:,:) = -1.
     776  endif !startphy_file
     777else
     778   write(*,*) 'paleo found? nostart',found
     779   
     780  lag_h2o_ice(:,:) = -1.
     781  lag_co2_ice(:,:) = -1.
     782endif !paleoclimate
     783
    755784! close file:
    756785!
  • trunk/LMDZ.MARS/libf/phymars/phyredem.F90

    r2942 r2994  
    2525  use time_phylmdz_mod, only: daysec
    2626  use comslope_mod, ONLY: nslope
     27  USE paleoclimate_mod, ONLY: paleoclimate, lag_h2o_ice, lag_co2_ice 
    2728  implicit none
    2829 
     
    4647  integer :: ig
    4748  real :: watercaptag_tmp(ngrid)
    48  
     49
    4950  ! Create physics start file
    5051  call open_restartphy(filename)
     
    153154  call put_field("subslope_dist","under mesh slope distribution",subslope_dist)
    154155
     156  ! Paleoclimate outputs
     157  if(paleoclimate) then
     158    call put_field("lag_h2o_ice","Depth of the H2O lags",lag_h2o_ice)
     159    call put_field("lag_co2_ice","Depth of the CO2 lags",lag_co2_ice)
     160  endif
    155161  ! Close file
    156162  call close_restartphy
  • trunk/LMDZ.MARS/libf/phymars/phys_state_var_init_mod.F90

    r2909 r2994  
    6262                                     end_dust_rad_adjust_mod
    6363      use comslope_mod, ONLY: nslope,end_comslope_h,ini_comslope_h
     64      use paleoclimate_mod, ONLY: end_paleoclimate_h,ini_paleoclimate_h
    6465      use netcdf
    6566      USE mod_phys_lmdz_para, ONLY: is_master,bcast
     
    186187      call ini_comslope_h(ngrid,nslope)
    187188
     189      ! allocate arrays in "paleoclimate_mod"
     190      call end_paleoclimate_h
     191      call ini_paleoclimate_h(ngrid,nslope)
     192
    188193      END SUBROUTINE phys_state_var_init
    189194
Note: See TracChangeset for help on using the changeset viewer.