1 |
heimbach |
1.1 |
|
2 |
|
|
#include "CPP_OPTIONS.h" |
3 |
|
|
|
4 |
|
|
CStartOfInterface |
5 |
|
|
SUBROUTINE EXTERNAL_FIELDS_SCALE( myThid ) |
6 |
|
|
C /==========================================================\ |
7 |
|
|
C | SUBROUTINE EXTERNAL_FIELDS_SCALE | |
8 |
|
|
C | o Rescale fields from external source . | |
9 |
|
|
C |==========================================================| |
10 |
|
|
C | Notes | |
11 |
|
|
C | Conversion of flux fields are described in FFIELDS.h | |
12 |
|
|
C \==========================================================/ |
13 |
|
|
IMPLICIT NONE |
14 |
|
|
|
15 |
|
|
C === Global variables === |
16 |
|
|
#include "SIZE.h" |
17 |
|
|
#include "EEPARAMS.h" |
18 |
|
|
#include "PARAMS.h" |
19 |
|
|
#include "FFIELDS.h" |
20 |
|
|
#include "GRID.h" |
21 |
|
|
|
22 |
|
|
C === Routine arguments === |
23 |
|
|
C myThid - Thread no. that called this routine. |
24 |
|
|
INTEGER myThid |
25 |
|
|
CEndOfInterface |
26 |
|
|
|
27 |
|
|
C === Functions === |
28 |
|
|
LOGICAL DIFFERENT_MULTIPLE |
29 |
|
|
EXTERNAL DIFFERENT_MULTIPLE |
30 |
|
|
|
31 |
|
|
C === Local arrays === |
32 |
|
|
|
33 |
|
|
C === Local variables === |
34 |
|
|
INTEGER bi,bj,i,j |
35 |
|
|
|
36 |
|
|
_BARRIER |
37 |
|
|
|
38 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
39 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
40 |
|
|
DO j=1-oLy,sNy+oLy |
41 |
|
|
DO i=1-oLx,sNx+oLx |
42 |
|
|
c Zonal wind stress fu: |
43 |
|
|
fu(i,j,bi,bj) = fu(i,j,bi,bj) |
44 |
|
|
& *horiVertRatio*recip_rhoNil*recip_dRf(1) |
45 |
|
|
c Meridional wind stress fv: |
46 |
|
|
fv(i,j,bi,bj) = fv(i,j,bi,bj) |
47 |
|
|
& *horiVertRatio*recip_rhoNil*recip_dRf(1) |
48 |
|
|
#ifdef USE_NATURAL_BCS |
49 |
|
|
c Freshwater flux EmPmR: |
50 |
|
|
EmPmR(i,j,bi,bj) = |
51 |
|
|
& -EmPmR(i,j,bi,bj)*recip_dRf(1)*salt(i,j,1,bi,bj) |
52 |
|
|
#else |
53 |
|
|
c Freshwater flux EmPmR: |
54 |
|
|
EmPmR(i,j,bi,bj) = |
55 |
|
|
& -EmPmR(i,j,bi,bj)*recip_dRf(1)*35. |
56 |
|
|
#endif |
57 |
|
|
c Net heat flux Qnet: |
58 |
|
|
Qnet(i,j,bi,bj) = |
59 |
|
|
& - Qnet(i,j,bi,bj)*recip_Cp*recip_rhoNil*recip_dRf(1) |
60 |
|
|
#ifdef SHORTWAVE_HEATING |
61 |
|
|
c Short wave radiative flux Qsw: |
62 |
|
|
Qsw(i,j,bi,bj) = |
63 |
|
|
& - Qsw(i,j,bi,bj)*recip_Cp*recip_rhoNil*recip_dRf(1) |
64 |
|
|
#endif |
65 |
|
|
ENDDO |
66 |
|
|
ENDDO |
67 |
|
|
ENDDO |
68 |
|
|
ENDDO |
69 |
|
|
|
70 |
|
|
RETURN |
71 |
|
|
END |