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
2c8f1fcc
Commit
2c8f1fcc
authored
9 years ago
by
Van Herck, Walter
Browse files
Options
Downloads
Patches
Plain Diff
Added storage of full 2x2 form factor calculations to IInterferenceFunctionStrategy
parent
099f6308
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/Algorithms/inc/IInterferenceFunctionStrategy.h
+3
-0
3 additions, 0 deletions
Core/Algorithms/inc/IInterferenceFunctionStrategy.h
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
+1
-0
1 addition, 0 deletions
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
with
4 additions
and
0 deletions
Core/Algorithms/inc/IInterferenceFunctionStrategy.h
+
3
−
0
View file @
2c8f1fcc
...
...
@@ -105,6 +105,9 @@ private:
//! cached form factor evaluations
mutable
std
::
vector
<
complex_t
>
m_ff00
,
m_ff01
,
m_ff10
,
m_ff11
;
//! cached polarized form factors
mutable
std
::
vector
<
Eigen
::
Matrix2cd
>
m_ff_pol
;
};
inline
cvector_t
IInterferenceFunctionStrategy
::
getQ
(
const
cvector_t
&
k_i
,
...
...
This diff is collapsed.
Click to expand it.
Core/Algorithms/src/IInterferenceFunctionStrategy.cpp
+
1
−
0
View file @
2c8f1fcc
...
...
@@ -104,6 +104,7 @@ void IInterferenceFunctionStrategy::calculateFormFactorLists(
(
*
it
)
->
mp_ff
->
setSpecularInfo
(
p_in_coeffs
,
P_out_coeffs
.
get
());
Eigen
::
Matrix2cd
ff_mat
=
(
*
it
)
->
mp_ff
->
evaluatePol
(
k_i
,
k_f_bin
,
alpha_f_bin
,
phi_f_bin
);
m_ff_pol
.
push_back
(
ff_mat
);
m_ff00
.
push_back
((
complex_t
)
ff_mat
(
0
,
0
));
m_ff01
.
push_back
((
complex_t
)
ff_mat
(
0
,
1
));
m_ff10
.
push_back
((
complex_t
)
ff_mat
(
1
,
0
));
...
...
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