Skip to content

Commit 85f805e

Browse files
committed
fixup: dilatation compile
1 parent 3a5076f commit 85f805e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/CabanaPD_Force.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class Dilatation<MemorySpace, ModelType<PDModelType, MechanicsType, NoFracture,
224224
// Get the bond distance, displacement, and stretch.
225225
double xi, r, s;
226226
getDistance( x, u, i, j, xi, r, s );
227-
theta( i ) += model.dilatation( s, xi, vol( j ), m( i ) );
227+
theta( i ) += model.dilatation( i, s, xi, vol( j ), m( i ) );
228228
};
229229

230230
neighbor.iterate( exec_space{}, dilatation, particles,
@@ -338,8 +338,8 @@ class Dilatation<MemorySpace, ModelType<PDModelType, MechanicsType, Fracture,
338338
// broken, because m=0 only occurs when all bonds are broken.
339339
// mu is still included to account for individual bond breaking.
340340
if ( m( i ) > 0 )
341-
theta( i ) += mu( i, n ) *
342-
model.dilatation( s, xi, vol( j ), m( i ) );
341+
theta( i ) += mu( i, n ) * model.dilatation(
342+
i, s, xi, vol( j ), m( i ) );
343343
}
344344
};
345345

src/force/CabanaPD_ForceModels_LPS.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ struct ForceModel<LPS, Elastic, NoFracture> : public BaseForceModel
6363

6464
KOKKOS_INLINE_FUNCTION auto dilatation( const int, const double s,
6565
const double xi, const double vol,
66-
const double m_i,
67-
const double ) const
66+
const double m_i ) const
6867
{
6968
double theta_i = influenceFunction( xi ) * s * xi * xi * vol;
7069
return 3.0 * theta_i / m_i;

src/force/CabanaPD_ForceModels_PMB.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ struct ForceModel<PMB, ElasticPerfectlyPlastic, Fracture,
224224
// Fused density update using plastic dilatation.
225225
KOKKOS_INLINE_FUNCTION auto dilatation( const int i, const double s,
226226
const double xi, const double vol,
227-
const double m_i,
228-
const double theta_i_n ) const
227+
const double ) const
229228
{
230229
double theta_i = coeff * s * xi * vol;
231230

0 commit comments

Comments
 (0)