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

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

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


Revision 1.4 - (show annotations) (download)
Thu Dec 19 16:09:58 2013 UTC (12 years, 10 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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,I6,A,I6,A,I6,A,I6,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 +' CD:',cp_double_pointer,
29 +' CI:',cp_integer_pointer,
30 +' CB:',cp_boolean_pointer,
31 +' CS:',cp_string_pointer,
32 +' TD:',double_tape_pointer,
33 +' TI:',integer_tape_pointer
34 end if
35
36 if (our_rev_mode%plain) then
37 c write(*,'(A,A,A)')
38 c +'JU:',indentation(1:our_indent), " __SRNAME__: entering plain"
39 !$PLACEHOLDER_PRAGMA$ id=1
40 end if
41 if (our_rev_mode%tape) then
42 c write(*,'(A,A,A)')
43 c +'JU:',indentation(1:our_indent), " __SRNAME__: entering tape"
44 !$PLACEHOLDER_PRAGMA$ id=2
45 end if
46 if (our_rev_mode%adjoint) then
47 c write(*,'(A,A,A)')
48 c +'JU:',indentation(1:our_indent), " __SRNAME__: entering adjoint"
49 !$PLACEHOLDER_PRAGMA$ id=3
50 end if
51
52 if (splitPrint) then
53 write(*,
54 +'(A,A,A,A,L,A,L,A,L,A,L,A,L,A,L,A,I6,A,I6,A,I6,A,I6,A,I8,A,I8)')
55 +'JU:',indentation(1:our_indent), 'leave __SRNAME__:',
56 +' As:',our_rev_mode%arg_store,
57 +' Ar:',our_rev_mode%arg_restore,
58 +' Pl:',our_rev_mode%plain,
59 +' Ta:',our_rev_mode%tape,
60 +' Ad:',our_rev_mode%adjoint,
61 +' Sw:',our_rev_mode%switchedToCheckpoint,
62 +' CD:',cp_double_pointer,
63 +' CI:',cp_integer_pointer,
64 +' CB:',cp_boolean_pointer,
65 +' CS:',cp_string_pointer,
66 +' TD:',double_tape_pointer,
67 +' TI:',integer_tape_pointer
68 end if
69
70 our_indent=our_indent-1
71 end subroutine template

  ViewVC Help
Powered by ViewVC 1.1.22