Skip to content

Commit

Permalink
Fix invalid capture in ProppantTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
klevzoff committed Sep 7, 2020
1 parent 6b68f4c commit 599d972
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ void ProppantTransport::PostStepUpdate( real64 const & time_n,
UpdateProppantMobility( subRegion );
} );

real64 const maxProppantConcentration = m_maxProppantConcentration;
forTargetSubRegions( mesh, [&]( localIndex const, ElementSubRegionBase & subRegion )
{

Expand All @@ -461,10 +462,10 @@ void ProppantTransport::PostStepUpdate( real64 const & time_n,

forAll< parallelDevicePolicy<> >( subRegion.size(), [=] GEOSX_HOST_DEVICE ( localIndex const ei )
{
if( proppantConc[ei] >= m_maxProppantConcentration || packVf[ei] >= 1.0 )
if( proppantConc[ei] >= maxProppantConcentration || packVf[ei] >= 1.0 )
{
packVf[ei] = 1.0;
proppantConc[ei] = m_maxProppantConcentration;
proppantConc[ei] = maxProppantConcentration;
}

} );
Expand Down

0 comments on commit 599d972

Please sign in to comment.