Changeset 3672 for trunk/LMDZ.PLUTO/libf/phypluto/dyn1d
- Timestamp:
- Mar 6, 2025, 11:25:14 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/dyn1d/rcm1d.F
r3643 r3672 34 34 use mod_interface_dyn_phys, only: init_interface_dyn_phys 35 35 use inifis_mod, only: inifis 36 use phys_state_var_mod, only: phys_state_var_init 36 use phys_state_var_mod, only: phys_state_var_init, tsurf, tsoil 37 37 use physiq_mod, only: physiq 38 38 implicit none … … 84 84 REAL play(llm) ! Pressure at the middle of the layers (Pa) 85 85 REAL plev(llm+1) ! intermediate pressure levels (pa) 86 REAL psurf ,tsurf(1)86 REAL psurf 87 87 REAL u(llm),v(llm) ! zonal, meridional wind 88 88 REAL gru,grv ! prescribed "geostrophic" background wind … … 90 90 REAL,ALLOCATABLE :: q(:,:) ! tracer mixing ratio (e.g. kg/kg) 91 91 REAL,ALLOCATABLE :: qsurf(:) ! tracer surface budget (e.g. kg.m-2) 92 REAL,ALLOCATABLE :: tsoil(:) ! subsurface soil temperature (K)93 92 ! REAL n2ice ! n2ice layer (kg.m-2) !not used anymore 94 93 integer :: i_n2=0 ! tracer index of n2 ice … … 577 576 578 577 nsoil=nsoilmx 579 allocate(tsoil(nsoilmx))580 !! those are defined in comsoil_h.F90581 IF (.not.ALLOCATED(layer)) ALLOCATE(layer(nsoilmx))582 IF (.not.ALLOCATED(mlayer)) ALLOCATE(mlayer(0:nsoilmx-1))583 IF (.not.ALLOCATED(inertiedat)) ALLOCATE(inertiedat(1,nsoilmx))584 578 585 579 ! At this point, both getin() and getin_p() functions have been used, … … 866 860 OPEN(14,file='proftsoil',status='old',form='formatted',err=101) 867 861 DO isoil=1,nsoil 868 READ (14,*) tsoil( isoil)862 READ (14,*) tsoil(1,isoil) 869 863 inertiedat(1,isoil)=inertiedat(1,1) ! soil thermal inertia 870 864 ENDDO … … 874 868 CLOSE(14) 875 869 876 else 870 else 877 871 DO isoil=1,nsoil 878 872 inertiedat(1,isoil)=inertiedat(1,1) ! soil thermal inertia 879 tsoil( isoil)=tsurf(1) ! soil temperature873 tsoil(1,isoil)=tsurf(1) ! soil temperature 880 874 ENDDO 881 875 endif … … 1065 1059 endif 1066 1060 ! save haze profile 1067 if (haze.and.lecthaze.eq.1) then 1061 if (haze.and.lecthaze.eq.1) then 1068 1062 OPEN(16,file='profhaze.out',form='formatted') 1069 1063 DO iq=1,nq
Note: See TracChangeset
for help on using the changeset viewer.