Skip to content
Snippets Groups Projects
Commit 59c0830d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[jw2] improve report from GUI/Check ()

Merging branch 'jw2'  into 'r22'.

See merge request !1852
parents 01bdad14 07c21a5a
No related branches found
No related tags found
1 merge request!1852improve report from GUI/Check
Pipeline #108274 canceled
......@@ -49,15 +49,15 @@ std::unique_ptr<ISimulation> indirectSimulation(const ISimulation& sim)
bool checkSimulation(const std::string& name, ISimulation& sim, const double limit)
{
std::cout << "Tests/Suite/GUI:"
<< " Validate round trip (simulation -> GUI items -> simulation)"
<< " against direct simulation." << std::endl;
std::cout << "Tests/Suite/GUI: " << name << std::endl;
std::cout << " Direct simulation" << std::endl;
const Datafield ref_data = sim.simulate();
std::cout << " Round trip (simulation -> GUI items -> simulation)" << std::endl;
std::unique_ptr<ISimulation> sim2(indirectSimulation(sim));
const Datafield data2 = sim2->simulate();
const Datafield ref_data = sim.simulate();
std::cout << " Check difference" << std::endl;
bool ok = DiffUtil::checkRelativeDifference(data2.flatVector(), ref_data.flatVector(), limit);
if (ok)
......
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