/[MITgcm]/MITgcm/pkg/autodiff/zero_adj.F
ViewVC logotype

Contents of /MITgcm/pkg/autodiff/zero_adj.F

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


Revision 1.7 - (show annotations) (download)
Sun Aug 12 18:46:20 2012 UTC (11 years, 9 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, checkpoint63r, checkpoint63s, 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.6: +32 -19 lines
- remove PARAMS.h (not needed)
- just includes CPP_EEOPTIONS.h (previously CPP_OPTIONS.h);

1 C $Header: /u/gcmpack/MITgcm/pkg/autodiff/zero_adj.F,v 1.6 2010/08/06 18:41:03 gforget Exp $
2 C $Name: $
3
4 #include "CPP_EEOPTIONS.h"
5
6 C-- File zero_adj.F:
7 C-- Contents
8 C-- o ZERO_ADJ_1D
9 C-- o ZERO_ADJ_LOC
10 C-- o ZERO_ADJ
11
12 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
13 CBOP
14 C !ROUTINE: ZERO_ADJ_1D
15 C !INTERFACE:
16 SUBROUTINE ZERO_ADJ_1D(
17 I NrIn, fieldFwd, myThid )
18 C !DESCRIPTION: \bv
19 C *==========================================================*
20 C | o zero out a one dimensional adjoint field
21 C | ... nothing happens in forward mode
22 C | author: Gael Forget
23 C *==========================================================*
24 C \ev
25
26 C !USES:
27 IMPLICIT NONE
28 C === Global variables ===
29 #include "SIZE.h"
30 #include "EEPARAMS.h"
31
32 C !INPUT/OUTPUT PARAMETERS:
33 C myThid :: my Thread Id number
34 INTEGER NrIn, myThid
35 _RL fieldFwd(NrIn)
36 CEOP
37
38 RETURN
39 END
40
41 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
42 CBOP
43 C !ROUTINE: ZERO_ADJ_LOC
44 C !INTERFACE:
45 SUBROUTINE ZERO_ADJ_LOC(
46 I NrIn, fieldFwd, myThid )
47 C !DESCRIPTION: \bv
48 C *==========================================================*
49 C | o zero out a local (no nsx,nsy dims.) adjoint field
50 C | ... nothing happens in forward mode
51 C | author: Gael Forget
52 C *==========================================================*
53 C \ev
54
55 C !USES:
56 IMPLICIT NONE
57 C === Global variables ===
58 #include "SIZE.h"
59 #include "EEPARAMS.h"
60
61 C !INPUT/OUTPUT PARAMETERS:
62 C myThid :: my Thread Id number
63 INTEGER NrIn, myThid
64 _RL fieldFwd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,NrIn)
65 CEOP
66
67 RETURN
68 END
69
70 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
71 CBOP
72 C !ROUTINE: ZERO_ADJ
73 C !INTERFACE:
74 SUBROUTINE ZERO_ADJ(
75 I NrIn, fieldFwd, myThid )
76 C !DESCRIPTION: \bv
77 C *==========================================================*
78 C | o zero out a full (incl. nsx,nsy dims.) adjoint field
79 C | ... nothing happens in forward mode
80 C | author: Gael Forget
81 C *==========================================================*
82 C \ev
83
84 C !USES:
85 IMPLICIT NONE
86 C === Global variables ===
87 #include "SIZE.h"
88 #include "EEPARAMS.h"
89
90 C !INPUT/OUTPUT PARAMETERS:
91 C myThid :: my Thread Id number
92 INTEGER NrIn, myThid
93 _RL fieldFwd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,NrIn,nSx,nSy)
94 CEOP
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22