1 |
jmc |
1.12 |
C $Header: /u/gcmpack/MITgcm/pkg/exf/exf_getsurfacefluxes.F,v 1.11 2006/03/02 02:53:22 heimbach Exp $ |
2 |
heimbach |
1.8 |
C $Name: $ |
3 |
heimbach |
1.1 |
|
4 |
edhill |
1.6 |
#include "EXF_OPTIONS.h" |
5 |
heimbach |
1.1 |
|
6 |
|
|
subroutine exf_GetSurfaceFluxes( |
7 |
|
|
I mytime, |
8 |
|
|
I myiter, |
9 |
|
|
I mythid |
10 |
|
|
& ) |
11 |
|
|
|
12 |
|
|
c ================================================================== |
13 |
|
|
c SUBROUTINE exf_GetSurfaceFluxes |
14 |
|
|
c ================================================================== |
15 |
|
|
c |
16 |
|
|
c o Mid-level routine for enabling the use of flux fields as control |
17 |
|
|
c variables. |
18 |
|
|
c |
19 |
|
|
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
20 |
|
|
c |
21 |
|
|
c changed: Christian Eckert eckert@mit.edu 14-Jan-2000 |
22 |
|
|
c - Restructured the code in order to create a package |
23 |
|
|
c for the MITgcmUV. |
24 |
|
|
c |
25 |
|
|
c Christian Eckert eckert@mit.edu 12-Feb-2000 |
26 |
dimitri |
1.4 |
c - Changed Routine names (package prefix: exf_) |
27 |
heimbach |
1.1 |
c |
28 |
dimitri |
1.4 |
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
29 |
heimbach |
1.1 |
c |
30 |
|
|
c ================================================================== |
31 |
|
|
c SUBROUTINE exf_GetSurfaceFluxes |
32 |
|
|
c ================================================================== |
33 |
|
|
|
34 |
|
|
implicit none |
35 |
|
|
|
36 |
heimbach |
1.5 |
c == global variables == |
37 |
|
|
#include "EEPARAMS.h" |
38 |
|
|
#include "SIZE.h" |
39 |
|
|
#include "PARAMS.h" |
40 |
|
|
#include "GRID.h" |
41 |
|
|
|
42 |
jmc |
1.12 |
#include "EXF_FIELDS.h" |
43 |
heimbach |
1.8 |
#ifdef ALLOW_AUTODIFF |
44 |
heimbach |
1.5 |
# include "ctrl.h" |
45 |
|
|
# include "ctrl_dummy.h" |
46 |
|
|
#endif |
47 |
|
|
|
48 |
heimbach |
1.1 |
c == routine arguments == |
49 |
|
|
|
50 |
|
|
_RL mytime |
51 |
|
|
integer myiter |
52 |
|
|
integer mythid |
53 |
|
|
|
54 |
|
|
c == global variables == |
55 |
|
|
|
56 |
|
|
c == end of interface == |
57 |
|
|
|
58 |
|
|
#ifdef ALLOW_HFLUX_CONTROL |
59 |
heimbach |
1.5 |
call ctrl_get_gen ( |
60 |
|
|
& xx_hflux_file, xx_hfluxstartdate, xx_hfluxperiod, |
61 |
|
|
& maskc, hflux, xx_hflux0, xx_hflux1, xx_hflux_dummy, |
62 |
heimbach |
1.11 |
& xx_hflux_remo_intercept, xx_hflux_remo_slope, |
63 |
heimbach |
1.5 |
& mytime, myiter, mythid ) |
64 |
heimbach |
1.1 |
#endif |
65 |
|
|
|
66 |
|
|
#ifdef ALLOW_SFLUX_CONTROL |
67 |
heimbach |
1.5 |
call ctrl_get_gen ( |
68 |
|
|
& xx_sflux_file, xx_sfluxstartdate, xx_sfluxperiod, |
69 |
|
|
& maskc, sflux, xx_sflux0, xx_sflux1, xx_sflux_dummy, |
70 |
heimbach |
1.11 |
& xx_sflux_remo_intercept, xx_sflux_remo_slope, |
71 |
heimbach |
1.5 |
& 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 |
heimbach |
1.11 |
& xx_tauu_remo_intercept, xx_tauu_remo_slope, |
79 |
heimbach |
1.5 |
& mytime, myiter, mythid ) |
80 |
heimbach |
1.1 |
#endif |
81 |
|
|
|
82 |
|
|
#ifdef ALLOW_VSTRESS_CONTROL |
83 |
heimbach |
1.5 |
call ctrl_get_gen ( |
84 |
|
|
& xx_tauv_file, xx_tauvstartdate, xx_tauvperiod, |
85 |
|
|
& masks, vstress, xx_tauv0, xx_tauv1, xx_tauv_dummy, |
86 |
heimbach |
1.11 |
& xx_tauv_remo_intercept, xx_tauv_remo_slope, |
87 |
heimbach |
1.5 |
& mytime, myiter, mythid ) |
88 |
heimbach |
1.1 |
#endif |
89 |
|
|
|
90 |
|
|
end |