Skip to content

Commit 599d972

Browse files
committed
Fix invalid capture in ProppantTransport
1 parent 6b68f4c commit 599d972

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ void ProppantTransport::PostStepUpdate( real64 const & time_n,
452452
UpdateProppantMobility( subRegion );
453453
} );
454454

455+
real64 const maxProppantConcentration = m_maxProppantConcentration;
455456
forTargetSubRegions( mesh, [&]( localIndex const, ElementSubRegionBase & subRegion )
456457
{
457458

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

462463
forAll< parallelDevicePolicy<> >( subRegion.size(), [=] GEOSX_HOST_DEVICE ( localIndex const ei )
463464
{
464-
if( proppantConc[ei] >= m_maxProppantConcentration || packVf[ei] >= 1.0 )
465+
if( proppantConc[ei] >= maxProppantConcentration || packVf[ei] >= 1.0 )
465466
{
466467
packVf[ei] = 1.0;
467-
proppantConc[ei] = m_maxProppantConcentration;
468+
proppantConc[ei] = maxProppantConcentration;
468469
}
469470

470471
} );

0 commit comments

Comments
 (0)