Skip to content

Commit ee024d7

Browse files
committed
Remove actualstep from stepgrid signatures
1 parent 2a56549 commit ee024d7

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

src/2d/bouss/stepgrid.f

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
c -------------------------------------------------------------
33
c
44
subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
5-
& nvar,xlow,ylow,time,mptr,maux,aux,actualstep)
5+
& nvar,xlow,ylow,time,mptr,maux,aux)
66
c
77
c
88
c ::::::::::::::::::: STEPGRID ::::::::::::::::::::::::::::::::::::
@@ -28,7 +28,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
2828

2929
use geoclaw_module
3030
use amr_module
31-
use fgout_module, only: FGOUT_num_grids, FGOUT_fgrids,
31+
use fgout_module, only: FGOUT_num_grids, FGOUT_fgrids,
3232
& FGOUT_tcfmax, fgout_interp, fgout_grid,
3333
& FGOUT_ttol
3434
implicit double precision (a-h,o-z)
@@ -47,14 +47,13 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
4747
logical :: debug = .false.
4848
logical :: dump = .false.
4949
!logical :: dump = .true.
50-
logical, intent (in) :: actualstep
5150
type(fgout_grid), pointer :: fgout
5251
!logical, allocatable :: fgout_interp_needed(:)
5352
logical :: fgout_interp_needed(FGOUT_num_grids)
5453
real(kind=8) :: fgout_tnext
5554
c
5655
#ifdef WHERE_AM_I
57-
write(*,*) " starting stepgrid grid ",mptr
56+
write(*,*) " starting stepgrid grid ",mptr
5857
#endif
5958
FGOUT_tcfmax = -rinfinity
6059
level = node(nestlevel,mptr)
@@ -135,7 +134,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
135134
fgout_interp_needed(ng) = .false.
136135
else
137136
fgout_tnext = fgout%output_times(fgout%next_output_index)
138-
fgout_interp_needed(ng) =
137+
fgout_interp_needed(ng) =
139138
& ((fgout%x_low < xlowmbc + mx * dx) .and.
140139
& (fgout%x_hi > xlowmbc) .and.
141140
& (fgout%y_low < ylowmbc + my * dy) .and.
@@ -153,14 +152,14 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
153152

154153

155154
c::::::::::::::::::::::::fgout Output:::::::::::::::::::::::::::::::::
156-
c This has been moved to tick.f, after advancing all patches on
155+
c This has been moved to tick.f, after advancing all patches on
157156
c finest level. No need to check on each patch separately.
158157
c::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
159158

160159
c This call has been moved out to advanc
161160
c call b4step2(mbc,mx,my,nvar,q,
162161
c & xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
163-
162+
164163
c::::::::::::::::::::::::FGOUT DATA before step:::::::::::::::::::::::
165164
c # fill in values at fgout points affected at time tc0
166165
do ng=1,FGOUT_num_grids
@@ -191,7 +190,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
191190
& q,aux,dx,dy,dt,cflgrid,
192191
& fm,fp,gm,gp,rpn2,rpt2)
193192
c
194-
c
193+
c
195194
mptr_level = node(nestlevel,mptr)
196195

197196
c write(outunit,811) mptr, mptr_level, cflgrid
@@ -324,9 +323,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
324323
endif
325324

326325
#ifdef WHERE_AM_I
327-
write(*,*) " ending stepgrid grid ",mptr
326+
write(*,*) " ending stepgrid grid ",mptr
328327
#endif
329328
return
330329
end
331-
332-

src/2d/shallow/multilayer/stepgrid.f

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
c -------------------------------------------------------------
33
c
44
subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
5-
& nvar,xlow,ylow,time,mptr,maux,aux,actualstep)
5+
& nvar,xlow,ylow,time,mptr,maux,aux)
66
c
77
c
88
c ::::::::::::::::::: STEPGRID ::::::::::::::::::::::::::::::::::::
@@ -47,7 +47,6 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
4747

4848
logical :: debug = .false.
4949
logical :: dump = .false.
50-
logical, intent (in) :: actualstep
5150
type(fgout_grid), pointer :: fgout
5251
logical, allocatable :: fgout_interp_needed(:)
5352
real(kind=8) :: fgout_tnext

src/2d/shallow/stepgrid.f

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
c -------------------------------------------------------------
33
c
44
subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
5-
& nvar,xlow,ylow,time,mptr,maux,aux,actualstep)
5+
& nvar,xlow,ylow,time,mptr,maux,aux)
66
c
77
c
88
c ::::::::::::::::::: STEPGRID ::::::::::::::::::::::::::::::::::::
@@ -28,7 +28,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
2828

2929
use geoclaw_module
3030
use amr_module
31-
use fgout_module, only: FGOUT_num_grids, FGOUT_fgrids,
31+
use fgout_module, only: FGOUT_num_grids, FGOUT_fgrids,
3232
& FGOUT_tcfmax, fgout_interp, fgout_grid,
3333
& FGOUT_ttol
3434
implicit double precision (a-h,o-z)
@@ -45,17 +45,16 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
4545

4646
logical :: debug = .false.
4747
logical :: dump = .false.
48-
logical, intent (in) :: actualstep
4948
type(fgout_grid), pointer :: fgout
5049
logical :: fgout_interp_needed(FGOUT_num_grids)
5150
real(kind=8) :: fgout_tnext
5251
c
5352
#ifdef WHERE_AM_I
54-
write(*,*) " starting stepgrid grid ",mptr
53+
write(*,*) " starting stepgrid grid ",mptr
5554
#endif
5655
FGOUT_tcfmax = -rinfinity
5756
level = node(nestlevel,mptr)
58-
57+
5958

6059
if (dump) then
6160
write(outunit,*)" at start of stepgrid: dumping grid ",mptr
@@ -127,7 +126,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
127126
fgout_interp_needed(ng) = .false.
128127
else
129128
fgout_tnext = fgout%output_times(fgout%next_output_index)
130-
fgout_interp_needed(ng) =
129+
fgout_interp_needed(ng) =
131130
& ((fgout%x_low < xlowmbc + mx * dx) .and.
132131
& (fgout%x_hi > xlowmbc) .and.
133132
& (fgout%y_low < ylowmbc + my * dy) .and.
@@ -145,14 +144,14 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
145144

146145

147146
c::::::::::::::::::::::::fgout Output:::::::::::::::::::::::::::::::::
148-
c This has been moved to tick.f, after advancing all patches on
147+
c This has been moved to tick.f, after advancing all patches on
149148
c finest level. No need to check on each patch separately.
150149
c::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
151150

152151
c This call has been moved out to advanc
153152
c call b4step2(mbc,mx,my,nvar,q,
154153
c & xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
155-
154+
156155
c::::::::::::::::::::::::FGOUT DATA before step:::::::::::::::::::::::
157156
c # fill in values at fgout points affected at time tc0
158157
do ng=1,FGOUT_num_grids
@@ -183,7 +182,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
183182
& q,aux,dx,dy,dt,cflgrid,
184183
& fm,fp,gm,gp,rpn2,rpt2)
185184
c
186-
c
185+
c
187186
mptr_level = node(nestlevel,mptr)
188187

189188
c write(outunit,811) mptr, mptr_level, cflgrid
@@ -314,9 +313,7 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
314313
endif
315314

316315
#ifdef WHERE_AM_I
317-
write(*,*) " ending stepgrid grid ",mptr
316+
write(*,*) " ending stepgrid grid ",mptr
318317
#endif
319318
return
320319
end
321-
322-

0 commit comments

Comments
 (0)