16 |
|
|
17 |
C == Global variables == |
C == Global variables == |
18 |
#include "SIZE.h" |
#include "SIZE.h" |
19 |
|
#include "EEPARAMS.h" |
20 |
|
#include "PARAMS.h" |
21 |
#include "GRID.h" |
#include "GRID.h" |
22 |
|
|
23 |
C == Routine arguments == |
C == Routine arguments == |
55 |
ENDDO |
ENDDO |
56 |
ENDDO |
ENDDO |
57 |
|
|
58 |
|
C- Special stuff for Cubed Sphere |
59 |
|
C above formula is ambiguous when only 3 edges instead of 4, |
60 |
|
C => return to min-3 definition at the Cubed-Sphere corners |
61 |
|
IF (useCubedSphereExchange) THEN |
62 |
|
DO j=1,sNy+1,sNy |
63 |
|
DO i=1,sNx+1,sNx |
64 |
|
hFacZOpen=MIN( _hFacW(i,j,k,bi,bj) |
65 |
|
& , _hFacW(i,j-1,k,bi,bj) |
66 |
|
& , _hFacS(i,j,k,bi,bj) |
67 |
|
& , _hFacS(i-1,j,k,bi,bj) |
68 |
|
& ) |
69 |
|
hFacZ(i,j)=hFacZOpen |
70 |
|
IF (hFacZOpen.EQ.0.) THEN |
71 |
|
r_hFacZ(i,j)=0. |
72 |
|
ELSE |
73 |
|
r_hFacZ(i,j)=1./hFacZOpen |
74 |
|
ENDIF |
75 |
|
ENDDO |
76 |
|
ENDDO |
77 |
|
ENDIF |
78 |
|
|
79 |
RETURN |
RETURN |
80 |
END |
END |