1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "THSICE_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: THSICE_DO_ADVECT |
8 |
C !INTERFACE: |
9 |
SUBROUTINE THSICE_DO_ADVECT( |
10 |
I bi, bj, myTime, myIter, myThid ) |
11 |
|
12 |
C !DESCRIPTION: \bv |
13 |
C *==========================================================* |
14 |
C | SUBROUTINE THSICE_DO_ADVECT |
15 |
C | o wraper for pkg/thSIce advection-diffusion calls |
16 |
C *==========================================================* |
17 |
C \ev |
18 |
C !USES: |
19 |
IMPLICIT NONE |
20 |
|
21 |
C === Global variables === |
22 |
#include "SIZE.h" |
23 |
#include "EEPARAMS.h" |
24 |
#include "PARAMS.h" |
25 |
#include "THSICE_PARAMS.h" |
26 |
|
27 |
C !INPUT/OUTPUT PARAMETERS: |
28 |
C === Routine arguments === |
29 |
C bi,bj :: Tile indices |
30 |
C myTime :: Current time in simulation (s) |
31 |
C myIter :: Current iteration number |
32 |
C myThid :: My Thread Id. number |
33 |
INTEGER bi,bj |
34 |
_RL myTime |
35 |
INTEGER myIter |
36 |
INTEGER myThid |
37 |
CEOP |
38 |
|
39 |
C !LOCAL VARIABLES: |
40 |
C === Local variables === |
41 |
C uIce/vIce :: ice velocity on C-grid [m/s] |
42 |
_RL uIce(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
43 |
_RL vIce(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
44 |
|
45 |
IF ( thSIceAdvScheme.GT.0 ) THEN |
46 |
CALL THSICE_GET_VELOCITY( |
47 |
O uIce, vIce, |
48 |
I bi,bj, myTime, myIter, myThid ) |
49 |
CALL THSICE_ADVDIFF( |
50 |
U uIce, vIce, |
51 |
I bi,bj, myTime, myIter, myThid ) |
52 |
ENDIF |
53 |
|
54 |
RETURN |
55 |
END |