Skip to content

Commit 44ff93d

Browse files
author
Anand Radhakrishnan
committed
Minor bug w/ qbmm + poly for large case
1 parent c0b37f3 commit 44ff93d

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/simulation/m_time_steppers.fpp

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ contains
150150
@:ALLOCATE(rhs_pb(ix_t%beg:ix_t%end, &
151151
iy_t%beg:iy_t%end, &
152152
iz_t%beg:iz_t%end, 1:nnode, 1:nb))
153+
else if(qbmm .and. polytropic) then
154+
@:ALLOCATE(pb_ts(1)%sf(ix_t%beg:ix_t%beg + 1, &
155+
iy_t%beg:iy_t%beg + 1, &
156+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
157+
@:ALLOCATE(pb_ts(2)%sf(ix_t%beg:ix_t%beg + 1, &
158+
iy_t%beg:iy_t%beg + 1, &
159+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
160+
@:ALLOCATE(rhs_pb(ix_t%beg:ix_t%beg + 1, &
161+
iy_t%beg:iy_t%beg + 1, &
162+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
153163
end if
154164

155165
@:ALLOCATE(mv_ts(1:2))
@@ -164,6 +174,16 @@ contains
164174
@:ALLOCATE(rhs_mv(ix_t%beg:ix_t%end, &
165175
iy_t%beg:iy_t%end, &
166176
iz_t%beg:iz_t%end, 1:nnode, 1:nb))
177+
else if(qbmm .and. polytropic) then
178+
@:ALLOCATE(mv_ts(1)%sf(ix_t%beg:ix_t%beg + 1, &
179+
iy_t%beg:iy_t%beg + 1, &
180+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
181+
@:ALLOCATE(mv_ts(2)%sf(ix_t%beg:ix_t%beg + 1, &
182+
iy_t%beg:iy_t%beg + 1, &
183+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
184+
@:ALLOCATE(rhs_mv(ix_t%beg:ix_t%beg + 1, &
185+
iy_t%beg:iy_t%beg + 1, &
186+
iz_t%beg:iz_t%beg + 1, 1:nnode, 1:nb))
167187
end if
168188

169189
if (hypoelasticity) then
@@ -772,4 +792,4 @@ contains
772792

773793
end subroutine s_finalize_time_steppers_module ! -----------------------
774794

775-
end module m_time_steppers
795+
end module m_time_steppers

0 commit comments

Comments
 (0)