/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/OpenAD_tape.f90
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/OpenAD_tape.f90

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


Revision 1.4 - (hide annotations) (download)
Thu Dec 19 16:10:13 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 utke 1.1 module OpenAD_tape
2     implicit none
3    
4     private
5     public :: double_tape, double_tmp_tape, &
6     & double_tape_pointer, double_tape_size, &
7     & integer_tape, integer_tmp_tape, &
8     & integer_tape_pointer, integer_tape_size, &
9 utke 1.2 & tape_init, tape_increment
10 utke 1.1
11     double precision, dimension(:), allocatable :: double_tape, double_tmp_tape
12     integer, dimension(:), allocatable :: integer_tape, integer_tmp_tape
13     integer :: double_tape_pointer=0, integer_tape_pointer=0
14     integer :: double_tape_size=0, integer_tape_size=0
15 utke 1.2 integer :: tape_increment
16 utke 1.1
17     interface tape_init
18     module procedure init
19     end interface tape_init
20    
21     contains
22    
23     subroutine init
24     double_tape_pointer=1
25     if (allocated(double_tape)) then
26     deallocate(double_tape)
27     end if
28     double_tape_size=1048576
29     allocate(double_tape(double_tape_size))
30     integer_tape_pointer=1
31     if (allocated(integer_tape)) then
32     deallocate(integer_tape)
33     end if
34     integer_tape_size=1048576
35     allocate(integer_tape(integer_tape_size))
36 utke 1.3 tape_increment=16777216
37 utke 1.1 end subroutine init
38    
39     end module OpenAD_tape

  ViewVC Help
Powered by ViewVC 1.1.22