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
75b55554
Commit
75b55554
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ditto
parent
1c6c103c
No related branches found
No related tags found
1 merge request
!145
new class SliceStack
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sample/Specular/SpecularMagneticNCStrategy.cpp
+7
-8
7 additions, 8 deletions
Sample/Specular/SpecularMagneticNCStrategy.cpp
Sample/Specular/SpecularMagneticTanhStrategy.cpp
+3
-0
3 additions, 0 deletions
Sample/Specular/SpecularMagneticTanhStrategy.cpp
with
10 additions
and
8 deletions
Sample/Specular/SpecularMagneticNCStrategy.cpp
+
7
−
8
View file @
75b55554
...
@@ -15,9 +15,15 @@
...
@@ -15,9 +15,15 @@
#include
"Sample/Specular/SpecularMagneticNCStrategy.h"
#include
"Sample/Specular/SpecularMagneticNCStrategy.h"
namespace
{
namespace
{
complex_t
checkForUnderflow
(
complex_t
val
);
complex_t
checkForUnderflow
(
complex_t
val
)
{
return
std
::
abs
(
val
.
imag
())
<
1e-80
&&
val
.
real
()
<
0
?
complex_t
(
val
.
real
(),
1e-40
)
:
val
;
}
}
}
// namespace
std
::
pair
<
Eigen
::
Matrix2cd
,
Eigen
::
Matrix2cd
>
SpecularMagneticNCStrategy
::
computeRoughnessMatrices
(
std
::
pair
<
Eigen
::
Matrix2cd
,
Eigen
::
Matrix2cd
>
SpecularMagneticNCStrategy
::
computeRoughnessMatrices
(
const
MatrixRTCoefficients
&
coeff_i
,
const
MatrixRTCoefficients
&
coeff_i1
,
double
sigma
)
const
const
MatrixRTCoefficients
&
coeff_i
,
const
MatrixRTCoefficients
&
coeff_i1
,
double
sigma
)
const
{
{
...
@@ -82,10 +88,3 @@ SpecularMagneticNCStrategy::computeBackwardsSubmatrices(const MatrixRTCoefficien
...
@@ -82,10 +88,3 @@ SpecularMagneticNCStrategy::computeBackwardsSubmatrices(const MatrixRTCoefficien
return
{
mp
,
mm
};
return
{
mp
,
mm
};
}
}
namespace
{
complex_t
checkForUnderflow
(
complex_t
val
)
{
return
std
::
abs
(
val
.
imag
())
<
1e-80
&&
val
.
real
()
<
0
?
complex_t
(
val
.
real
(),
1e-40
)
:
val
;
}
}
// namespace
This diff is collapsed.
Click to expand it.
Sample/Specular/SpecularMagneticTanhStrategy.cpp
+
3
−
0
View file @
75b55554
...
@@ -17,9 +17,12 @@
...
@@ -17,9 +17,12 @@
#include
"Base/Math/Functions.h"
#include
"Base/Math/Functions.h"
namespace
{
namespace
{
const
double
pi2_15
=
std
::
pow
(
M_PI_2
,
1.5
);
const
double
pi2_15
=
std
::
pow
(
M_PI_2
,
1.5
);
}
// namespace
}
// namespace
Eigen
::
Matrix2cd
Eigen
::
Matrix2cd
SpecularMagneticTanhStrategy
::
computeRoughnessMatrix
(
const
MatrixRTCoefficients
&
coeff
,
SpecularMagneticTanhStrategy
::
computeRoughnessMatrix
(
const
MatrixRTCoefficients
&
coeff
,
double
sigma
,
bool
inverse
)
const
double
sigma
,
bool
inverse
)
const
...
...
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