Changeset 127 for trunk/libf/dyn3dpar/exner_milieu.F
- Timestamp:
- May 24, 2011, 1:26:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libf/dyn3dpar/exner_milieu.F
r124 r127 48 48 REAL SSUM 49 49 EXTERNAL SSUM 50 logical,save :: firstcall=.true. 51 character(len=*),parameter :: modname="exner_milieu" 50 52 51 if (llm.eq.1) then 52 ! Specific behaviour for Shallow Water (1 vertical layer) case 53 54 ! Sanity checks 55 if (kappa.ne.1) then 56 call abort_gcm("exner_hyb", 57 & "kappa!=1 , but running in Shallow Water mode!!",42) 58 endif 59 if (cpp.ne.r) then 60 call abort_gcm("exner_hyb", 61 & "cpp!=r , but running in Shallow Water mode!!",42) 53 ! Sanity check 54 if (firstcall) then 55 ! check that vertical discretization is compatible 56 ! with this routine 57 if (disvert_type.ne.2) then 58 call abort_gcm(modname, 59 & "this routine should only be called if disvert_type==2",42) 62 60 endif 63 61 62 ! sanity checks for Shallow Water case (1 vertical layer) 63 if (llm.eq.1) then 64 if (kappa.ne.1) then 65 call abort_gcm(modname, 66 & "kappa!=1 , but running in Shallow Water mode!!",42) 67 endif 68 if (cpp.ne.r) then 69 call abort_gcm(modname, 70 & "cpp!=r , but running in Shallow Water mode!!",42) 71 endif 72 endif ! of if (llm.eq.1) 73 74 firstcall=.false. 75 endif ! of if (firstcall) 76 77 !!!! Specific behaviour for Shallow Water (1 vertical layer) case: 78 if (llm.eq.1) then 79 64 80 ! Compute pks(:),pk(:),pkf(:) 65 81 … … 74 90 ! our work is done, exit routine 75 91 return 92 76 93 endif ! of if (llm.eq.1) 77 94 78 95 !!!! General case: 96 79 97 c ------------- 80 98 c Calcul de pks
Note: See TracChangeset
for help on using the changeset viewer.