1 |
c $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "EXF_OPTIONS.h" |
#include "EXF_OPTIONS.h" |
5 |
|
|
6 |
subroutine exf_mapfields( mythid ) |
subroutine exf_mapfields( mytime, myiter, mythid ) |
7 |
|
|
8 |
c ================================================================== |
c ================================================================== |
9 |
c SUBROUTINE exf_mapfields |
c SUBROUTINE exf_mapfields |
16 |
c tool as much as possible from the ocean model. Unit and sign |
c tool as much as possible from the ocean model. Unit and sign |
17 |
c conventions can be customized using variables exf_outscal_*, |
c conventions can be customized using variables exf_outscal_*, |
18 |
c which are set in exf_readparms.F. See the header files |
c which are set in exf_readparms.F. See the header files |
19 |
c exf_fields.h and FFIELDS.h for definitions of the various input |
c EXF_FIELDS.h and FFIELDS.h for definitions of the various input |
20 |
c and output fields and for default unit and sign convetions. |
c and output fields and for default unit and sign convetions. |
21 |
c |
c |
22 |
c started: Christian Eckert eckert@mit.edu 09-Aug-1999 |
c started: Christian Eckert eckert@mit.edu 09-Aug-1999 |
48 |
|
|
49 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
50 |
#include "SIZE.h" |
#include "SIZE.h" |
51 |
|
#include "PARAMS.h" |
52 |
#include "FFIELDS.h" |
#include "FFIELDS.h" |
53 |
#include "GRID.h" |
#include "GRID.h" |
54 |
|
|
55 |
#include "exf_param.h" |
#include "EXF_PARAM.h" |
56 |
#include "exf_constants.h" |
#include "EXF_CONSTANTS.h" |
57 |
#include "exf_fields.h" |
#include "EXF_FIELDS.h" |
58 |
#include "exf_clim_param.h" |
#include "EXF_CLIM_PARAM.h" |
59 |
#include "exf_clim_fields.h" |
#include "EXF_CLIM_FIELDS.h" |
60 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
61 |
# include "tamc.h" |
# include "tamc.h" |
62 |
# include "tamc_keys.h" |
# include "tamc_keys.h" |
66 |
c mythid - thread number for this instance of the routine. |
c mythid - thread number for this instance of the routine. |
67 |
|
|
68 |
integer mythid |
integer mythid |
69 |
|
integer myiter |
70 |
|
_RL mytime |
71 |
|
|
72 |
c == local variables == |
c == local variables == |
73 |
|
|
113 |
do i = imin,imax |
do i = imin,imax |
114 |
c Heat flux. |
c Heat flux. |
115 |
qnet(i,j,bi,bj) = exf_outscal_hflux*hflux(i,j,bi,bj) |
qnet(i,j,bi,bj) = exf_outscal_hflux*hflux(i,j,bi,bj) |
116 |
|
if ( hfluxfile .EQ. ' ' ) |
117 |
|
& qnet(i,j,bi,bj) = qnet(i,j,bi,bj) - |
118 |
|
& exf_outscal_hflux * ( hflux_exfremo_intercept + |
119 |
|
& hflux_exfremo_slope*(mytime-starttime) ) |
120 |
enddo |
enddo |
121 |
enddo |
enddo |
122 |
|
|
125 |
do i = imin,imax |
do i = imin,imax |
126 |
c Salt flux. |
c Salt flux. |
127 |
empmr(i,j,bi,bj)= exf_outscal_sflux*sflux(i,j,bi,bj) |
empmr(i,j,bi,bj)= exf_outscal_sflux*sflux(i,j,bi,bj) |
128 |
|
if ( sfluxfile .EQ. ' ' ) |
129 |
|
& empmr(i,j,bi,bj) = empmr(i,j,bi,bj) - |
130 |
|
& exf_outscal_sflux * ( sflux_exfremo_intercept + |
131 |
|
& sflux_exfremo_slope*(mytime-starttime) ) |
132 |
enddo |
enddo |
133 |
enddo |
enddo |
134 |
|
|