/[MITgcm]/MITgcm_contrib/dgoldberg/streamice_oad_files/streamice_vel_phi.F
ViewVC logotype

Contents of /MITgcm_contrib/dgoldberg/streamice_oad_files/streamice_vel_phi.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Nov 25 18:29:18 2014 UTC (10 years, 8 months ago) by dgoldberg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +15 -3 lines
changes for fixed point template

1 C $Header: /u/gcmpack/MITgcm_contrib/dgoldberg/streamice_oad_files/streamice_vel_phi.F,v 1.1 2014/10/14 15:41:10 dgoldberg Exp $
2 C $Name: $
3
4 #include "STREAMICE_OPTIONS.h"
5 #ifdef ALLOW_AUTODIFF
6 # include "AUTODIFF_OPTIONS.h"
7 #endif
8
9 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
10
11 CBOP
12 SUBROUTINE STREAMICE_VEL_PHI (
13 I myThid,
14 I maxNLIter,
15 I maxCGiter,
16 I cgtol,
17 O cg_iters)
18 C /============================================================\
19 C | SUBROUTINE |
20 C | o |
21 C |============================================================|
22 C | |
23 C \============================================================/
24 IMPLICIT NONE
25
26 C === Global variables ===
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29 #include "PARAMS.h"
30 #include "STREAMICE.h"
31 #include "STREAMICE_CG.h"
32 !#ifdef ALLOW_PETSC
33 !#include "finclude/petsc.h"
34 !#endif
35
36 #ifdef ALLOW_AUTODIFF_TAMC
37 # include "tamc.h"
38 #endif
39
40 C !INPUT/OUTPUT ARGUMENTS
41 INTEGER myThid
42 INTEGER maxNLIter
43 INTEGER maxCGIter
44 INTEGER i,j,bi,bj
45 _RL cgtol
46 INTEGER cg_iters
47
48 #ifdef ALLOW_STREAMICE
49
50 C LOCAL VARIABLES
51
52 CHARACTER*(MAX_LEN_MBUF) msgBuf
53
54 #ifdef STREAMICE_HYBRID_STRESS
55 CALL STREAMICE_VISC_BETA_HYBRID ( myThid )
56 #else
57 CALL STREAMICE_VISC_BETA ( myThid )
58 #endif
59
60 _EXCH_XY_RL( tau_beta_eff_streamice , myThid )
61 _EXCH_XY_RL( visc_streamice , myThid )
62
63 DO bj = myByLo(myThid), myByHi(myThid)
64 DO bi = myBxLo(myThid), myBxHi(myThid)
65 DO j=1-OLy,sNy+OLy
66 DO i=1-OLx,sNx+OLx
67 u_new_SI(i,j,bi,bj) = U_streamice(i,j,bi,bj)
68 v_new_SI(i,j,bi,bj) = V_streamice(i,j,bi,bj)
69 ENDDO
70 ENDDO
71 ENDDO
72 ENDDO
73
74 CALL STREAMICE_CG_WRAPPER(
75 & U_new_si,
76 & V_new_si,
77 & taudx_SI,
78 & taudy_SI,
79 & cgtol,
80 & cg_iters,
81 & maxCGIter,
82 & myThid )
83
84 #ifdef STREAMICE_HYBRID_STRESS
85 CALL STREAMICE_TAUB (myThid)
86 #endif
87
88 #endif
89 RETURN
90 END

  ViewVC Help
Powered by ViewVC 1.1.22