Skip to content

Commit

Permalink
rust: Activate polarized ad
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Oct 7, 2024
1 parent 02fffb9 commit fcbdc92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/lha_bot_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
lhabench:
name: LHA paper Benchmarks
runs-on: ubuntu-latest
# container:
# image: ghcr.io/nnpdf/bench-evol:v2
# credentials:
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
Expand All @@ -30,9 +25,6 @@ jobs:

steps:
- uses: actions/checkout@v2
# with:
# # tags needed for dynamic versioning
# fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }} 🐍
id: setup-python
uses: actions/setup-python@v5
Expand All @@ -53,5 +45,4 @@ jobs:
./rustify.sh
poe compile
poe lha -m "nnlo and sv"
# TODO wait for polarized to reactivate
# poe lha -m "ffns_pol and sv"
poe lha -m "ffns_pol and sv"
21 changes: 10 additions & 11 deletions crates/eko/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,21 @@ pub unsafe extern "C" fn rust_quad_ker_qcd(u: f64, rargs: *mut c_void) -> f64 {
);
}
} else if is_singlet {
let gamma_singlet_qcd = match args.is_polarized {
true => ekore::anomalous_dimensions::polarized::spacelike::gamma_singlet_qcd,
false => ekore::anomalous_dimensions::unpolarized::spacelike::gamma_singlet_qcd,
};
raw = unravel(
ekore::anomalous_dimensions::unpolarized::spacelike::gamma_singlet_qcd(
args.order_qcd,
&mut c,
args.nf,
),
gamma_singlet_qcd(args.order_qcd, &mut c, args.nf),
args.order_qcd,
);
} else {
// we can not do 1D
let res = ekore::anomalous_dimensions::unpolarized::spacelike::gamma_ns_qcd(
args.order_qcd,
args.mode0,
&mut c,
args.nf,
);
let gamma_ns_qcd = match args.is_polarized {
true => ekore::anomalous_dimensions::polarized::spacelike::gamma_ns_qcd,
false => ekore::anomalous_dimensions::unpolarized::spacelike::gamma_ns_qcd,
};
let res = gamma_ns_qcd(args.order_qcd, args.mode0, &mut c, args.nf);
for el in res.iter().take(args.order_qcd) {
raw.re.push(el.re);
raw.im.push(el.im);
Expand Down

0 comments on commit fcbdc92

Please sign in to comment.