Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
partons
Commits
332d0fc5
Commit
332d0fc5
authored
Apr 09, 2022
by
vbertone
Browse files
Speeding up APFEL++ evolution
parent
2fd33ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partons/modules/evolution/gpd/GPDEvolutionApfel.cpp
View file @
332d0fc5
...
...
@@ -106,7 +106,7 @@ PartonDistribution GPDEvolutionApfel::compute(GPDModule* pGPDModule, const GPDTy
// Set initial scale
m_MuF2_ref
=
pGPDModule
->
getMuF2Ref
();
//
if (m_xi != m_xi_prev)
if
(
m_xi
!=
m_xi_prev
)
{
// Get thresholds. Set to zero whatever is below one.
std
::
vector
<
double
>
thresholds
;
...
...
@@ -284,17 +284,21 @@ GPDEvolutionApfel::GPDEvolutionApfel(const GPDEvolutionApfel &other) :
void
GPDEvolutionApfel
::
initModule
()
{
GPDEvolutionModule
::
initModule
();
// Silence APFEL
apfel
::
SetVerbosityLevel
(
0
);
if
(
m_xi
!=
m_xi_prev
)
{
// Silence APFEL
apfel
::
SetVerbosityLevel
(
0
);
// Setup APFEL++ x-space
std
::
vector
<
apfel
::
SubGrid
>
vsg
;
for
(
int
i
=
0
;
i
<
(
int
)
m_subgridNodes
.
size
();
i
++
)
vsg
.
push_back
(
apfel
::
SubGrid
{
m_subgridNodes
[
i
],
m_subgridLowerBounds
[
i
],
m_subgridInterDegrees
[
i
]});
m_g
=
std
::
shared_ptr
<
apfel
::
Grid
>
(
new
apfel
::
Grid
{
vsg
});
// Setup APFEL++ x-space
std
::
vector
<
apfel
::
SubGrid
>
vsg
;
for
(
int
i
=
0
;
i
<
(
int
)
m_subgridNodes
.
size
();
i
++
)
vsg
.
push_back
(
apfel
::
SubGrid
{
m_subgridNodes
[
i
],
m_subgridLowerBounds
[
i
],
m_subgridInterDegrees
[
i
]});
m_g
=
std
::
shared_ptr
<
apfel
::
Grid
>
(
new
apfel
::
Grid
{
vsg
});
// Running coupling
m_as
=
[
=
]
(
double
const
&
mu
)
->
double
{
return
getRunningAlphaStrongModule
()
->
compute
(
mu
*
mu
);
};
// Running coupling
m_as
=
[
=
]
(
double
const
&
mu
)
->
double
{
return
getRunningAlphaStrongModule
()
->
compute
(
mu
*
mu
);
};
}
}
void
GPDEvolutionApfel
::
isModuleWellConfigured
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment