Skip to content

Commit

Permalink
uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
acitrain committed Jan 8, 2025
1 parent ddfafef commit 078e316
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void AcousticWaveEquationSEM::precomputeSourceAndReceiverTerm( MeshLevel & baseM
dtCompute,
m_timeSourceFrequency,
m_timeSourceDelay,
m_rickerOrder);
m_rickerOrder );
}
} );
elementSubRegion.faceList().freeOnDevice();
Expand Down Expand Up @@ -253,7 +253,8 @@ void AcousticWaveEquationSEM::addSourceToRightHandSide( integer const & cycleNum
if( sourceIsAccessible[isrc] == 1 )
{
//real64 const srcValue =
// useSourceWaveletTables ? sourceWaveletTableWrappers[ isrc ].compute( &time_n ) : WaveSolverUtils::evaluateRicker( time_n, timeSourceFrequency, timeSourceDelay, rickerOrder );
// useSourceWaveletTables ? sourceWaveletTableWrappers[ isrc ].compute( &time_n ) : WaveSolverUtils::evaluateRicker( time_n,
// timeSourceFrequency, timeSourceDelay, rickerOrder );

for( localIndex inode = 0; inode < sourceConstants.size( 1 ); ++inode )
{
Expand Down Expand Up @@ -369,7 +370,7 @@ void AcousticWaveEquationSEM::initializePostInitialConditionsPreSubGroups()
m_timeStep=dtOut;
}

forDiscretizationOnMeshTargets( domain.getMeshBodies(), [&] ( string const & meshBodyName,
forDiscretizationOnMeshTargets( domain.getMeshBodies(), [&] ( string const & meshBodyName,
MeshLevel & mesh,
arrayView1d< string const > const & regionNames )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct PreComputeSourcesAndReceivers
real64 const dt,
real32 const timeSourceFrequency,
real32 const timeSourceDelay,
localIndex const rickerOrder)
localIndex const rickerOrder )
{
constexpr localIndex numNodesPerElem = FE_TYPE::numNodes;

Expand Down Expand Up @@ -238,7 +238,7 @@ struct PreComputeSourcesAndReceivers
arrayView1d< localIndex > const receiverElem,
arrayView2d< localIndex > const receiverNodeIds,
arrayView2d< real64 > const receiverConstants,
arrayView1d< localIndex > const receiverRegion)
arrayView1d< localIndex > const receiverRegion )
{
constexpr localIndex numNodesPerElem = FE_TYPE::numNodes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ WaveSolverBase::WaveSolverBase( const std::string & name,
setSizedFromParent( 0 ).
setDescription( "Coordinates (x,y,z) of the receivers" );

registerWrapper( viewKeyStruct::sourceValueString(), &m_sourceValue ).
setInputFlag( InputFlags::FALSE ).
setRestartFlags( RestartFlags::NO_WRITE ).
setSizedFromParent( 0 ).
setDescription( "Source Value of the sources" );
registerWrapper( viewKeyStruct::sourceValueString(), &m_sourceValue ).

This comment has been minimized.

Copy link
@Victor-M-Gomes

Victor-M-Gomes Jan 12, 2025

Would it be possible to also modify line 77? The description of the =rickerOrder= wrapper.

-> Flag that indicates the order of the Ricker wavelet/function to use: 0,1 or 2.

Notice that there is actually an "o" instead of the number "0".

This could help readability.

setInputFlag( InputFlags::FALSE ).
setRestartFlags( RestartFlags::NO_WRITE ).
setSizedFromParent( 0 ).
setDescription( "Source Value of the sources" );


registerWrapper( viewKeyStruct::timeSourceDelayString(), &m_timeSourceDelay ).
Expand Down

0 comments on commit 078e316

Please sign in to comment.