Changeset 1391 for trunk/LMDZ.COMMON/libf/dyn3d_common/sortvarc.F
- Timestamp:
- Mar 6, 2015, 3:12:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/sortvarc.F
r1300 r1391 1 1 ! 2 ! $Id: sortvarc.F 1403 2010-07-01 09:02:53Z fairhead$2 ! $Id: sortvarc.F 2083 2014-07-09 14:43:31Z emillour $ 3 3 ! 4 4 SUBROUTINE sortvarc … … 6 6 $ vcov ) 7 7 8 use control_mod,only:resetvarc8 USE control_mod, ONLY: resetvarc 9 9 IMPLICIT NONE 10 10 11 11 12 c======================================================================= … … 24 25 c ------------- 25 26 26 #include "dimensions.h" 27 #include "paramet.h" 28 #include "comconst.h" 29 #include "comvert.h" 30 #include "comgeom.h" 31 #include "ener.h" 32 #include "logic.h" 33 #include "temps.h" 27 INCLUDE "dimensions.h" 28 INCLUDE "paramet.h" 29 INCLUDE "comconst.h" 30 INCLUDE "comvert.h" 31 INCLUDE "comgeom.h" 32 INCLUDE "ener.h" 33 INCLUDE "logic.h" 34 INCLUDE "temps.h" 35 INCLUDE "iniprint.h" 34 36 35 37 c Arguments: 36 38 c ---------- 37 39 38 INTEGER itau 39 REAL ucov(ip1jmp1,llm),teta(ip1jmp1,llm),masse(ip1jmp1,llm) 40 REAL vcov(ip1jm,llm) 41 REAL ps(ip1jmp1),phis(ip1jmp1) 42 REAL vorpot(ip1jm,llm) 43 REAL phi(ip1jmp1,llm),bern(ip1jmp1,llm) 44 REAL dp(ip1jmp1) 45 REAL time 46 REAL pk(ip1jmp1,llm) 40 INTEGER,INTENT(IN) :: itau 41 REAL,INTENT(IN) :: ucov(ip1jmp1,llm) 42 REAL,INTENT(IN) :: teta(ip1jmp1,llm) 43 REAL,INTENT(IN) :: masse(ip1jmp1,llm) 44 REAL,INTENT(IN) :: vcov(ip1jm,llm) 45 REAL,INTENT(IN) :: ps(ip1jmp1) 46 REAL,INTENT(IN) :: phis(ip1jmp1) 47 REAL,INTENT(IN) :: vorpot(ip1jm,llm) 48 REAL,INTENT(IN) :: phi(ip1jmp1,llm) 49 REAL,INTENT(IN) :: bern(ip1jmp1,llm) 50 REAL,INTENT(IN) :: dp(ip1jmp1) 51 REAL,INTENT(IN) :: time 52 REAL,INTENT(IN) :: pk(ip1jmp1,llm) 47 53 48 54 c Local: … … 57 63 58 64 REAL SSUM 59 60 logical firstcal 61 data firstcal/.true./ 62 save firstcal 65 LOGICAL,SAVE :: firstcal=.true. 66 CHARACTER(LEN=*),PARAMETER :: modname="sortvarc" 63 67 64 68 c----------------------------------------------------------------------- … … 143 147 144 148 IF (firstcal.and.resetvarc) then 145 PRINT 3500, itau, rjour, heure,time 146 PRINT*,'WARNING!!! On recalcule les valeurs initiales de :' 147 PRINT*,'ptot,rmsdpdt,etot,ztot,stot,rmsv,ang' 148 PRINT *, ptot,rmsdpdt,etot,ztot,stot,rmsv,ang 149 WRITE(lunout,3500) itau, rjour, heure, time 150 WRITE(lunout,*) trim(modname), 151 & ' WARNING!!! Recomputing initial values of : ' 152 WRITE(lunout,*) 'ptot,rmsdpdt,etot,ztot,stot,rmsv,ang' 153 WRITE(lunout,*) ptot,rmsdpdt,etot,ztot,stot,rmsv,ang 149 154 etot0 = etot 150 155 ptot0 = ptot … … 185 190 firstcal = .false. 186 191 187 PRINT 3500, itau, rjour, heure, time 188 PRINT 4000, ptot,rmsdpdt,etot,ztot,stot,rmsv,ang 189 190 RETURN 192 WRITE(lunout,3500) itau, rjour, heure, time 193 WRITE(lunout,4000) ptot,rmsdpdt,etot,ztot,stot,rmsv,ang 191 194 192 195 3500 FORMAT(10("*"),4x,'pas',i7,5x,'jour',f9.0,'heure',f5.1,4x
Note: See TracChangeset
for help on using the changeset viewer.