Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
59c0830d
Commit
59c0830d
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Plain Diff
[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
!1852
improve report from GUI/Check
Pipeline
#108274
canceled
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/Suite/GUI/Check.cpp
+5
-5
5 additions, 5 deletions
Tests/Suite/GUI/Check.cpp
with
5 additions
and
5 deletions
Tests/Suite/GUI/Check.cpp
+
5
−
5
View file @
59c0830d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment