Changeset 1528 for trunk/LMDZ.MARS/libf/phymars/eofdump_mod.F90
- Timestamp:
- Apr 2, 2016, 4:09:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/eofdump_mod.F90
r1524 r1528 1 1 module eofdump_mod 2 2 ! this module controls the production of data for EOFs 3 ! it won't work if run in parallel (but it's OK, we don't use it anymore...) 4 ! Mainly kept for reference. 3 5 implicit none 4 6 ! Dump profiles for EOFs every ieofs physics timesteps, … … 15 17 subroutine eofdump(ngrid,nlayer,u,v,t,rho,ps) 16 18 19 use mod_grid_phy_lmdz, only: nbp_lon, nbp_lat 17 20 implicit none 18 21 ! … … 21 24 ! Corrected small bug in sampling rate/count, EM 11/2007 22 25 ! 23 #include "dimensions.h"24 26 ! 25 27 … … 52 54 if (mod(count+1,ieofs).eq.0) then 53 55 ! write(*,*)'eofdump: dump --> ps(1)=',ps(1) 54 do i=1, iim,eofskip55 do j=1+eofskip/2, jjm+1,eofskip56 ig = 1+ (j-2)* iim+i56 do i=1,nbp_lon,eofskip 57 do j=1+eofskip/2,nbp_lat,eofskip 58 ig = 1+ (j-2)*nbp_lon +i 57 59 #ifdef NC_DOUBLE 58 60 write(uedata) (real(u(ig,l)),l=1,nlayer) … … 82 84 use time_phylmdz_mod, only: daysec, dtphys 83 85 USE comvert_mod, ONLY: aps,bps 86 use mod_grid_phy_lmdz, only: nbp_lon, nbp_lat 84 87 implicit none 85 88 ! 86 89 ! Initialise dumping of profiles for EOF calculations 87 90 ! 88 #include "dimensions.h"89 91 90 92 integer,intent(in) :: ngrid ! total number of physics grid points … … 96 98 97 99 if (firstcall) then 98 npgrid=ngrid+2*( iim-1)100 npgrid=ngrid+2*(nbp_lon-1) 99 101 firstcall=.false. 100 102 endif … … 111 113 open(uehead,file='profiles.hdr',form='formatted') 112 114 write(uehead,*) 0.E+0,0,0,ieofs,1,0 113 write(uehead,*) iim,npgrid/iim,npgrid,nlayer115 write(uehead,*) nbp_lon,npgrid/nbp_lon,npgrid,nlayer 114 116 115 do i=1, iim,eofskip116 do j=1+eofskip/2, jjm+1,eofskip117 ig = 1+ (j-2)* iim+i117 do i=1,nbp_lon,eofskip 118 do j=1+eofskip/2,nbp_lat,eofskip 119 ig = 1+ (j-2)*nbp_lon +i 118 120 if(j.eq.1) stop 'Problem in ineofdump.F' 119 if(j.eq. jjm+1) stop 'Problem in ineofdump.F'121 if(j.eq.nbp_lat) stop 'Problem in ineofdump.F' 120 122 #ifdef NC_DOUBLE 121 123 write(uehead,*) real(long(ig)*180./pi),real(lati(ig)*180./pi)
Note: See TracChangeset
for help on using the changeset viewer.