Skip to content

Commit

Permalink
Fix scales of FK-tables
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Oct 28, 2024
1 parent 0169688 commit 115de08
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions pineappl/src/grid.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Module containing all traits and supporting structures for grids.
use super::bin::{BinInfo, BinLimits, BinRemapper};
use super::boc::{Channel, Kinematics, Order, Scales};
use super::boc::{Channel, Kinematics, Order, ScaleFuncForm, Scales};
use super::convolutions::{Conv, ConvType, ConvolutionCache};
use super::empty_subgrid::EmptySubgridV1;
use super::evolution::{self, AlphasTable, EvolveInfo, OperatorSliceInfo};
Expand Down Expand Up @@ -1322,6 +1322,17 @@ impl Grid {
alphas_table,
)?;

let fac = if matches!(self.scales().fac, ScaleFuncForm::NoScale) {
ScaleFuncForm::NoScale
} else {
ScaleFuncForm::Scale(0)
};
let frg = if matches!(self.scales().frg, ScaleFuncForm::NoScale) {
ScaleFuncForm::NoScale
} else {
ScaleFuncForm::Scale(0)
};

let rhs = Self {
subgrids,
channels,
Expand All @@ -1334,8 +1345,12 @@ impl Grid {
more_members: self.more_members.clone(),
kinematics: self.kinematics.clone(),
remapper: self.remapper.clone(),
// TODO: is this correct?
scales: self.scales.clone(),
scales: Scales {
// FK-tables have their renormalization scales burnt in
ren: ScaleFuncForm::NoScale,
fac,
frg,
},
};

if let Some(lhs) = &mut lhs {
Expand Down

0 comments on commit 115de08

Please sign in to comment.