/[MITgcm]/MITgcm/pkg/matrix/matrix_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/matrix/matrix_init_varia.F

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


Revision 1.2 - (show annotations) (download)
Fri Aug 26 19:47:00 2011 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.1: +20 -30 lines
- fix for multi-tiles (add bi,bj indices to exp/impMatrixCounter);
- fix for multi-threaded (remove DATA statement);
- use standard DIFFERENT_MULTIPLE function;
- add MATRIX_OPTIONS.h

1 C $Header: /u/gcmpack/MITgcm/pkg/matrix/matrix_init.F,v 1.3 2007/11/05 18:58:00 jmc Exp $
2 C $Name: $
3
4 #include "MATRIX_OPTIONS.h"
5
6 SUBROUTINE MATRIX_INIT_VARIA( myThid )
7
8 IMPLICIT NONE
9
10 #include "EEPARAMS.h"
11 #include "SIZE.h"
12 #include "PTRACERS_SIZE.h"
13 #include "PTRACERS_PARAMS.h"
14 #include "PTRACERS_FIELDS.h"
15 #include "MATRIX.h"
16 #include "PARAMS.h"
17
18 INTEGER myThid
19
20 #ifdef ALLOW_MATRIX
21
22 C local variables:
23 INTEGER i, j, k, bi, bj
24 INTEGER iTracer
25
26 C Initialize counters
27 expMatrixWriteCount = 1
28 impMatrixWriteCount = 1
29 DO bj=myByLo(myThid),myByHi(myThid)
30 DO bi=myBxLo(myThid),myBxHi(myThid)
31 expMatrixCounter(bi,bj) = 0
32 impMatrixCounter(bi,bj) = 0
33 ENDDO
34 ENDDO
35 DO iTracer=1,PTRACERS_num
36 DO bj=myByLo(myThid),myByHi(myThid)
37 DO bi=myBxLo(myThid),myBxHi(myThid)
38 DO k=1,Nr
39 DO j=1-Oly, sNy+Oly
40 DO i=1-Olx, sNx+Olx
41 PTRACERS_initial(i,j,k,bi,bj,iTracer) =
42 & pTracer(i,j,k,bi,bj,iTracer)
43 MATRIX(i,j,k,bi,bj,iTracer,1) = 0. _d 0
44 MATRIX(i,j,k,bi,bj,iTracer,2) = 0. _d 0
45 ENDDO
46 ENDDO
47 ENDDO
48 ENDDO
49 ENDDO
50 ENDDO
51
52 #endif /* ALLOW_MATRIX */
53 RETURN
54 END

  ViewVC Help
Powered by ViewVC 1.1.22