Skip to content

Commit b3cbdb5

Browse files
author
utke
committed
1 parent dbb6b5e commit b3cbdb5

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

hg2svn.stamp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SVN synched to hg bad7e700bba5
1+
SVN synched to hg 23dc1aab3f65

runTimeSupport/cpToFile/OAD_tape.f90

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module OAD_tape
1010
private :: increment , dtt, itt, ltt, stt, &
1111
init, dump_tapestats, &
1212
dt_grow, it_grow, lt_grow, st_grow, &
13-
push_i0, push_d1, push_i1, &
14-
pop_i0, pop_d1, pop_i1, &
13+
push_d0, push_i0, push_d1, push_i1, &
14+
pop_d0, pop_i0, pop_d1, pop_i1, &
1515
push_d4, push_d6, &
1616
pop_d4, pop_d6
1717

@@ -61,13 +61,13 @@ module OAD_tape
6161
end interface
6262

6363
interface oad_tape_push
64-
module procedure push_i0
64+
module procedure push_d0, push_i0
6565
module procedure push_d1, push_i1
6666
module procedure push_d4, push_d6
6767
end interface
6868

6969
interface oad_tape_pop
70-
module procedure pop_i0
70+
module procedure pop_d0, pop_i0
7171
module procedure pop_d1, pop_i1
7272
module procedure pop_d4, pop_d6
7373
end interface
@@ -192,20 +192,20 @@ subroutine st_grow
192192
oad_st_sz=oad_st_sz+increment
193193
end subroutine st_grow
194194

195+
subroutine push_d0(v)
196+
implicit none
197+
double precision :: v
198+
if(oad_dt_sz .lt. oad_dt_ptr+1) call oad_dt_grow()
199+
oad_dt(oad_dt_ptr)=v; oad_dt_ptr=oad_dt_ptr+1
200+
end subroutine push_d0
201+
195202
subroutine push_i0(v)
196203
implicit none
197204
integer :: v
198205
if(oad_it_sz .lt. oad_it_ptr+1) call oad_it_grow()
199206
oad_it(oad_it_ptr)=v; oad_it_ptr=oad_it_ptr+1
200207
end subroutine push_i0
201208

202-
subroutine pop_i0(v)
203-
implicit none
204-
integer :: v
205-
oad_it_ptr=oad_it_ptr-1
206-
v=oad_it(oad_it_ptr)
207-
end subroutine pop_i0
208-
209209
subroutine push_d1(v)
210210
implicit none
211211
double precision :: v(:)
@@ -250,6 +250,20 @@ subroutine push_d6(v)
250250
oad_dt_ptr=oad_dt_ptr+chunk(1)
251251
end subroutine push_d6
252252

253+
subroutine pop_d0(v)
254+
implicit none
255+
double precision :: v
256+
oad_dt_ptr=oad_dt_ptr-1
257+
v=oad_dt(oad_dt_ptr)
258+
end subroutine pop_d0
259+
260+
subroutine pop_i0(v)
261+
implicit none
262+
integer :: v
263+
oad_it_ptr=oad_it_ptr-1
264+
v=oad_it(oad_it_ptr)
265+
end subroutine pop_i0
266+
253267
subroutine pop_d1(v)
254268
implicit none
255269
double precision :: v(:)

0 commit comments

Comments
 (0)