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
3a308afb
Commit
3a308afb
authored
9 years ago
by
Van Herck, Walter
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of IInterferenceFunctionStrategy::evaluate
parent
7aed94b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
+2
-12
2 additions, 12 deletions
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
with
2 additions
and
12 deletions
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
+
2
−
12
View file @
3a308afb
...
...
@@ -41,16 +41,8 @@ void IInterferenceFunctionStrategy::setSpecularInfo(const LayerSpecularInfo &spe
double
IInterferenceFunctionStrategy
::
evaluate
(
const
SimulationElement
&
sim_element
)
const
{
double
lambda
=
sim_element
.
getWavelength
();
double
alpha_i
=
sim_element
.
getAlphaI
();
double
phi_i
=
sim_element
.
getPhiI
();
cvector_t
k_i
;
k_i
.
setLambdaAlphaPhi
(
lambda
,
alpha_i
,
phi_i
);
Bin1D
alpha_f_bin
(
sim_element
.
getAlphaMin
(),
sim_element
.
getAlphaMax
());
Bin1D
phi_f_bin
(
sim_element
.
getPhiMin
(),
sim_element
.
getPhiMax
());
Bin1DCVector
k_f_bin
(
lambda
,
alpha_f_bin
,
phi_f_bin
);
if
(
m_sim_params
.
m_mc_integration
&&
m_sim_params
.
m_mc_points
>
1
&&
(
alpha_f_bin
.
getBinSize
()
!=
0.0
||
phi_f_bin
.
getBinSiz
e
()
!=
0.0
))
{
&&
(
sim_element
.
getSolidAngl
e
()
>
0.0
))
{
return
MCIntegratedEvaluate
(
sim_element
);
}
calculateFormFactorList
(
sim_element
);
...
...
@@ -62,10 +54,8 @@ double IInterferenceFunctionStrategy::evaluatePol(const SimulationElement& sim_e
if
(
m_sim_params
.
m_mc_integration
&&
m_sim_params
.
m_mc_points
>
0
)
{
return
MCIntegratedEvaluatePol
(
sim_element
);
}
double
result
;
calculateFormFactorLists
(
sim_element
);
result
=
evaluateForMatrixList
(
sim_element
,
m_ff_pol
);
return
result
;
return
evaluateForMatrixList
(
sim_element
,
m_ff_pol
);
}
void
IInterferenceFunctionStrategy
::
calculateFormFactorList
(
...
...
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