28 |
#include "FFIELDS.h" |
#include "FFIELDS.h" |
29 |
#include "PTRACERS_SIZE.h" |
#include "PTRACERS_SIZE.h" |
30 |
#include "PTRACERS_PARAMS.h" |
#include "PTRACERS_PARAMS.h" |
31 |
|
#include "PTRACERS_START.h" |
32 |
#include "PTRACERS_FIELDS.h" |
#include "PTRACERS_FIELDS.h" |
33 |
|
|
34 |
C !INPUT PARAMETERS: =================================================== |
C !INPUT PARAMETERS: =================================================== |
63 |
|
|
64 |
C Example of how to add forcing at the surface |
C Example of how to add forcing at the surface |
65 |
DO iTrc=1,PTRACERS_numInUse |
DO iTrc=1,PTRACERS_numInUse |
66 |
|
c IF ( PTRACERS_StepFwd(iTrc) ) THEN |
67 |
DO j = jMin, jMax |
DO j = jMin, jMax |
68 |
DO i = iMin, iMax |
DO i = iMin, iMax |
69 |
surfaceForcingPTr(i,j,bi,bj,iTrc) = |
surfaceForcingPTr(i,j,bi,bj,iTrc) = 0. _d 0 |
70 |
& 0. _d 0 |
c & + surfaceForcingS(i,j,bi,bj) |
|
c & surfaceForcingS(i,j,bi,bj) |
|
71 |
ENDDO |
ENDDO |
72 |
ENDDO |
ENDDO |
73 |
|
c ENDIF |
74 |
ENDDO |
ENDDO |
75 |
|
|
76 |
C-- Option to convert Salt-relaxation into additional EmP contribution |
C-- Option to convert Salt-relaxation into additional EmP contribution |
124 |
c the water column height ; temp., salt, (tracer) flux associated |
c the water column height ; temp., salt, (tracer) flux associated |
125 |
c with this input/output of water is added here to the surface tendency. |
c with this input/output of water is added here to the surface tendency. |
126 |
c |
c |
127 |
IF (PTRACERS_EvPrRn(iTrc).NE.UNSET_RL) THEN |
IF ( PTRACERS_StepFwd(iTrc) .AND. |
128 |
|
& PTRACERS_EvPrRn(iTrc).NE.UNSET_RL ) THEN |
129 |
DO j = jMin, jMax |
DO j = jMin, jMax |
130 |
DO i = iMin, iMax |
DO i = iMin, iMax |
131 |
surfaceForcingPTr(i,j,bi,bj,iTrc) = |
surfaceForcingPTr(i,j,bi,bj,iTrc) = |
153 |
|
|
154 |
DO iTrc=1,PTRACERS_numInUse |
DO iTrc=1,PTRACERS_numInUse |
155 |
|
|
156 |
IF (PTRACERS_EvPrRn(iTrc).NE.UNSET_RL) THEN |
IF ( PTRACERS_StepFwd(iTrc) .AND. |
157 |
|
& PTRACERS_EvPrRn(iTrc).NE.UNSET_RL ) THEN |
158 |
C account for Rain/Evap tracer content (PTRACERS_EvPrRn) using |
C account for Rain/Evap tracer content (PTRACERS_EvPrRn) using |
159 |
C local surface tracer |
C local surface tracer |
160 |
DO j = jMin, jMax |
DO j = jMin, jMax |
175 |
|
|
176 |
DO iTrc=1,PTRACERS_numInUse |
DO iTrc=1,PTRACERS_numInUse |
177 |
|
|
178 |
IF (PTRACERS_EvPrRn(iTrc).NE.UNSET_RL) THEN |
IF ( PTRACERS_StepFwd(iTrc) .AND. |
179 |
|
& PTRACERS_EvPrRn(iTrc).NE.UNSET_RL ) THEN |
180 |
C account for Rain/Evap tracer content (PTRACERS_EvPrRn) assuming uniform |
C account for Rain/Evap tracer content (PTRACERS_EvPrRn) assuming uniform |
181 |
C surface tracer (=PTRACERS_ref) |
C surface tracer (=PTRACERS_ref) |
182 |
DO j = jMin, jMax |
DO j = jMin, jMax |