Commit 332d0fc5 authored by vbertone's avatar vbertone
Browse files

Speeding up APFEL++ evolution

parent 2fd33ad4
...@@ -106,7 +106,7 @@ PartonDistribution GPDEvolutionApfel::compute(GPDModule* pGPDModule, const GPDTy ...@@ -106,7 +106,7 @@ PartonDistribution GPDEvolutionApfel::compute(GPDModule* pGPDModule, const GPDTy
// Set initial scale // Set initial scale
m_MuF2_ref = pGPDModule->getMuF2Ref(); 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. // Get thresholds. Set to zero whatever is below one.
std::vector<double> thresholds; std::vector<double> thresholds;
...@@ -284,17 +284,21 @@ GPDEvolutionApfel::GPDEvolutionApfel(const GPDEvolutionApfel &other) : ...@@ -284,17 +284,21 @@ GPDEvolutionApfel::GPDEvolutionApfel(const GPDEvolutionApfel &other) :
void GPDEvolutionApfel::initModule() { void GPDEvolutionApfel::initModule() {
GPDEvolutionModule::initModule(); GPDEvolutionModule::initModule();
// Silence APFEL if (m_xi != m_xi_prev)
apfel::SetVerbosityLevel(0); {
// Silence APFEL
apfel::SetVerbosityLevel(0);
// Setup APFEL++ x-space // Setup APFEL++ x-space
std::vector<apfel::SubGrid> vsg; std::vector<apfel::SubGrid> vsg;
for (int i = 0; i < (int) m_subgridNodes.size(); i++) for (int i = 0; i < (int) m_subgridNodes.size(); i++)
vsg.push_back(apfel::SubGrid{m_subgridNodes[i], m_subgridLowerBounds[i], m_subgridInterDegrees[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}); m_g = std::shared_ptr<apfel::Grid> (new apfel::Grid{vsg});
// Running coupling // Running coupling
m_as = [=] (double const& mu) -> double{ return getRunningAlphaStrongModule()->compute(mu * mu); }; m_as = [=] (double const& mu) -> double{ return getRunningAlphaStrongModule()->compute(mu * mu); };
}
} }
void GPDEvolutionApfel::isModuleWellConfigured() { void GPDEvolutionApfel::isModuleWellConfigured() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment