| 1 |
dimitri |
1.1 |
#include "PACKAGES_CONFIG.h" |
| 2 |
|
|
#include "CPP_OPTIONS.h" |
| 3 |
|
|
|
| 4 |
|
|
CBOP |
| 5 |
|
|
C !ROUTINE: CPL_SAVEFLUX |
| 6 |
|
|
C !INTERFACE: |
| 7 |
|
|
SUBROUTINE CPL_SAVEFLUX( myTime, myIter, myThid ) |
| 8 |
|
|
|
| 9 |
|
|
C !DESCRIPTION: \bv |
| 10 |
|
|
C *================================================================== |
| 11 |
|
|
C | SUBROUTINE cpl_mpmice |
| 12 |
|
|
C | o Save surface fluxes prior to seaice |
| 13 |
|
|
C | this is a temporary routine to get going |
| 14 |
|
|
C | until seaice_obcs is untangled from seaice |
| 15 |
|
|
C *================================================================== |
| 16 |
|
|
C \ev |
| 17 |
|
|
|
| 18 |
|
|
C !USES: |
| 19 |
|
|
IMPLICIT NONE |
| 20 |
|
|
C == Global variables == |
| 21 |
|
|
#include "SIZE.h" |
| 22 |
|
|
#include "EEPARAMS.h" |
| 23 |
|
|
#include "PARAMS.h" |
| 24 |
|
|
#include "GRID.h" |
| 25 |
|
|
#ifdef ALLOW_EXF |
| 26 |
|
|
# include "EXF_OPTIONS.h" |
| 27 |
|
|
# include "EXF_FIELDS.h" |
| 28 |
|
|
#endif |
| 29 |
|
|
#include "FFIELDS.h" |
| 30 |
|
|
|
| 31 |
|
|
LOGICAL DIFFERENT_MULTIPLE |
| 32 |
|
|
EXTERNAL DIFFERENT_MULTIPLE |
| 33 |
|
|
|
| 34 |
|
|
C !LOCAL VARIABLES: |
| 35 |
|
|
C mytime - time counter for this thread (seconds) |
| 36 |
|
|
C myiter - iteration counter for this thread |
| 37 |
|
|
C mythid - thread number for this instance of the routine. |
| 38 |
|
|
_RL mytime |
| 39 |
|
|
INTEGER myiter, mythid |
| 40 |
|
|
CEOP |
| 41 |
|
|
|
| 42 |
|
|
#ifdef ALLOW_CPL_MPMICE |
| 43 |
|
|
|
| 44 |
dimitri |
1.2 |
COMMON /FFIELDS_tmp/ fu_tmp, fv_tmp, Qnet_tmp, Qsw_tmp, EmPmR_tmp |
| 45 |
dimitri |
1.1 |
_RS fu_tmp (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
| 46 |
|
|
_RS fv_tmp (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
| 47 |
|
|
_RS Qnet_tmp (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
| 48 |
|
|
_RS Qsw_tmp (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
| 49 |
|
|
_RS EmPmR_tmp (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
| 50 |
|
|
|
| 51 |
|
|
integer i, j, bi, bj |
| 52 |
|
|
|
| 53 |
|
|
DO bj=1,nSy |
| 54 |
|
|
DO bi=1,nSx |
| 55 |
|
|
DO j=1-OLy,sNy+OLy |
| 56 |
|
|
DO i=1-OLx,sNx+OLx |
| 57 |
|
|
fu_tmp (i,j,bi,bj) = fu (i,j,bi,bj) |
| 58 |
|
|
fv_tmp (i,j,bi,bj) = fv (i,j,bi,bj) |
| 59 |
|
|
Qnet_tmp (i,j,bi,bj) = Qnet (i,j,bi,bj) |
| 60 |
|
|
Qsw_tmp (i,j,bi,bj) = Qsw (i,j,bi,bj) |
| 61 |
|
|
EmPmR_tmp (i,j,bi,bj) = EmPmR (i,j,bi,bj) |
| 62 |
|
|
ENDDO |
| 63 |
|
|
ENDDO |
| 64 |
|
|
ENDDO |
| 65 |
|
|
ENDDO |
| 66 |
|
|
|
| 67 |
|
|
#endif /* ALLOW_CPL_MPMICE */ |
| 68 |
|
|
|
| 69 |
|
|
RETURN |
| 70 |
|
|
END |