/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/ad_template.split.f
ViewVC logotype

Contents of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/ad_template.split.f

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


Revision 1.5 - (show annotations) (download)
Thu Dec 19 16:10:20 2013 UTC (12 years, 10 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
FILE REMOVED
stale

1 subroutine template()
2 use OpenAD_checkpoints
3 use OpenAD_tape
4 use OpenAD_rev
5
6 !$TEMPLATE_PRAGMA_DECLARATIONS
7
8 integer :: cp_loop_variable_1,cp_loop_variable_2,
9 + cp_loop_variable_3,cp_loop_variable_4
10
11 integer iaddr
12 external iaddr
13
14 character*(80):: indentation='
15 + '
16 our_indent=our_indent+1
17
18 if (splitPrint) then
19 write(*,
20 +'(A,A,A,A,L,A,L,A,L,A,L,A,L,A,L,A,I8,A,I8)')
21 +'JU:',indentation(1:our_indent), 'enter __SRNAME__:',
22 +' As:',our_rev_mode%arg_store,
23 +' Ar:',our_rev_mode%arg_restore,
24 +' Pl:',our_rev_mode%plain,
25 +' Ta:',our_rev_mode%tape,
26 +' Ad:',our_rev_mode%adjoint,
27 +' Sw:',our_rev_mode%switchedToCheckpoint,
28 +' TD:',double_tape_pointer,
29 +' TI:',integer_tape_pointer
30 end if
31
32 if (our_rev_mode%plain) then
33 if (splitPrint) then
34 write(*,'(A,A,A)')
35 +'JU:',indentation(1:our_indent),
36 +' __SRNAME__: entering plain'
37 end if
38 !$PLACEHOLDER_PRAGMA$ id=1
39 end if
40 if (our_rev_mode%tape .and..not.our_rev_mode%strictAnonymous) then
41 if (splitPrint) then
42 write(*,'(A,A,A)')
43 +'JU:',indentation(1:our_indent),
44 +' __SRNAME__: entering tape'
45 end if
46 !$PLACEHOLDER_PRAGMA$ id=2
47 end if
48 if (our_rev_mode%adjoint
49 +.and. .not.our_rev_mode%strictAnonymous) then
50 if (splitPrint) then
51 write(*,'(A,A,A)')
52 +'JU:',indentation(1:our_indent),
53 +' __SRNAME__: entering adjoint'
54 end if
55 !$PLACEHOLDER_PRAGMA$ id=3
56 end if
57 if (our_rev_mode%tape .and. our_rev_mode%strictAnonymous) then
58 if (splitPrint) then
59 write(*,'(A,A,A)')
60 +'JU:',indentation(1:our_indent),
61 +' __SRNAME__: entering sa tape'
62 end if
63 !$PLACEHOLDER_PRAGMA$ id=10
64 end if
65 if (our_rev_mode%adjoint
66 +.and. our_rev_mode%strictAnonymous) then
67 if (splitPrint) then
68 write(*,'(A,A,A)')
69 +'JU:',indentation(1:our_indent),
70 +' __SRNAME__: entering sa adjoint'
71 end if
72 !$PLACEHOLDER_PRAGMA$ id=11
73 end if
74
75 if (splitPrint) then
76 write(*,
77 +'(A,A,A,A,L,A,L,A,L,A,L,A,L,A,L,A,I8,A,I8)')
78 +'JU:',indentation(1:our_indent), 'leave __SRNAME__:',
79 +' As:',our_rev_mode%arg_store,
80 +' Ar:',our_rev_mode%arg_restore,
81 +' Pl:',our_rev_mode%plain,
82 +' Ta:',our_rev_mode%tape,
83 +' Ad:',our_rev_mode%adjoint,
84 +' Sw:',our_rev_mode%switchedToCheckpoint,
85 +' TD:',double_tape_pointer,
86 +' TI:',integer_tape_pointer
87 end if
88
89 our_indent=our_indent-1
90 end subroutine template

  ViewVC Help
Powered by ViewVC 1.1.22