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

Annotation of /MITgcm_contrib/heimbach/OpenAD/OAD_support/ad_template.split.f

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


Revision 1.2 - (hide annotations) (download)
Mon Nov 26 15:05:20 2007 UTC (18 years, 9 months ago) by utke
Branch: MAIN
Changes since 1.1: +10 -22 lines
refactored taping

1 utke 1.1 subroutine template()
2     use OAD_cp
3     use OAD_tape
4     use OAD_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 utke 1.2 write(*, '(A,A,A)', ADVANCE='NO')
20     +'JU:',indentation(1:our_indent), 'enter __SRNAME__:'
21     call oad_dump_revmod()
22     call oad_dump_tapestats()
23     write(*,*)
24 utke 1.1 end if
25    
26     if (our_rev_mode%plain) then
27     if (splitPrint) then
28     write(*,'(A,A,A)')
29     +'JU:',indentation(1:our_indent),
30     +' __SRNAME__: entering plain'
31     end if
32     !$PLACEHOLDER_PRAGMA$ id=1
33     end if
34     if (our_rev_mode%tape .and..not.our_rev_mode%strictAnonymous) then
35     if (splitPrint) then
36     write(*,'(A,A,A)')
37     +'JU:',indentation(1:our_indent),
38     +' __SRNAME__: entering tape'
39     end if
40     !$PLACEHOLDER_PRAGMA$ id=2
41     end if
42     if (our_rev_mode%adjoint
43     +.and. .not.our_rev_mode%strictAnonymous) then
44     if (splitPrint) then
45     write(*,'(A,A,A)')
46     +'JU:',indentation(1:our_indent),
47     +' __SRNAME__: entering adjoint'
48     end if
49     !$PLACEHOLDER_PRAGMA$ id=3
50     end if
51     if (our_rev_mode%tape .and. our_rev_mode%strictAnonymous) then
52     if (splitPrint) then
53     write(*,'(A,A,A)')
54     +'JU:',indentation(1:our_indent),
55     +' __SRNAME__: entering sa tape'
56     end if
57     !$PLACEHOLDER_PRAGMA$ id=10
58     end if
59     if (our_rev_mode%adjoint
60     +.and. our_rev_mode%strictAnonymous) then
61     if (splitPrint) then
62     write(*,'(A,A,A)')
63     +'JU:',indentation(1:our_indent),
64     +' __SRNAME__: entering sa adjoint'
65     end if
66     !$PLACEHOLDER_PRAGMA$ id=11
67     end if
68    
69     if (splitPrint) then
70 utke 1.2 write(*,'(A,A,A)', ADVANCE='NO')
71     +'JU:',indentation(1:our_indent), 'leave __SRNAME__:'
72     call oad_dump_revmod()
73     call oad_dump_tapestats()
74     write(*,*)
75 utke 1.1 end if
76    
77     our_indent=our_indent-1
78     end subroutine template

  ViewVC Help
Powered by ViewVC 1.1.22