Skip to content

Commit 60b8dca

Browse files
tidy 05
1 parent 683ebba commit 60b8dca

4 files changed

Lines changed: 20 additions & 13 deletions

File tree

include/geode/stochastic/models/energy_terms/energy_term_builder.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ namespace geode
108108

109109
template < typename ObjectType, typename NewEnergyTypeConfig >
110110
std::unique_ptr< EnergyTerm< ObjectType > > build_energy_term_impl(
111-
const NewEnergyTypeConfig&,
112-
const ObjectSets< ObjectType >&,
113-
const SpatialDomain< ObjectType::dim >& )
111+
const NewEnergyTypeConfig& /*unused*/,
112+
const ObjectSets< ObjectType >& /*unused*/,
113+
const SpatialDomain< ObjectType::dim >& /*unused*/ )
114114
{
115115
static_assert( sizeof( NewEnergyTypeConfig ) == 0,
116116
"Unsupported EnergyTermConfig type" );
@@ -119,9 +119,9 @@ namespace geode
119119

120120
template < typename ObjectType >
121121
std::unique_ptr< EnergyTerm< ObjectType > > build_energy_term_impl(
122-
const std::monostate&,
123-
const ObjectSets< ObjectType >&,
124-
const SpatialDomain< ObjectType::dim >& )
122+
const std::monostate& /*unused*/,
123+
const ObjectSets< ObjectType >& /*unused*/,
124+
const SpatialDomain< ObjectType::dim >& /*unused*/ )
125125
{
126126
throw OpenGeodeStochasticStochasticException{ nullptr,
127127
OpenGeodeException::TYPE::data,

include/geode/stochastic/models/energy_terms/pairwise_term.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace geode
106106
{
107107
double sum = 0.0;
108108
this->for_each_object_in_sets( state, this->impacted_set_ids(),
109-
[&]( const ObjectId& cur_obj_id ) {
109+
[&state]( const ObjectId& cur_obj_id ) {
110110
sum += accumulate_interactions_with_neighbors(
111111
cur_obj_id, state );
112112
} );

include/geode/stochastic/spatial/pairwise_interactions/pairwise_interactions_builder.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*
2222
*/
2323

24+
#include <geode/basic/assert.hpp>
2425
#include <geode/stochastic/spatial/pairwise_interactions/pairwise_interactions_config.hpp>
2526
#include <variant>
2627

@@ -47,7 +48,8 @@ namespace geode
4748

4849
template < typename ObjectType, typename NewInteractionConfig >
4950
std::unique_ptr< PairwiseInteraction< ObjectType > >
50-
build_pairwise_interaction_impl( const NewInteractionConfig& )
51+
build_pairwise_interaction_impl(
52+
const NewInteractionConfig& /*unused*/ )
5153
{
5254
static_assert( sizeof( NewInteractionConfig ) == 0,
5355
"Unsupported PairwiseInteractionConfig type" );
@@ -56,7 +58,7 @@ namespace geode
5658

5759
template < typename ObjectType >
5860
std::unique_ptr< PairwiseInteraction< ObjectType > >
59-
build_pairwise_interaction_impl( const std::monostate& )
61+
build_pairwise_interaction_impl( const std::monostate& /*unused*/ )
6062
{
6163
throw OpenGeodeStochasticStochasticException{ nullptr,
6264
OpenGeodeException::TYPE::data,

include/geode/stochastic/spatial/single_object_features/single_object_feature_builder.hpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
#include <variant>
2626

27+
#include <geode/basic/assert.hpp>
28+
2729
#include <geode/stochastic/spatial/single_object_features/segment_length_feature.hpp>
2830
#include <geode/stochastic/spatial/single_object_features/single_object_feature_config.hpp>
2931

@@ -52,22 +54,25 @@ namespace geode
5254
{
5355
throw OpenGeodeStochasticStochasticException{ nullptr,
5456
OpenGeodeException::TYPE::data,
55-
"SegmentLengthInsideBoxFeature not valid for this ObjectType" };
57+
"[SingleObjectFeatureBuilder] SegmentLengthInsideBoxFeature "
58+
"not valid for this ObjectType" };
5659
}
5760
}
5861

5962
template < typename ObjectType, typename NewObjectFeatureConfig >
6063
std::unique_ptr< SingleObjectFeature< ObjectType > >
61-
build_single_object_feature_impl( const NewObjectFeatureConfig& )
64+
build_single_object_feature_impl(
65+
const NewObjectFeatureConfig& /*unused*/ )
6266
{
6367
static_assert( sizeof( NewObjectFeatureConfig ) == 0,
64-
"Unsupported SingleObjectFeatureConfig type" );
68+
"[SingleObjectFeatureBuilder] Unsupported "
69+
"SingleObjectFeatureConfig type" );
6570
return nullptr;
6671
}
6772

6873
template < typename ObjectType >
6974
std::unique_ptr< SingleObjectFeature< ObjectType > >
70-
build_single_object_feature_impl( const std::monostate& )
75+
build_single_object_feature_impl( const std::monostate& /*unused*/ )
7176
{
7277
throw OpenGeodeStochasticStochasticException{ nullptr,
7378
OpenGeodeException::TYPE::data,

0 commit comments

Comments
 (0)