Changeset 1047 for trunk/LMDZ.MARS/libf/phymars/iniwritesoil.F90
- Timestamp:
- Sep 23, 2013, 9:56:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/iniwritesoil.F90
r38 r1047 1 subroutine iniwritesoil(nid )1 subroutine iniwritesoil(nid,ngrid) 2 2 3 3 ! initialization routine for 'writediagoil'. Here we create/define … … 5 5 ! (time-independent) parameters. 6 6 7 use comsoil_h, only: mlayer, inertiedat, nsoilmx 8 7 9 implicit none 8 10 9 11 #include"dimensions.h" 10 #include"dimphys.h"12 !#include"dimphys.h" 11 13 #include"paramet.h" 12 14 #include"comcstfi.h" 13 15 #include"comgeom.h" 14 #include"comsoil.h"16 !#include"comsoil.h" 15 17 #include"netcdf.inc" 16 18 17 19 ! Arguments: 20 integer,intent(in) :: ngrid 18 21 integer,intent(in) :: nid ! NetCDF output file ID 19 22 … … 154 157 ierr=NF_PUT_VAR_REAL(nid,varid,mlayer) 155 158 #endif 156 ! Note mlayer(0:nsoilmx-1) known from comsoil .h159 ! Note mlayer(0:nsoilmx-1) known from comsoil_h 157 160 if (ierr.ne.NF_NOERR) then 158 161 write(*,*)"iniwritesoil: Error, could not write depth variable" … … 240 243 241 244 ! Recast data along 'dynamics' grid 242 ! Note: inertiedat is known from comsoil .h245 ! Note: inertiedat is known from comsoil_h 243 246 244 247 do l=1,nsoilmx … … 246 249 do i=1,iip1 247 250 data3(i,1,l)=inertiedat(1,l) 248 data3(i,jjp1,l)=inertiedat(ngrid mx,l)251 data3(i,jjp1,l)=inertiedat(ngrid,l) 249 252 enddo 250 253 ! rest of the grid
Note: See TracChangeset
for help on using the changeset viewer.