Skip to content

Commit

Permalink
uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertbk committed Jun 11, 2024
1 parent bae56a7 commit d20f164
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ template< typename SUBREGION_TYPE,
typename CONSTITUTIVE_TYPE,
typename FE_TYPE >
class ExplicitAcousticVTIFletcherAdjointSEM : public finiteElement::KernelBase< SUBREGION_TYPE,
CONSTITUTIVE_TYPE,
FE_TYPE,
1,
1 >
CONSTITUTIVE_TYPE,
FE_TYPE,
1,
1 >
{
public:

Expand Down Expand Up @@ -94,13 +94,13 @@ class ExplicitAcousticVTIFletcherAdjointSEM : public finiteElement::KernelBase<
* elements to be processed during this kernel launch.
*/
ExplicitAcousticVTIFletcherAdjointSEM( NodeManager & nodeManager,
EdgeManager const & edgeManager,
FaceManager const & faceManager,
localIndex const targetRegionIndex,
SUBREGION_TYPE const & elementSubRegion,
FE_TYPE const & finiteElementSpace,
CONSTITUTIVE_TYPE & inputConstitutiveType,
real64 const dt ):
EdgeManager const & edgeManager,
FaceManager const & faceManager,
localIndex const targetRegionIndex,
SUBREGION_TYPE const & elementSubRegion,
FE_TYPE const & finiteElementSpace,
CONSTITUTIVE_TYPE & inputConstitutiveType,
real64 const dt ):
Base( elementSubRegion,
finiteElementSpace,
inputConstitutiveType ),
Expand Down Expand Up @@ -271,7 +271,7 @@ class ExplicitAcousticVTIFletcherAdjointSEM : public finiteElement::KernelBase<

/// The factory used to construct a ExplicitAcousticWaveEquation kernel.
using ExplicitAcousticVTIFletcherAdjointSEMFactory = finiteElement::KernelFactory< ExplicitAcousticVTIFletcherAdjointSEM,
real64 >;
real64 >;


} // namespace acousticVTIFletcherAdjointWaveEquationSEMKernels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ void AcousticVTIFletcherWaveEquationSEM::computeUnknowns( real64 const & GEOS_UN
arrayView1d< real32 > const stiffnessVector_p = nodeManager.getField< acousticvtifields::StiffnessVector_p >();
arrayView1d< real32 > const stiffnessVector_q = nodeManager.getField< acousticvtifields::StiffnessVector_q >();
arrayView1d< real32 > const rhs = nodeManager.getField< acousticfields::ForcingRHS >();
if(isForward)
if( isForward )
{
auto kernelFactory = acousticVTIFletcherWaveEquationSEMKernels::ExplicitAcousticVTIFletcherSEMFactory( dt );

Expand All @@ -674,7 +674,8 @@ void AcousticVTIFletcherWaveEquationSEM::computeUnknowns( real64 const & GEOS_UN
"",
kernelFactory );
}
else{
else
{
auto kernelFactory = acousticVTIFletcherAdjointWaveEquationSEMKernels::ExplicitAcousticVTIFletcherAdjointSEMFactory( dt );

finiteElement::
Expand Down Expand Up @@ -769,7 +770,7 @@ real64 AcousticVTIFletcherWaveEquationSEM::explicitStepInternal( real64 const &
MeshLevel & mesh,
arrayView1d< string const > const & regionNames )
{
computeUnknowns( time_n, dt, cycleNumber, domain, mesh, regionNames, isForward);
computeUnknowns( time_n, dt, cycleNumber, domain, mesh, regionNames, isForward );
synchronizeUnknowns( time_n, dt, cycleNumber, domain, mesh, regionNames );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ class AcousticVTIFletcherWaveEquationSEM : public WaveSolverBase
real64 const & dt,
integer const cycleNumber,
DomainPartition & domain,
bool const isForward);
bool const isForward );

void computeUnknowns( real64 const & time_n,
real64 const & dt,
integer const cycleNumber,
DomainPartition & domain,
MeshLevel & mesh,
arrayView1d< string const > const & regionNames,
bool const isForward);
bool const isForward );

void synchronizeUnknowns( real64 const & time_n,
real64 const & dt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ template< typename SUBREGION_TYPE,
typename CONSTITUTIVE_TYPE,
typename FE_TYPE >
class ExplicitAcousticVTIZhangAdjointSEM : public finiteElement::KernelBase< SUBREGION_TYPE,
CONSTITUTIVE_TYPE,
FE_TYPE,
1,
1 >
CONSTITUTIVE_TYPE,
FE_TYPE,
1,
1 >
{
public:

Expand Down Expand Up @@ -262,7 +262,7 @@ class ExplicitAcousticVTIZhangAdjointSEM : public finiteElement::KernelBase< SUB

/// The factory used to construct a ExplicitAcousticWaveEquation kernel.
using ExplicitAcousticVTIZhangAdjointSEMFactory = finiteElement::KernelFactory< ExplicitAcousticVTIZhangAdjointSEM,
real64 >;
real64 >;


} // namespace acousticVTIZhangAdjointWaveEquationSEMKernels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ void AcousticVTIZhangWaveEquationSEM::computeUnknowns( real64 const & GEOS_UNUSE
arrayView1d< real32 > const stiffnessVector_q = nodeManager.getField< acousticvtifields::StiffnessVector_q >();
arrayView1d< real32 > const rhs = nodeManager.getField< acousticfields::ForcingRHS >();

if(isForward)
if( isForward )
{
auto kernelFactory = acousticVTIZhangWaveEquationSEMKernels::ExplicitAcousticVTIZhangSEMFactory( dt );

Expand All @@ -673,7 +673,8 @@ void AcousticVTIZhangWaveEquationSEM::computeUnknowns( real64 const & GEOS_UNUSE
"",
kernelFactory );
}
else{
else
{
auto kernelFactory = acousticVTIZhangAdjointWaveEquationSEMKernels::ExplicitAcousticVTIZhangAdjointSEMFactory( dt );

finiteElement::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ class AcousticVTIZhangWaveEquationSEM : public WaveSolverBase
real64 const & dt,
integer const cycleNumber,
DomainPartition & domain,
bool const isForward);
bool const isForward );

void computeUnknowns( real64 const & time_n,
real64 const & dt,
integer const cycleNumber,
DomainPartition & domain,
MeshLevel & mesh,
arrayView1d< string const > const & regionNames,
bool const isForward);
bool const isForward );

void synchronizeUnknowns( real64 const & time_n,
real64 const & dt,
Expand Down

0 comments on commit d20f164

Please sign in to comment.