1 |
edhill |
1.7 |
C |
2 |
heimbach |
1.8 |
C $Header: /u/gcmpack/MITgcm/pkg/exf/exf_getsurfacefluxes.F,v 1.7 2003/10/23 04:41:40 edhill Exp $ |
3 |
|
|
C $Name: $ |
4 |
heimbach |
1.1 |
|
5 |
heimbach |
1.8 |
#include "PACKAGES_CONFIG.h" |
6 |
edhill |
1.6 |
#include "EXF_OPTIONS.h" |
7 |
heimbach |
1.1 |
|
8 |
|
|
subroutine exf_GetSurfaceFluxes( |
9 |
|
|
I mytime, |
10 |
|
|
I myiter, |
11 |
|
|
I mythid |
12 |
|
|
& ) |
13 |
|
|
|
14 |
|
|
c ================================================================== |
15 |
|
|
c SUBROUTINE exf_GetSurfaceFluxes |
16 |
|
|
c ================================================================== |
17 |
|
|
c |
18 |
|
|
c o Mid-level routine for enabling the use of flux fields as control |
19 |
|
|
c variables. |
20 |
|
|
c |
21 |
|
|
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
22 |
|
|
c |
23 |
|
|
c changed: Christian Eckert eckert@mit.edu 14-Jan-2000 |
24 |
|
|
c - Restructured the code in order to create a package |
25 |
|
|
c for the MITgcmUV. |
26 |
|
|
c |
27 |
|
|
c Christian Eckert eckert@mit.edu 12-Feb-2000 |
28 |
dimitri |
1.4 |
c - Changed Routine names (package prefix: exf_) |
29 |
heimbach |
1.1 |
c |
30 |
dimitri |
1.4 |
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
31 |
heimbach |
1.1 |
c |
32 |
|
|
c ================================================================== |
33 |
|
|
c SUBROUTINE exf_GetSurfaceFluxes |
34 |
|
|
c ================================================================== |
35 |
|
|
|
36 |
|
|
implicit none |
37 |
|
|
|
38 |
heimbach |
1.5 |
c == global variables == |
39 |
|
|
#include "EEPARAMS.h" |
40 |
|
|
#include "SIZE.h" |
41 |
|
|
#include "PARAMS.h" |
42 |
|
|
#include "GRID.h" |
43 |
|
|
|
44 |
|
|
#include "exf_fields.h" |
45 |
heimbach |
1.8 |
#ifdef ALLOW_AUTODIFF |
46 |
heimbach |
1.5 |
# include "ctrl.h" |
47 |
|
|
# include "ctrl_dummy.h" |
48 |
|
|
#endif |
49 |
|
|
|
50 |
heimbach |
1.1 |
c == routine arguments == |
51 |
|
|
|
52 |
|
|
_RL mytime |
53 |
|
|
integer myiter |
54 |
|
|
integer mythid |
55 |
|
|
|
56 |
|
|
c == global variables == |
57 |
|
|
|
58 |
|
|
c == end of interface == |
59 |
|
|
|
60 |
|
|
#ifdef ALLOW_HFLUX_CONTROL |
61 |
heimbach |
1.5 |
call ctrl_get_gen ( |
62 |
|
|
& xx_hflux_file, xx_hfluxstartdate, xx_hfluxperiod, |
63 |
|
|
& maskc, hflux, xx_hflux0, xx_hflux1, xx_hflux_dummy, |
64 |
|
|
& mytime, myiter, mythid ) |
65 |
heimbach |
1.1 |
#endif |
66 |
|
|
|
67 |
|
|
#ifdef ALLOW_SFLUX_CONTROL |
68 |
heimbach |
1.5 |
call ctrl_get_gen ( |
69 |
|
|
& xx_sflux_file, xx_sfluxstartdate, xx_sfluxperiod, |
70 |
|
|
& maskc, sflux, xx_sflux0, xx_sflux1, xx_sflux_dummy, |
71 |
|
|
& mytime, myiter, mythid ) |
72 |
heimbach |
1.1 |
#endif |
73 |
|
|
|
74 |
|
|
#ifdef ALLOW_USTRESS_CONTROL |
75 |
heimbach |
1.5 |
call ctrl_get_gen ( |
76 |
|
|
& xx_tauu_file, xx_tauustartdate, xx_tauuperiod, |
77 |
|
|
& maskw, ustress, xx_tauu0, xx_tauu1, xx_tauu_dummy, |
78 |
|
|
& mytime, myiter, mythid ) |
79 |
heimbach |
1.1 |
#endif |
80 |
|
|
|
81 |
|
|
#ifdef ALLOW_VSTRESS_CONTROL |
82 |
heimbach |
1.5 |
call ctrl_get_gen ( |
83 |
|
|
& xx_tauv_file, xx_tauvstartdate, xx_tauvperiod, |
84 |
|
|
& masks, vstress, xx_tauv0, xx_tauv1, xx_tauv_dummy, |
85 |
|
|
& mytime, myiter, mythid ) |
86 |
heimbach |
1.1 |
#endif |
87 |
|
|
|
88 |
|
|
#ifdef ALLOW_SWFLUX_CONTROL |
89 |
heimbach |
1.5 |
call ctrl_get_gen ( |
90 |
|
|
NOT YET IMPLEMENTED |
91 |
|
|
& mytime, myiter, mythid ) |
92 |
heimbach |
1.1 |
#endif |
93 |
|
|
|
94 |
|
|
#ifdef ALLOW_LWFLUX_CONTROL |
95 |
heimbach |
1.5 |
call ctrl_get_gen ( |
96 |
|
|
NOT YET IMPLEMENTED |
97 |
|
|
& mytime, myiter, mythid ) |
98 |
heimbach |
1.1 |
#endif |
99 |
|
|
|
100 |
|
|
end |