Skip to content

Commit

Permalink
uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
CusiniM committed Jul 3, 2024
1 parent a828539 commit 23b65f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/coreComponents/constitutive/solid/Damage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class DamageUpdates : public UPDATE_BASE

//Standard quadratic degradation functions

template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
GEOS_HOST_DEVICE
real64 getDegradationValue( localIndex const k,
localIndex const q ) const
Expand All @@ -128,7 +128,7 @@ class DamageUpdates : public UPDATE_BASE
return ((1 - eps)*(1 - pf)*(1 - pf) + eps);
}

template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
inline
GEOS_HOST_DEVICE
real64 getDegradationDerivative( real64 const d ) const
Expand All @@ -137,7 +137,7 @@ class DamageUpdates : public UPDATE_BASE
}


template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
inline
GEOS_HOST_DEVICE
real64 getDegradationSecondDerivative( real64 const d ) const
Expand Down
10 changes: 5 additions & 5 deletions src/coreComponents/constitutive/solid/DamageSpectral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class DamageSpectralUpdates : public DamageUpdates< UPDATE_BASE >
using UPDATE_BASE::m_shearModulus;

// Lorentz type degradation functions
template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
inline
GEOS_HOST_DEVICE
real64 getDegradationValue( localIndex const k,
Expand All @@ -119,7 +119,7 @@ class DamageSpectralUpdates : public DamageUpdates< UPDATE_BASE >
return pow( 1 - m_damage( k, q ), 2 ) /( pow( 1 - m_damage( k, q ), 2 ) + m * m_damage( k, q ) * (1 + p*m_damage( k, q )) );
}

template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
inline
GEOS_HOST_DEVICE
real64 getDegradationDerivative( real64 const d ) const
Expand All @@ -138,7 +138,7 @@ class DamageSpectralUpdates : public DamageUpdates< UPDATE_BASE >
return -m*(1 - d)*(1 + (2*p + 1)*d) / pow( pow( 1-d, 2 ) + m*d*(1+p*d), 2 );
}

template< typename DISSIPATION_ORDER = std::integral_constant<int, 1> >
template< typename DISSIPATION_ORDER = std::integral_constant< int, 1 > >
inline
GEOS_HOST_DEVICE
real64 getDegradationSecondDerivative( real64 const d ) const
Expand Down Expand Up @@ -191,11 +191,11 @@ class DamageSpectralUpdates : public DamageUpdates< UPDATE_BASE >
real64 damageFactor = 0;
if( m_dissipationFuctionType == 1 )
{
damageFactor = getDegradationValue< std::integral_constant<int, 1> >( k, q );
damageFactor = getDegradationValue< std::integral_constant< int, 1 > >( k, q );
}
else if( m_dissipationFuctionType == 2 )
{
damageFactor = getDegradationValue< std::integral_constant<int, 2> >( k, q );
damageFactor = getDegradationValue< std::integral_constant< int, 2 > >( k, q );
}

// get eigenvalues and eigenvectors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ struct DamageKernel
else
{
stack.localJacobian[ a ][ b ] -= detJ * ( pow( ell, 2 ) * LvArray::tensorOps::AiBi< 3 >( dNdX[a], dNdX[b] )
+ N[a] * N[b] * (1 + m_constitutiveUpdate.template getDegradationSecondDerivative< DISSIPATION_FUNCTION_ORDER >( qp_damage ) * ell * strainEnergyDensity/Gc ) );
+ N[a] * N[b] *
(1 + m_constitutiveUpdate.template getDegradationSecondDerivative< DISSIPATION_FUNCTION_ORDER >( qp_damage ) * ell * strainEnergyDensity/Gc ) );
}
}
}
Expand Down Expand Up @@ -304,9 +305,9 @@ struct DamageKernel
};

template< typename SUBREGION_TYPE, typename CONSTITUTIVE_TYPE, typename FE_TYPE >
using LinearPhaseFieldDamageKernel = DamageKernel< std::integral_constant<int, 1> >::template PhaseFieldDamageKernel< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >;
using LinearPhaseFieldDamageKernel = DamageKernel< std::integral_constant< int, 1 > >::template PhaseFieldDamageKernel< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >;
template< typename SUBREGION_TYPE, typename CONSTITUTIVE_TYPE, typename FE_TYPE >
using QuadraticPhaseFieldDamageKernel = DamageKernel< std::integral_constant<int, 2> >::template PhaseFieldDamageKernel< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >;
using QuadraticPhaseFieldDamageKernel = DamageKernel< std::integral_constant< int, 2 > >::template PhaseFieldDamageKernel< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >;

using LinearPhaseFieldDamageKernelFactory = finiteElement::KernelFactory< LinearPhaseFieldDamageKernel,
arrayView1d< globalIndex const > const,
Expand Down

0 comments on commit 23b65f1

Please sign in to comment.