Changeset 1130 for trunk/LMDZ.MARS/libf/phymars/eofdump_mod.F90
- Timestamp:
- Dec 20, 2013, 4:04:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/eofdump_mod.F90
r1047 r1130 27 27 integer,intent(in) :: ngrid ! total number of physics grid points 28 28 integer,intent(in) :: nlayer ! number of atmospheric layers 29 real *4u(ngrid,nlayer)30 real *4v(ngrid,nlayer)31 real *4t(ngrid,nlayer)32 real *4rho(ngrid,nlayer)33 real *4ps(ngrid)29 real,intent(in) :: u(ngrid,nlayer) 30 real,intent(in) :: v(ngrid,nlayer) 31 real,intent(in) :: t(ngrid,nlayer) 32 real,intent(in) :: rho(ngrid,nlayer) 33 real,intent(in) :: ps(ngrid) 34 34 integer,save :: count=0 35 35 integer i,j,l, ig … … 56 56 do j=1+eofskip/2,jjm+1,eofskip 57 57 ig = 1+ (j-2)*iim +i 58 #ifdef NC_DOUBLE 59 write(uedata) (real(u(ig,l)),l=1,nlayer) 60 write(uedata) (real(v(ig,l)),l=1,nlayer) 61 write(uedata) (real(t(ig,l)),l=1,nlayer) 62 write(uedata) (real(rho(ig,l)),l=1,nlayer) 63 write(uedata) real(ps(ig)) 64 #else 58 65 write(uedata) (u(ig,l),l=1,nlayer) 59 66 write(uedata) (v(ig,l),l=1,nlayer) … … 61 68 write(uedata) (rho(ig,l),l=1,nlayer) 62 69 write(uedata) ps(ig) 70 #endif 63 71 enddo 64 72 enddo … … 112 120 if(j.eq.1) stop 'Problem in ineofdump.F' 113 121 if(j.eq.jjm+1) stop 'Problem in ineofdump.F' 122 #ifdef NC_DOUBLE 123 write(uehead,*) real(long(ig)*180./pi),real(lati(ig)*180./pi) 124 #else 114 125 write(uehead,*) long(ig)*180./pi, lati(ig)*180./pi 126 #endif 115 127 ! write(*,*) 'eof grid j=',j,' lat= ', lati(ig)*180./pi 116 128 enddo 117 129 enddo 118 130 131 #ifdef NC_DOUBLE 132 write(uehead,*) real(aps) 133 write(uehead,*) real(bps) 134 #else 119 135 write(uehead,*) aps 120 136 write(uehead,*) bps 137 #endif 121 138 close(uehead) 122 139 !
Note: See TracChangeset
for help on using the changeset viewer.