Changeset 1673 for LMDZ5/trunk/libf/dyn3dmem/exner_hyb.F
- Timestamp:
- Oct 27, 2012, 4:23:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dmem/exner_hyb.F
r1658 r1673 1 1 ! 2 ! $Id : exner_hyb.F 1403 2010-07-01 09:02:53Z fairhead$2 ! $Id$ 3 3 ! 4 4 SUBROUTINE exner_hyb ( ngrid, ps, p,alpha,beta, pks, pk, pkf ) … … 51 51 REAL SSUM 52 52 c 53 logical,save :: firstcall=.true. 54 character(len=*),parameter :: modname="exner_hyb" 55 56 ! Sanity check 57 if (firstcall) then 58 ! sanity checks for Shallow Water case (1 vertical layer) 59 if (llm.eq.1) then 60 if (kappa.ne.1) then 61 call abort_gcm(modname, 62 & "kappa!=1 , but running in Shallow Water mode!!",42) 63 endif 64 if (cpp.ne.r) then 65 call abort_gcm(modname, 66 & "cpp!=r , but running in Shallow Water mode!!",42) 67 endif 68 endif ! of if (llm.eq.1) 69 70 firstcall=.false. 71 endif ! of if (firstcall) 53 72 54 73 if (llm.eq.1) then 55 ! Specific behaviour for Shallow Water (1 vertical layer) case56 57 ! Sanity checks58 if (kappa.ne.1) then59 call abort_gcm("exner_hyb",60 & "kappa!=1 , but running in Shallow Water mode!!",42)61 endif62 if (cpp.ne.r) then63 call abort_gcm("exner_hyb",64 & "cpp!=r , but running in Shallow Water mode!!",42)65 endif66 74 67 75 ! Compute pks(:),pk(:),pkf(:) … … 77 85 ! our work is done, exit routine 78 86 return 87 79 88 endif ! of if (llm.eq.1) 80 89 90 !!!! General case: 81 91 82 92 unpl2k = 1.+ 2.* kappa
Note: See TracChangeset
for help on using the changeset viewer.