Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions include/geode/stochastic/applications/fractures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,6 @@ namespace geode
}
};

// struct FractureInterSetDescription
// {
// std::string interaction_name;
//
// std::vector< std::string > set_names;
//
// double gamma{ 1. };
// double distance{ 0. };
//
// bool include_intra_set{ true };
// bool include_inter_set{ false };
//
// std::optional< double > expected_nb_interactions;
// };

struct opengeode_stochastic_stochastic_api FractureNetworkDescription
{
std::string fnet_name;
Expand All @@ -125,6 +110,23 @@ namespace geode
return fracture_set;
}

void add_x_node_monitoring( double beta )
{
OpenGeodeStochasticStochasticException::check_exception(
beta <= 1.0 && beta >= 0., nullptr,
OpenGeodeException::TYPE::data,
"[FractureSimulationRunner] x node should be inhibitated, "
"please provise a value in [0., 1.]." );
beta_x_node = beta;
}

[[nodiscard]] std::string x_node_interaction_name() const
{
return absl::StrCat( fnet_name, "_x_node" );
}
double beta_x_node{ 1. };
std::optional< double > expected_x_node;

[[nodiscard]] std::string string() const
{
auto message =
Expand All @@ -134,6 +136,8 @@ namespace geode
{
absl::StrAppend( &message, "\n\t --> ", fset_desc.string() );
}
absl::StrAppend( &message, "\n\t --> ", x_node_interaction_name(),
": ", beta_x_node );
return message;
}
// std::vector< StraussInteractionDescription< ObjectType > >
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/geode/stochastic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ add_geode_library(
"sampling/direct/double_sampler.hpp"
"sampling/direct/point_uniform_sampler.hpp"
"sampling/direct/segment_uniform_sampler.hpp"
#"sampling/mcmc/helpers/fracture_simulation_runner.hpp"
"sampling/mcmc/helpers/simulation_context.hpp"
"sampling/mcmc/helpers/simulation_printer.hpp"
"models/energy_terms/energy_term.hpp"
Expand Down
Loading
Loading