1 |
utke |
1.1 |
cccC ########################################################### |
2 |
|
|
ccc subroutine active_read_xy_loc( |
3 |
|
|
ccc I active_var_file, |
4 |
|
|
ccc O active_var, |
5 |
|
|
ccc I irec, |
6 |
|
|
ccc I doglobalread, |
7 |
|
|
ccc I lAdInit, |
8 |
|
|
ccc I myOptimIter, |
9 |
|
|
ccc I mythid |
10 |
|
|
ccc I , dummy |
11 |
|
|
ccc & ) |
12 |
|
|
ccc implicit none |
13 |
|
|
ccc#include "EEPARAMS.h" |
14 |
|
|
ccc#include "SIZE.h" |
15 |
|
|
ccc character*(*) active_var_file |
16 |
|
|
ccc _RL active_var(1-olx:snx+olx,1-oly:sny+oly,nsx,nsy) |
17 |
|
|
ccc integer irec |
18 |
|
|
ccc integer myOptimIter |
19 |
|
|
ccc integer mythid |
20 |
|
|
ccc logical doglobalread |
21 |
|
|
ccc logical lAdInit |
22 |
|
|
ccc _RL dummy (1-olx:snx+olx,1-oly:sny+oly,nsx,nsy) |
23 |
utke |
1.4 |
ccc dummy(1,1,1,1)=2*active_var(1,1,1,1) |
24 |
utke |
1.1 |
ccc end subroutine |
25 |
|
|
cccC ########################################################### |
26 |
|
|
ccc subroutine active_read_xyz_loc( |
27 |
|
|
ccc I active_var_file, |
28 |
|
|
ccc O active_var, |
29 |
|
|
ccc I irec, |
30 |
|
|
ccc I doglobalread, |
31 |
|
|
ccc I lAdInit, |
32 |
|
|
ccc I myOptimIter, |
33 |
|
|
ccc I mythid |
34 |
|
|
ccc I , dummy |
35 |
|
|
ccc & ) |
36 |
|
|
ccc#include "EEPARAMS.h" |
37 |
|
|
ccc#include "SIZE.h" |
38 |
|
|
ccc character*(*) active_var_file |
39 |
|
|
ccc _RL active_var(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
40 |
|
|
ccc integer irec |
41 |
|
|
ccc integer myOptimIter |
42 |
|
|
ccc integer mythid |
43 |
|
|
ccc logical doglobalread |
44 |
|
|
ccc logical lAdInit |
45 |
|
|
ccc _RL dummy(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
46 |
utke |
1.4 |
ccc dummy(1,1,1,1,1)=2*active_var(1,1,1,1,1) |
47 |
utke |
1.1 |
ccc end subroutine |
48 |
|
|
cccC ########################################################### |
49 |
|
|
ccc subroutine active_read_xyz( |
50 |
|
|
ccc I active_var_file, |
51 |
|
|
ccc O active_var, |
52 |
|
|
ccc I irec, |
53 |
|
|
ccc I doglobalread, |
54 |
|
|
ccc I lAdInit, |
55 |
|
|
ccc I myOptimIter, |
56 |
|
|
ccc I mythid |
57 |
|
|
ccc I , dummy |
58 |
|
|
ccc & ) |
59 |
|
|
ccc implicit none |
60 |
|
|
ccc#include "EEPARAMS.h" |
61 |
|
|
ccc#include "SIZE.h" |
62 |
|
|
ccc character*(*) active_var_file |
63 |
|
|
ccc _RL active_var(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
64 |
|
|
ccc integer irec |
65 |
|
|
ccc integer myOptimIter |
66 |
|
|
ccc integer mythid |
67 |
|
|
ccc logical doglobalread |
68 |
|
|
ccc logical lAdInit |
69 |
|
|
ccc _RL dummy(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
70 |
utke |
1.4 |
ccc dummy(1,1,1,1,1)=2*active_var(1,1,1,1,1) |
71 |
utke |
1.1 |
ccc end subroutine |
72 |
|
|
cccC ########################################################### |
73 |
|
|
ccc SUBROUTINE EXCH_UV_AGRID_XY_RS( component1, |
74 |
|
|
ccc + component2, |
75 |
|
|
ccc + withSigns, |
76 |
|
|
ccc + myThid ) |
77 |
|
|
ccc implicit none |
78 |
|
|
ccc#include "SIZE.h" |
79 |
|
|
ccc#include "EEPARAMS.h" |
80 |
|
|
ccc#include "EESUPPORT.h" |
81 |
|
|
ccc#include "EXCH.h" |
82 |
|
|
ccc _RS component1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
83 |
|
|
ccc _RS component2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
84 |
|
|
ccc LOGICAL withSigns |
85 |
|
|
ccc INTEGER myThid |
86 |
|
|
ccc component1(1,1,1,1)=component2(1,1,1,1) |
87 |
|
|
ccc component2(1,1,1,1)=component1(1,1,1,1) |
88 |
|
|
ccc end subroutine |
89 |
|
|
C ########################################################### |
90 |
|
|
SUBROUTINE EXCH_UV_XY_RS( |
91 |
|
|
U Uphi, Vphi, |
92 |
|
|
I withSigns, myThid ) |
93 |
|
|
IMPLICIT NONE |
94 |
|
|
#include "SIZE.h" |
95 |
|
|
#include "EEPARAMS.h" |
96 |
|
|
#include "EESUPPORT.h" |
97 |
|
|
#include "EXCH.h" |
98 |
|
|
|
99 |
|
|
_RS Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
100 |
|
|
_RS Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
101 |
|
|
_RS temp |
102 |
|
|
LOGICAL withSigns |
103 |
|
|
INTEGER myThid |
104 |
|
|
temp=Uphi(1,1,1,1) |
105 |
|
|
Uphi(1,1,1,1)=Vphi(1,1,1,1) |
106 |
|
|
Vphi(1,1,1,1)=temp |
107 |
|
|
end subroutine |
108 |
|
|
C ########################################################### |
109 |
|
|
SUBROUTINE EXCH_UV_XYZ_RL( |
110 |
|
|
U Uphi, Vphi, |
111 |
|
|
I withSigns, myThid ) |
112 |
|
|
IMPLICIT NONE |
113 |
|
|
#include "SIZE.h" |
114 |
|
|
#include "EEPARAMS.h" |
115 |
|
|
#include "EESUPPORT.h" |
116 |
|
|
#include "EXCH.h" |
117 |
|
|
_RL Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
118 |
|
|
_RL Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
119 |
|
|
_RL temp |
120 |
|
|
LOGICAL withSigns |
121 |
|
|
INTEGER myThid |
122 |
|
|
temp=Uphi(1,1,1,1,1) |
123 |
|
|
Uphi(1,1,1,1,1)=Vphi(1,1,1,1,1) |
124 |
|
|
Vphi(1,1,1,1,1)=temp |
125 |
|
|
end subroutine |
126 |
|
|
C ########################################################### |
127 |
|
|
SUBROUTINE EXCH_UV_XYZ_RS( |
128 |
|
|
U Uphi, Vphi, |
129 |
|
|
I withSigns, myThid ) |
130 |
|
|
IMPLICIT NONE |
131 |
|
|
#include "SIZE.h" |
132 |
|
|
#include "EEPARAMS.h" |
133 |
|
|
#include "EESUPPORT.h" |
134 |
|
|
#include "EXCH.h" |
135 |
|
|
_RS Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
136 |
|
|
_RS Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
137 |
|
|
_RL temp |
138 |
|
|
LOGICAL withSigns |
139 |
|
|
INTEGER myThid |
140 |
|
|
temp=Uphi(1,1,1,1,1) |
141 |
|
|
Uphi(1,1,1,1,1)=Vphi(1,1,1,1,1) |
142 |
|
|
Vphi(1,1,1,1,1)=temp |
143 |
|
|
end subroutine |
144 |
|
|
C ########################################################### |
145 |
|
|
SUBROUTINE EXCH_XY_RL( |
146 |
|
|
U phi, |
147 |
|
|
I myThid ) |
148 |
|
|
IMPLICIT NONE |
149 |
|
|
#include "SIZE.h" |
150 |
|
|
#include "EEPARAMS.h" |
151 |
|
|
#include "EESUPPORT.h" |
152 |
|
|
#include "EXCH.h" |
153 |
|
|
_RL phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
154 |
|
|
INTEGER myThid |
155 |
|
|
phi(1,1,1,1)=2*phi(1,1,1,1) |
156 |
|
|
end subroutine |
157 |
|
|
C ########################################################### |
158 |
|
|
SUBROUTINE EXCH_XYZ_RL( |
159 |
|
|
U phi, |
160 |
|
|
I myThid ) |
161 |
|
|
IMPLICIT NONE |
162 |
|
|
#include "SIZE.h" |
163 |
|
|
#include "EEPARAMS.h" |
164 |
|
|
#include "EESUPPORT.h" |
165 |
|
|
#include "EXCH.h" |
166 |
|
|
_RL phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
167 |
|
|
INTEGER myThid |
168 |
|
|
phi(1,1,1,1,1)=2*phi(1,1,1,1,1) |
169 |
|
|
end subroutine |
170 |
|
|
C ########################################################### |
171 |
|
|
SUBROUTINE GLOBAL_MAX_R8( |
172 |
|
|
U maxphi, |
173 |
|
|
I myThid ) |
174 |
|
|
IMPLICIT NONE |
175 |
|
|
#include "SIZE.h" |
176 |
|
|
#include "EEPARAMS.h" |
177 |
|
|
#include "EESUPPORT.h" |
178 |
|
|
#include "EXCH.h" |
179 |
|
|
Real*8 maxPhi |
180 |
|
|
INTEGER myThid |
181 |
|
|
maxPhi=2*maxPhi |
182 |
|
|
end subroutine |
183 |
|
|
C ########################################################### |
184 |
|
|
SUBROUTINE GLOBAL_SUM_R8( |
185 |
|
|
U sumphi, |
186 |
|
|
I myThid ) |
187 |
|
|
IMPLICIT NONE |
188 |
|
|
#include "SIZE.h" |
189 |
|
|
#include "EEPARAMS.h" |
190 |
|
|
#include "EESUPPORT.h" |
191 |
|
|
#include "EXCH.h" |
192 |
|
|
Real*8 sumPhi |
193 |
|
|
INTEGER myThid |
194 |
|
|
sumPhi=2*sumPhi |
195 |
|
|
end subroutine |
196 |
|
|
C ########################################################### |