Skip to content

Commit

Permalink
Tests: tests the generated code for tracked/untracked variables using…
Browse files Browse the repository at this point in the history
… a special DAE version of the HH52 model.

Indeed, in our original DAE version of the HH52 model, all the variables are computed using a DAE while here we want computed constants to be computed using a pure algebraic equation so that it can be used in an NLA variable that depends on them.
  • Loading branch information
agarny committed Oct 29, 2024
1 parent 18ac7f3 commit 6935762
Show file tree
Hide file tree
Showing 26 changed files with 1,227 additions and 1,282 deletions.
4 changes: 2 additions & 2 deletions tests/generator/generatortrackedvariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ void untrack(const libcellml::AnalyserModelPtr &model, const libcellml::Generato
void hodgkinHuxleySquidAxonModel1952CodeGeneration(bool ode, TrackingType trackingType)
{
auto parser = libcellml::Parser::create();
auto model = parser->parseModel(fileContents(std::string("generator/hodgkin_huxley_squid_axon_model_1952/model") + (ode ? "" : ".dae") + ".cellml"));
auto model = parser->parseModel(fileContents(std::string("generator/hodgkin_huxley_squid_axon_model_1952/model") + (ode ? "" : ".dae.wo.cc") + ".cellml"));
auto analyser = libcellml::Analyser::create();
auto generator = libcellml::Generator::create();
std::string modelType = ode ? "model" : "model.dae";
std::string modelType = ode ? "model" : "model.dae.wo.cc";
std::string variableType = (trackingType == TrackingType::VARIABLES) ?
"variables" :
((trackingType == TrackingType::CONSTANTS) ?
Expand Down
Loading

0 comments on commit 6935762

Please sign in to comment.