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