Skip to content

Commit 33ce02e

Browse files
compile
1 parent 8533097 commit 33ce02e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/geode/stochastic/sampling/random_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ namespace geode
334334
double sample_truncated_powerlaw( const TruncatedPowerLaw& law )
335335
{
336336
OPENGEODE_ASSERT(
337-
alpha > 0, "Power-law exponent alpha must be > 0" );
337+
law.alpha > 0, "Power-law exponent alpha must be > 0" );
338338

339339
// Set bounds
340340
const double xmin = law.min_value.value_or(

tests/stochastic/sampling/mcmc/test-mh-fractures.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ namespace
9797

9898
// length
9999
setA.length.distribution_type =
100-
geode::UniformClosed< double >::distribution_type_static();
100+
geode::TruncatedPowerLaw::distribution_type_static();
101+
setA.length.alpha = 2.;
101102
setA.length.min_value = 1;
102103
setA.length.max_value = 10.;
103104

0 commit comments

Comments
 (0)