Changeset 3250 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Mar 4, 2024, 11:03:35 AM (10 months ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r3249 r3250 678 678 do isoil = 1,nsoil 679 679 if ((ice_depth >= layer(isoil)) .and. (ice_depth < layer(isoil + 1))) then 680 iref = isoil + 1680 iref = isoil 681 681 exit 682 682 endif … … 685 685 inertiedat(1,:iref - 1) = inertiedat(1,1) 686 686 ! We compute the transition in layer(iref) 687 inertiedat(1,iref) = sqrt((layer(iref ) - layer(iref - 1))/(((ice_depth - layer(iref - 1))/inertiedat(1,1)**2) + ((layer(iref) - ice_depth)/inertieice**2)))687 inertiedat(1,iref) = sqrt((layer(iref+1) - layer(iref))/(((ice_depth - layer(iref))/inertiedat(1,1)**2) + ((layer(iref+1) - ice_depth)/inertieice**2))) 688 688 ! Finally, we compute the underlying ice: 689 689 inertiedat(1,iref + 1:) = inertieice -
trunk/LMDZ.MARS/libf/phymars/waterice_tifeedback_mod.F90
r3230 r3250 107 107 DO ik=1,nsoil-1 108 108 IF ((icedepth.ge.layer(ik)).and.icedepth.lt.layer(ik+1)) THEN 109 iref=ik +1109 iref=ik 110 110 EXIT 111 111 ENDIF … … 116 116 ENDDO 117 117 ! Transition (based on the equations of thermal conduction): 118 newtherm_i(ig,iref,islope)=sqrt( (layer(iref )-layer(iref-1))/(((icedepth-layer(iref-1))/inert_h2o_ice**2) + &119 ((layer(iref )-icedepth)/inertiedat(ig,ik)**2) ) )118 newtherm_i(ig,iref,islope)=sqrt( (layer(iref+1)-layer(iref))/(((icedepth-layer(iref))/inert_h2o_ice**2) + & 119 ((layer(iref+1)-icedepth)/inertiedat(ig,ik)**2) ) ) 120 120 ! Underlying regolith: 121 121 DO ik=iref+1,nsoil
Note: See TracChangeset
for help on using the changeset viewer.