Skip to content
Snippets Groups Projects
Commit 993fe07b authored by Laura Lindner's avatar Laura Lindner
Browse files

fixed Monodomain tests

parent a070753c
No related branches found
No related tags found
2 merge requests!181actual status of monodomain,!179added possibility to use different time integration schemes for ion...
Pipeline #124939 passed
......@@ -165,7 +165,12 @@ std::vector<double> MainMonodomain::Evaluate(const Vector &solution) {
std::string elphyModelClass = "IBTElphyModel";
config.get("ElphyModelClass", elphyModelClass);
string cmName = "FitzHughNagumo";
config.get("ElphyModelName", cmName);
if (elphyModelClass== "IBTElphyModel"){
config.get("IBTVentricleModel", cmName);
}else{
config.get("ElphyModelName", cmName);
}
std::string IextSmooth;
config.get("ExternalCurrentSmoothingInTime", IextSmooth);
std::string IextSpaceSmoothing;
......
#include "ElphyHexaCube2dProblem.hpp"
constexpr std::array<double, 2> potentialValues{12.52738402, -84.57368826};
constexpr std::array<double, 2> potentialValues{12.5392709, -84.57368804};
std::string ElphyHexaCube2dProblem::Evaluate(const Vector &solution) const {
std::string evaluation{};
auto values = getEvaluationAt(solution, {Point(0.0, 0.0), Point(5.0, 3.0)});
evaluation += "V(0.0,0.0) = " + std::to_string(values[0]) + "\n";
evaluation += "V(5.0,3.0) = " + std::to_string(values[1]) + "\n";
......
#include "ElphyTetraCubeProblem.hpp"
constexpr std::array<double, 2> potentialValues{22.69191409, -84.57239522};
constexpr std::array<double, 2> potentialValues{22.29586486, -84.57236069};
std::string ElphyTetraCubeProblem::Evaluate(const Vector &solution) const {
std::string evaluation{};
auto values = getEvaluationAt(solution, {Point(0.0, 0.0, 0.0), Point(5.0, 3.0, 3.0)});
evaluation += "V(0.0,0.0,0.0) = " + std::to_string(values[0]) + "\n";
evaluation += "V(5.0,3.0,3.0) = " + std::to_string(values[1]) + "\n";
......
......@@ -77,7 +77,6 @@ protected:
TEST_P(MonodomainTest, CheckValueWithoutDiffusion) {
Vector &solution = cmMain->Run();
auto evalResults = cmMain->Evaluate(solution);
for (auto result: evalResults)
ASSERT_NEAR(result, 0.0, TEST_TOLERANCE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment