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

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

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


Revision 1.1 - (hide annotations) (download)
Mon Aug 20 17:37:53 2007 UTC (16 years, 9 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint59g, checkpoint59f, checkpoint59h
routine to reset an ajoint variable to zero

1 gforget 1.1
2     #include "CPP_OPTIONS.h"
3    
4     C !ROUTINE: ZERO_ADJ_3D
5     C !INTERFACE:
6     SUBROUTINE ZERO_ADJ_3D(
7     I bi, bj, fieldFwd,
8     I myThid)
9     C !DESCRIPTION: \bv
10     C *==========================================================*
11     C | o zero out a 3D adjoint field
12     C | ... nothing happens in forward mode
13     C | author: Gael Forget
14     C *==========================================================*
15    
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18     #include "PARAMS.h"
19    
20     C == Routine arguments ==
21     C myThid - Thread number for this instance of the routine.
22     integer myThid,bi,bj,i,j,k
23     _RL fieldFwd(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr)
24    
25     end
26    
27    
28     C !ROUTINE: ZERO_ADJ_2D
29     C !INTERFACE:
30     SUBROUTINE ZERO_ADJ_2D(
31     I bi, bj, fieldFwd,
32     I myThid)
33     C !DESCRIPTION: \bv
34     C *==========================================================*
35     C | o zero out a 2D adjoint field
36     C | ... nothing happens in forward mode
37     C | author: Gael Forget
38     C *==========================================================*
39    
40     #include "SIZE.h"
41     #include "EEPARAMS.h"
42     #include "PARAMS.h"
43    
44     C == Routine arguments ==
45     C myThid - Thread number for this instance of the routine.
46     integer myThid,bi,bj,i,j
47     _RL fieldFwd(1-Olx:sNx+Olx,1-Oly:sNy+Oly)
48    
49     end
50    
51    

  ViewVC Help
Powered by ViewVC 1.1.22