Skip to content

Commit 239fd1b

Browse files
committed
allocate in reconstruct
1 parent 2163ec0 commit 239fd1b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/pyclaw/sharpclaw/reconstruct.f90

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ subroutine alloc_recon_workspace(maxnx,num_ghost,num_eqn,num_waves,lim_type,char
4848
case(3)
4949
allocate(uu(2,maxnx+2*num_ghost))
5050
allocate( dq1m(maxnx+2*num_ghost))
51+
case(4)
52+
allocate(uu(2,maxnx+2*num_ghost))
53+
allocate( dq1m(maxnx+2*num_ghost))
5154
end select
5255
recon_alloc = .True.
5356

@@ -83,8 +86,15 @@ subroutine dealloc_recon_workspace(lim_type,char_decomp)
8386
deallocate(hh)
8487
deallocate(uh)
8588
end select
86-
recon_alloc = .False.
89+
case(3)
90+
deallocate(uu)
91+
deallocate(dq1m)
92+
case(4)
93+
deallocate(uu)
94+
deallocate(dq1m)
8795
end select
96+
recon_alloc = .False.
97+
8898
end subroutine dealloc_recon_workspace
8999

90100
! ===================================================================

0 commit comments

Comments
 (0)