Skip to content

Commit

Permalink
allocate in reconstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
sanromd authored and Damian San Roman Aleri committed Mar 18, 2016
1 parent 9d28e7b commit 4a23e24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pyclaw/sharpclaw/reconstruct.f90
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ subroutine alloc_recon_workspace(maxnx,num_ghost,num_eqn,num_waves,lim_type,char
case(3)
allocate(uu(2,maxnx+2*num_ghost))
allocate( dq1m(maxnx+2*num_ghost))
case(4)
allocate(uu(2,maxnx+2*num_ghost))
allocate( dq1m(maxnx+2*num_ghost))
end select
recon_alloc = .True.

Expand Down Expand Up @@ -83,8 +86,15 @@ subroutine dealloc_recon_workspace(lim_type,char_decomp)
deallocate(hh)
deallocate(uh)
end select
recon_alloc = .False.
case(3)
deallocate(uu)
deallocate(dq1m)
case(4)
deallocate(uu)
deallocate(dq1m)
end select
recon_alloc = .False.

end subroutine dealloc_recon_workspace

! ===================================================================
Expand Down

0 comments on commit 4a23e24

Please sign in to comment.