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
df2b9940
Commit
df2b9940
authored
3 years ago
by
Matthias Puchner
Browse files
Options
Downloads
Patches
Plain Diff
rm usage of cloned ISimulation to create sample model
parent
6bb440e1
No related branches found
No related tags found
1 merge request
!208
Remove usage of cloned ISimulation for sample model creation
Pipeline
#41606
passed
3 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/Models/GUIObjectBuilder.cpp
+0
-10
0 additions, 10 deletions
GUI/Models/GUIObjectBuilder.cpp
GUI/Models/GUIObjectBuilder.h
+0
-3
0 additions, 3 deletions
GUI/Models/GUIObjectBuilder.h
Tests/Functional/GUI/Std/Check.cpp
+2
-2
2 additions, 2 deletions
Tests/Functional/GUI/Std/Check.cpp
with
2 additions
and
15 deletions
GUI/Models/GUIObjectBuilder.cpp
+
0
−
10
View file @
df2b9940
...
@@ -37,16 +37,6 @@ SpecularInstrumentItem* createSpecularInstrumentItem(InstrumentModel* model,
...
@@ -37,16 +37,6 @@ SpecularInstrumentItem* createSpecularInstrumentItem(InstrumentModel* model,
const
QString
&
name
);
const
QString
&
name
);
}
// namespace
}
// namespace
SessionItem
*
GUI
::
Model
::
ObjectBuilder
::
populateSampleModelFromSim
(
SampleModel
*
sampleModel
,
MaterialModel
*
materialModel
,
const
ISimulation
&
simulation
)
{
std
::
unique_ptr
<
ISimulation
>
sim
(
simulation
.
clone
());
sim
->
prepareSimulation
();
SessionItem
*
item
=
populateSampleModel
(
sampleModel
,
materialModel
,
*
sim
->
sample
());
return
item
;
}
SessionItem
*
GUI
::
Model
::
ObjectBuilder
::
populateSampleModel
(
SampleModel
*
sampleModel
,
SessionItem
*
GUI
::
Model
::
ObjectBuilder
::
populateSampleModel
(
SampleModel
*
sampleModel
,
MaterialModel
*
materialModel
,
MaterialModel
*
materialModel
,
const
MultiLayer
&
sample
,
const
MultiLayer
&
sample
,
...
...
This diff is collapsed.
Click to expand it.
GUI/Models/GUIObjectBuilder.h
+
0
−
3
View file @
df2b9940
...
@@ -32,9 +32,6 @@ class ExternalProperty;
...
@@ -32,9 +32,6 @@ class ExternalProperty;
namespace
GUI
::
Model
::
ObjectBuilder
{
namespace
GUI
::
Model
::
ObjectBuilder
{
SessionItem
*
populateSampleModelFromSim
(
SampleModel
*
sampleModel
,
MaterialModel
*
materialModel
,
const
ISimulation
&
simulation
);
SessionItem
*
populateSampleModel
(
SampleModel
*
sampleModel
,
MaterialModel
*
materialModel
,
SessionItem
*
populateSampleModel
(
SampleModel
*
sampleModel
,
MaterialModel
*
materialModel
,
const
MultiLayer
&
sample
,
const
QString
&
sample_name
=
""
);
const
MultiLayer
&
sample
,
const
QString
&
sample_name
=
""
);
...
...
This diff is collapsed.
Click to expand it.
Tests/Functional/GUI/Std/Check.cpp
+
2
−
2
View file @
df2b9940
...
@@ -34,8 +34,8 @@ std::unique_ptr<OutputData<double>> domainData(const std::string& /*test_name*/,
...
@@ -34,8 +34,8 @@ std::unique_ptr<OutputData<double>> domainData(const std::string& /*test_name*/,
MaterialModel
materialModel
;
MaterialModel
materialModel
;
// populating GUI models from domain
// populating GUI models from domain
GUI
::
Model
::
ObjectBuilder
::
populateSampleModel
FromSim
(
&
sampleModel
,
&
materialModel
,
GUI
::
Model
::
ObjectBuilder
::
populateSampleModel
(
&
sampleModel
,
&
materialModel
,
direct_simulation
);
*
direct_simulation
.
sample
()
);
GUI
::
Model
::
ObjectBuilder
::
populateInstrumentModel
(
&
instrumentModel
,
direct_simulation
);
GUI
::
Model
::
ObjectBuilder
::
populateInstrumentModel
(
&
instrumentModel
,
direct_simulation
);
GUI
::
Model
::
ObjectBuilder
::
populateDocumentModel
(
&
documentModel
,
direct_simulation
);
GUI
::
Model
::
ObjectBuilder
::
populateDocumentModel
(
&
documentModel
,
direct_simulation
);
...
...
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