Changeset 4078 for trunk/LMDZ.PLUTO/libf
- Timestamp:
- Feb 18, 2026, 8:45:27 PM (12 days ago)
- Location:
- trunk/LMDZ.PLUTO/libf/phypluto
- Files:
-
- 3 edited
-
callkeys_mod.F90 (modified) (2 diffs)
-
inifis_mod.F90 (modified) (1 diff)
-
physiq_mod.F90 (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/callkeys_mod.F90
r3959 r4078 62 62 logical,save :: kbo 63 63 !$OMP THREADPRIVATE(kbo) 64 logical,save :: cooling 65 !$OMP THREADPRIVATE(cooling )64 logical,save :: cooling,fixed_temp_prof 65 !$OMP THREADPRIVATE(cooling,fixed_temp_prof) 66 66 logical,save :: source_haze,hazeconservch4,haze_ch4proffix 67 67 !$OMP THREADPRIVATE(source_haze,hazeconservch4,haze_ch4proffix) … … 112 112 real,save :: tau_prechaze 113 113 !$OMP THREADPRIVATE(tau_prechaze) 114 real,save :: tau_temp 115 !$OMP THREADPRIVATE(tau_temp) 114 116 real,save :: paleoyears 115 117 !$OMP THREADPRIVATE(paleoyears) -
trunk/LMDZ.PLUTO/libf/phypluto/inifis_mod.F90
r4027 r4078 311 311 312 312 if (is_master) write(*,*) trim(rname)//& 313 ": call simple fixed temperature profile" 314 fixed_temp_prof=.false. ! default value 315 call getin_p("fixed_temp_prof",fixed_temp_prof) 316 if (is_master) write(*,*) trim(rname)//": fixed_temp_prof = ",fixed_temp_prof 317 tau_temp=1. ! default value 318 call getin_p("tau_temp",tau_temp) 319 320 if (is_master) write(*,*) trim(rname)//& 313 321 ": prohibit calculations outside corrk T grid?" 314 322 strictboundcorrk=.true. ! default value -
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
r4073 r4078 68 68 tracer, UseTurbDiff, & 69 69 global1d, szangle, & 70 callmufi, callmuclouds, evol1d 70 callmufi, callmuclouds, evol1d,fixed_temp_prof, & 71 tau_temp 71 72 72 73 use check_fields_mod, only: check_physics_fields … … 121 122 ! II.2.a Option 1 : Call correlated-k radiative transfer scheme. 122 123 ! II.2.b Option 2 : Atmosphere has no radiative effect. 124 ! II.2.c Option 3 : Fixed temperature profile (using "Newtonian restoring force"-type equation). 123 125 ! 124 126 ! II.3 Gravity wave and subgrid scale topography drag : … … 502 504 real alpha,lay1 ! coefficients for building layers 503 505 integer iloop 506 507 ! for fixed temperature profile (fixed_temp_prof option) 508 real,save,allocatable :: tmean(:,:) 509 !!read altitudes and radius 510 integer ifine,Nfine 511 parameter(Nfine=1751) 512 character(len=100) :: file_path 513 real,save :: levdat(Nfine),tempdat(Nfine) 504 514 505 515 ! flags to trigger extra sanity checks … … 1029 1039 1030 1040 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1031 ! II. a Call correlated-k radiative transfer scheme1041 ! II.2.a Call correlated-k radiative transfer scheme 1032 1042 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1033 1043 if(kastprof)then … … 1099 1109 else 1100 1110 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1101 ! II. b Atmosphere has no radiative effect1111 ! II.2.b Atmosphere has no radiative effect 1102 1112 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1103 1113 fluxtop_dn(1:ngrid) = fract(1:ngrid)*mu0(1:ngrid)*Fat1AU/dist_star**2 … … 1119 1129 1120 1130 endif ! end of corrk 1131 1132 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1133 ! II.2.c Converging atm temperature toward a fixed profile with a characteristic timescale 1134 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1135 if (firstcall.and.fixed_temp_prof) then 1136 allocate(tmean(ngrid,nlayer)) 1137 file_path=trim(datadir)//'/gas_prop/tempNH.txt' 1138 open(323,file=file_path,form='formatted') 1139 do ifine=1,Nfine 1140 read(323,*) levdat(ifine), tempdat(ifine) 1141 enddo 1142 close(323) 1143 print*, 'Read temp file from ',file_path 1144 ! levs have been put in km 1145 DO ig=1,ngrid 1146 CALL interp_line(levdat,tempdat,Nfine,zzlay(ig,:)/1000.,tmean(ig,:),nlayer) 1147 enddo 1148 endif 1149 if (fixed_temp_prof) then 1150 DO ig=1,ngrid 1151 dtrad(ig,1:nlayer)=(tmean(ig,1:nlayer)-(pt(ig,1:nlayer)+ & 1152 (pdt(ig,1:nlayer)+dtrad(ig,1:nlayer))*ptimestep)) & 1153 *(1.-exp(-ptimestep/tau_temp))/ptimestep 1154 ENDDO 1155 endif 1121 1156 1122 1157 endif ! of if(mod(icount-1,iradia).eq.0)
Note: See TracChangeset
for help on using the changeset viewer.
