Changeset 2994
- Timestamp:
- Jul 13, 2023, 3:37:43 PM (17 months ago)
- 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 54 54 use aeropacity_mod, only: iddist, topdustref 55 55 USE mod_phys_lmdz_transfert_para, ONLY: bcast 56 USE paleoclimate_mod,ONLY: paleoclimate 56 57 IMPLICIT NONE 57 58 include "callkeys.h" … … 346 347 call getin_p("rayleigh",rayleigh) 347 348 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 348 356 349 357 -
trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90
r2919 r2994 27 27 use comsoil_h, only: flux_geo 28 28 USE comslope_mod, ONLY: nslope, major_slope 29 USE paleoclimate_mod, ONLY: paleoclimate, lag_h2o_ice, lag_co2_ice 29 30 implicit none 30 31 … … 752 753 endif !startphy_file 753 754 754 ! 755 756 if (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 777 else 778 write(*,*) 'paleo found? nostart',found 779 780 lag_h2o_ice(:,:) = -1. 781 lag_co2_ice(:,:) = -1. 782 endif !paleoclimate 783 755 784 ! close file: 756 785 ! -
trunk/LMDZ.MARS/libf/phymars/phyredem.F90
r2942 r2994 25 25 use time_phylmdz_mod, only: daysec 26 26 use comslope_mod, ONLY: nslope 27 USE paleoclimate_mod, ONLY: paleoclimate, lag_h2o_ice, lag_co2_ice 27 28 implicit none 28 29 … … 46 47 integer :: ig 47 48 real :: watercaptag_tmp(ngrid) 48 49 49 50 ! Create physics start file 50 51 call open_restartphy(filename) … … 153 154 call put_field("subslope_dist","under mesh slope distribution",subslope_dist) 154 155 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 155 161 ! Close file 156 162 call close_restartphy -
trunk/LMDZ.MARS/libf/phymars/phys_state_var_init_mod.F90
r2909 r2994 62 62 end_dust_rad_adjust_mod 63 63 use comslope_mod, ONLY: nslope,end_comslope_h,ini_comslope_h 64 use paleoclimate_mod, ONLY: end_paleoclimate_h,ini_paleoclimate_h 64 65 use netcdf 65 66 USE mod_phys_lmdz_para, ONLY: is_master,bcast … … 186 187 call ini_comslope_h(ngrid,nslope) 187 188 189 ! allocate arrays in "paleoclimate_mod" 190 call end_paleoclimate_h 191 call ini_paleoclimate_h(ngrid,nslope) 192 188 193 END SUBROUTINE phys_state_var_init 189 194
Note: See TracChangeset
for help on using the changeset viewer.