/[MITgcm]/MITgcm/pkg/exf/exf_mapfields.F
ViewVC logotype

Diff of /MITgcm/pkg/exf/exf_mapfields.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15 by heimbach, Fri Jan 13 16:48:02 2006 UTC revision 1.17 by jmc, Mon Apr 16 23:27:21 2007 UTC
# Line 1  Line 1 
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
# Line 15  c       This routine is included to sepa Line 16  c       This routine is included to sepa
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
# Line 47  c     == global variables == Line 48  c     == global variables ==
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"
# Line 64  c     == routine arguments == Line 66  c     == routine arguments ==
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    
# Line 109  c     == end of interface == Line 113  c     == end of interface ==
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    
# Line 117  c            Heat flux. Line 125  c            Heat flux.
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    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.22