15 |
C === Global variables === |
C === Global variables === |
16 |
#include "SIZE.h" |
#include "SIZE.h" |
17 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
18 |
|
#include "PARAMS.h" |
19 |
#include "FFIELDS.h" |
#include "FFIELDS.h" |
20 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
21 |
#include "SEAICE_SIZE.h" |
#include "SEAICE_SIZE.h" |
90 |
DIAGarray(I,J,5+(iTr-1)*5) = |
DIAGarray(I,J,5+(iTr-1)*5) = |
91 |
& HEFFprev*SItracer(i,j,bi,bj,iTr) + SItrBucket(i,j,bi,bj,iTr) |
& HEFFprev*SItracer(i,j,bi,bj,iTr) + SItrBucket(i,j,bi,bj,iTr) |
92 |
#endif |
#endif |
93 |
c apply the sequence of thermodynamics increments to actual traceur |
c apply the sequence of thermodynamics increments to actual tracer |
94 |
c (see seaice_growth.F) |
c (see seaice_growth.F) |
95 |
c (jTh=1 tendency due to ice-ocean interaction) |
c (jTh=1 tendency due to ice-ocean interaction) |
96 |
c (jTh=2 tendency due to the atmosphere, over ice covered part) |
c (jTh=2 tendency due to the atmosphere, over ice covered part) |
174 |
c "ice concentration" tracer: no specific process |
c "ice concentration" tracer: no specific process |
175 |
elseif (SItrName(iTr).EQ.'ridge') then |
elseif (SItrName(iTr).EQ.'ridge') then |
176 |
c simple, made up, ice surface roughness index prototype |
c simple, made up, ice surface roughness index prototype |
|
#ifndef SEAICE_GROWTH_LEGACY |
|
177 |
DO J=1,sNy |
DO J=1,sNy |
178 |
DO I=1,sNx |
DO I=1,sNx |
179 |
c ridging increases roughness |
c ridging increases roughness |
187 |
SItracer(i,j,bi,bj,iTr)=SItracer(i,j,bi,bj,iTr)*tmpscal1 |
SItracer(i,j,bi,bj,iTr)=SItracer(i,j,bi,bj,iTr)*tmpscal1 |
188 |
ENDDO |
ENDDO |
189 |
ENDDO |
ENDDO |
|
#endif |
|
190 |
endif |
endif |
191 |
c 3) ice-ocean tracer exchange/mapping to external variables |
c 3) ice-ocean tracer exchange/mapping to external variables |
192 |
c ========================================================== |
c ========================================================== |
193 |
#ifdef ALLOW_DIAGNOSTICS |
#ifdef ALLOW_DIAGNOSTICS |
194 |
if (SItrMate(iTr).EQ.'HEFF') then |
IF ( useDiagnostics .AND. SItrMate(iTr).EQ.'HEFF') THEN |
195 |
WRITE(diagName,'(A4,I2.2,A2)') 'SItr',iTr,'Fx' |
WRITE(diagName,'(A4,I2.2,A2)') 'SItr',iTr,'Fx' |
196 |
tmpscal1=-ONE/SEAICE_deltaTtherm*SEAICE_rhoIce |
tmpscal1=-ONE/SEAICE_deltaTtherm*SEAICE_rhoIce |
197 |
CALL DIAGNOSTICS_SCALE_FILL(SItrBucket(1-OLx,1-OLy,bi,bj,iTr), |
CALL DIAGNOSTICS_SCALE_FILL(SItrBucket(1-OLx,1-OLy,bi,bj,iTr), |
198 |
& tmpscal1, 1, diagName,0,1,2,bi,bj,myThid) |
& tmpscal1, 1, diagName,0,1,2,bi,bj,myThid) |
199 |
endif |
ENDIF |
200 |
#endif |
#endif |
201 |
|
|
202 |
if ( (SItrName(iTr).EQ.'salinity').AND. |
if ( (SItrName(iTr).EQ.'salinity').AND. |
223 |
& *HEFFM(I,J,bi,bj)/SEAICE_deltaTtherm*SEAICE_rhoIce |
& *HEFFM(I,J,bi,bj)/SEAICE_deltaTtherm*SEAICE_rhoIce |
224 |
#endif |
#endif |
225 |
c empty bucket |
c empty bucket |
226 |
SItrBucket(i,j,bi,bj,iTr)=0. _d 0 |
c but not for 'grease' (see seaice_growth.F) |
227 |
|
if (SItrName(iTr).NE.'grease') |
228 |
|
& SItrBucket(i,j,bi,bj,iTr)=0. _d 0 |
229 |
ENDDO |
ENDDO |
230 |
ENDDO |
ENDDO |
231 |
|
|