Skip to content

Commit fcca1ee

Browse files
authored
Merge pull request #660 from mandli/mv-b4step
Move `b4step` call out of `stepgrid` and into `advanc`
2 parents 7be6194 + ebb854f commit fcca1ee

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

src/2d/bouss/advanc_splitRev2Calls.f

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,11 @@ subroutine par_advanc (mptr,mitot,mjtot,nvar,naux,dtnew)
311311
rvoll(level) = rvoll(level) + nx * ny
312312
!$OMP END CRITICAL(rv)
313313

314-
314+
c Call b4step2 here so that time dependent arrays can be filled properly
315315
locaux = node(storeaux,mptr)
316+
call b4step2(nghost, nx, ny, nvar, alloc(locnew),
317+
& rnode(cornxlo,mptr), rnode(cornylo,mptr), hx, hy,
318+
& time, dt, naux, alloc(locaux))
316319
c
317320
if (node(ffluxptr,mptr) .ne. 0) then
318321
lenbc = 2*(nx/intratx(level-1)+ny/intraty(level-1))

src/2d/bouss/stepgrid.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
157157
c finest level. No need to check on each patch separately.
158158
c::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
159159

160-
call b4step2(mbc,mx,my,nvar,q,
161-
& xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
160+
c This call has been moved out to advanc
161+
c call b4step2(mbc,mx,my,nvar,q,
162+
c & xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
162163

163164
c::::::::::::::::::::::::FGOUT DATA before step:::::::::::::::::::::::
164165
c # fill in values at fgout points affected at time tc0

src/2d/shallow/advanc.f

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ subroutine par_advanc (mptr,mitot,mjtot,nvar,naux,dtnew)
221221
rvoll(level) = rvoll(level) + nx * ny
222222
!$OMP END CRITICAL(rv)
223223

224-
224+
c Call b4step2 here so that time dependent arrays can be filled properly
225225
locaux = node(storeaux,mptr)
226+
call b4step2(nghost, nx, ny, nvar, alloc(locnew),
227+
& rnode(cornxlo,mptr), rnode(cornylo,mptr), hx, hy,
228+
& time, dt, naux, alloc(locaux))
226229
c
227230
if (node(ffluxptr,mptr) .ne. 0) then
228231
lenbc = 2*(nx/intratx(level-1)+ny/intraty(level-1))

src/2d/shallow/stepgrid.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ subroutine stepgrid(q,fm,fp,gm,gp,mitot,mjtot,mbc,dt,dtnew,dx,dy,
149149
c finest level. No need to check on each patch separately.
150150
c::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
151151

152-
call b4step2(mbc,mx,my,nvar,q,
153-
& xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
152+
c This call has been moved out to advanc
153+
c call b4step2(mbc,mx,my,nvar,q,
154+
c & xlowmbc,ylowmbc,dx,dy,time,dt,maux,aux,actualstep)
154155

155156
c::::::::::::::::::::::::FGOUT DATA before step:::::::::::::::::::::::
156157
c # fill in values at fgout points affected at time tc0

0 commit comments

Comments
 (0)