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
1f3bd853
Commit
1f3bd853
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
mv implementation to cpp file
parent
a5c199af
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
Sample/Scattering/FormFactorBAPol.cpp
+10
-0
10 additions, 0 deletions
Sample/Scattering/FormFactorBAPol.cpp
Sample/Scattering/FormFactorBAPol.h
+3
-6
3 additions, 6 deletions
Sample/Scattering/FormFactorBAPol.h
with
13 additions
and
6 deletions
Sample/Scattering/FormFactorBAPol.cpp
+
10
−
0
View file @
1f3bd853
...
...
@@ -46,6 +46,16 @@ Eigen::Matrix2cd FormFactorBAPol::evaluatePol(const WavevectorInfo& wavevectors)
return
result
;
}
void
FormFactorBAPol
::
setAmbientMaterial
(
const
Material
&
material
)
{
m_form_factor
->
setAmbientMaterial
(
material
);
}
double
FormFactorBAPol
::
volume
()
const
{
return
m_form_factor
->
volume
();
}
double
FormFactorBAPol
::
radialExtension
()
const
{
return
m_form_factor
->
radialExtension
();
}
double
FormFactorBAPol
::
bottomZ
(
const
IRotation
&
rotation
)
const
{
return
m_form_factor
->
bottomZ
(
rotation
);
...
...
This diff is collapsed.
Click to expand it.
Sample/Scattering/FormFactorBAPol.h
+
3
−
6
View file @
1f3bd853
...
...
@@ -32,10 +32,7 @@ public:
void
accept
(
INodeVisitor
*
visitor
)
const
override
{
visitor
->
visit
(
this
);
}
void
setAmbientMaterial
(
const
Material
&
material
)
override
{
m_form_factor
->
setAmbientMaterial
(
material
);
}
void
setAmbientMaterial
(
const
Material
&
material
)
override
;
//! Throws not-implemented exception
complex_t
evaluate
(
const
WavevectorInfo
&
wavevectors
)
const
override
;
...
...
@@ -43,9 +40,9 @@ public:
//! Calculates and returns a polarized form factor calculation in BA
Eigen
::
Matrix2cd
evaluatePol
(
const
WavevectorInfo
&
wavevectors
)
const
override
;
double
volume
()
const
override
{
return
m_form_factor
->
volume
();
}
double
volume
()
const
override
;
double
radialExtension
()
const
override
{
return
m_form_factor
->
radialExtension
();
}
double
radialExtension
()
const
override
;
double
bottomZ
(
const
IRotation
&
rotation
)
const
override
;
...
...
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