21 |
#include "SEAICE_PARAMS.h" |
#include "SEAICE_PARAMS.h" |
22 |
#include "SEAICE_EXTERNAL.h" |
#include "SEAICE_EXTERNAL.h" |
23 |
|
|
24 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
25 |
|
# include "tamc.h" |
26 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
27 |
|
|
28 |
C === Routine arguments === |
C === Routine arguments === |
29 |
C myTime - Simulation time |
C myTime - Simulation time |
30 |
C myIter - Simulation timestep number |
C myIter - Simulation timestep number |
49 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
DO bi=myBxLo(myThid),myBxHi(myThid) |
50 |
DO j=0,sNy+1 |
DO j=0,sNy+1 |
51 |
DO i=0,sNx+1 |
DO i=0,sNx+1 |
52 |
GWATX(I,J,bi,bj)=0.5*(uVel(i+1,j,3,bi,bj) |
GWATX(I,J,bi,bj)=HALF*(uVel(i+1,j,3,bi,bj) |
53 |
& +uVel(i+1,j+1,3,bi,bj)) |
& +uVel(i+1,j+1,3,bi,bj)) |
54 |
GWATY(I,J,bi,bj)=0.5*(vVel(i,j+1,3,bi,bj) |
GWATY(I,J,bi,bj)=HALF*(vVel(i,j+1,3,bi,bj) |
55 |
& +vVel(i+1,j+1,3,bi,bj)) |
& +vVel(i+1,j+1,3,bi,bj)) |
56 |
#ifdef SEAICE_DEBUG |
#ifdef SEAICE_DEBUG |
57 |
c write(*,'(2i4,2i2,f7.1,7f12.3)') |
c write(*,'(2i4,2i2,f7.1,7f12.3)') |
99 |
CALL SEAICE_WRITE_PICKUP ( .FALSE., |
CALL SEAICE_WRITE_PICKUP ( .FALSE., |
100 |
& myTime+deltaTClock, myIter+1, myThid ) |
& myTime+deltaTClock, myIter+1, myThid ) |
101 |
|
|
102 |
|
C--------------------------------------------------- |
103 |
|
C OOH NOOOO we need to move the whole stuff |
104 |
|
C--------------------------------------------------- |
105 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
106 |
|
CRG CADJ store UICE,VICE,AREA,HEFF,fu,fv,EmPmR,Qnet,Qsw = comlev1_bibj |
107 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
108 |
|
|
109 |
|
C-- Call sea-ice cost function routine |
110 |
|
CRG CALL SEAICE_COST( myTime, myIter, myThid ) |
111 |
|
|
112 |
#endif ALLOW_SEAICE |
#endif ALLOW_SEAICE |
113 |
|
|
114 |
RETURN |
RETURN |