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
b6741f20
Commit
b6741f20
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ParticleLayoutComputation: rm "p_"
parent
f9bec349
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/Computation/ParticleLayoutComputation.cpp
+7
-7
7 additions, 7 deletions
Core/Computation/ParticleLayoutComputation.cpp
with
7 additions
and
7 deletions
Core/Computation/ParticleLayoutComputation.cpp
+
7
−
7
View file @
b6741f20
...
@@ -27,23 +27,23 @@ std::unique_ptr<IInterferenceFunctionStrategy>
...
@@ -27,23 +27,23 @@ std::unique_ptr<IInterferenceFunctionStrategy>
processedInterferenceFunction
(
const
ProcessedLayout
&
layout
,
const
SimulationOptions
&
sim_params
,
processedInterferenceFunction
(
const
ProcessedLayout
&
layout
,
const
SimulationOptions
&
sim_params
,
bool
polarized
)
bool
polarized
)
{
{
const
IInterferenceFunction
*
p_
iff
=
layout
.
interferenceFunction
();
const
IInterferenceFunction
*
iff
=
layout
.
interferenceFunction
();
if
(
p_
iff
&&
layout
.
numberOfSlices
()
>
1
&&
!
p_
iff
->
supportsMultilayer
())
if
(
iff
&&
layout
.
numberOfSlices
()
>
1
&&
!
iff
->
supportsMultilayer
())
throw
std
::
runtime_error
(
"LayoutStrategyBuilder::checkInterferenceFunction: "
throw
std
::
runtime_error
(
"LayoutStrategyBuilder::checkInterferenceFunction: "
"interference function does not support multiple layers"
);
"interference function does not support multiple layers"
);
auto
p_
radial_para
=
dynamic_cast
<
const
InterferenceFunctionRadialParaCrystal
*>
(
p_
iff
);
auto
radial_para
=
dynamic_cast
<
const
InterferenceFunctionRadialParaCrystal
*>
(
iff
);
const
std
::
vector
<
FormFactorCoherentSum
>&
weighted_formfactors
=
layout
.
formFactorList
();
const
std
::
vector
<
FormFactorCoherentSum
>&
weighted_formfactors
=
layout
.
formFactorList
();
std
::
unique_ptr
<
IInterferenceFunctionStrategy
>
result
;
std
::
unique_ptr
<
IInterferenceFunctionStrategy
>
result
;
if
(
p_
radial_para
&&
p_
radial_para
->
kappa
()
>
0.0
)
{
if
(
radial_para
&&
radial_para
->
kappa
()
>
0.0
)
{
double
kappa
=
p_
radial_para
->
kappa
();
double
kappa
=
radial_para
->
kappa
();
return
std
::
make_unique
<
SSCApproximationStrategy
>
(
weighted_formfactors
,
p_
iff
,
sim_params
,
return
std
::
make_unique
<
SSCApproximationStrategy
>
(
weighted_formfactors
,
iff
,
sim_params
,
polarized
,
kappa
);
polarized
,
kappa
);
}
}
return
std
::
make_unique
<
DecouplingApproximationStrategy
>
(
weighted_formfactors
,
p_
iff
,
return
std
::
make_unique
<
DecouplingApproximationStrategy
>
(
weighted_formfactors
,
iff
,
sim_params
,
polarized
);
sim_params
,
polarized
);
}
}
...
...
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