103 |
|
|
104 |
#ifdef ALLOW_PETSC |
#ifdef ALLOW_PETSC |
105 |
|
|
106 |
|
if (streamice_use_petsc) then |
107 |
|
|
108 |
CALL STREAMICE_CG_SOLVE_PETSC( |
CALL STREAMICE_CG_SOLVE_PETSC( |
109 |
U cg_Uin, ! x-velocities |
U cg_Uin, ! x-velocities |
110 |
U cg_Vin, ! y-velocities |
U cg_Vin, ! y-velocities |
115 |
I A_vu, ! section of matrix that multiplies u and projects on v |
I A_vu, ! section of matrix that multiplies u and projects on v |
116 |
I A_vv, ! section of matrix that multiplies v and projects on v |
I A_vv, ! section of matrix that multiplies v and projects on v |
117 |
I tolerance, |
I tolerance, |
118 |
I maxIter, |
I iters, |
119 |
O iters, |
O maxiter, |
120 |
I myThid ) |
I myThid ) |
121 |
|
|
122 |
|
|
123 |
#else /* ALLOW_PETSC */ |
else |
124 |
|
|
125 |
|
#endif /* ALLOW_PETSC */ |
126 |
|
|
127 |
|
|
128 |
iters = maxIter |
iters = maxIter |
524 |
! _EXCH_XY_RL( cg_Uin, myThid ) |
! _EXCH_XY_RL( cg_Uin, myThid ) |
525 |
! _EXCH_XY_RL( cg_Vin, myThid ) |
! _EXCH_XY_RL( cg_Vin, myThid ) |
526 |
|
|
527 |
#endif /* ifndef ALLOW_PETSC */ |
|
528 |
|
#ifdef ALLOW_PETSC |
529 |
|
endif !if (streamice_use_petsc) |
530 |
|
#endif |
531 |
|
|
532 |
#else /* STREAMICE_SERIAL_TRISOLVE */ |
#else /* STREAMICE_SERIAL_TRISOLVE */ |
533 |
|
|