From b0f9afab25bb28e4198f65695ce7c1307a12fc91 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Wed, 15 Feb 2023 09:54:45 -0800 Subject: [PATCH] fixed some differences in naming convention between music1 and monofonic --- src/plugins/transfer_CLASS.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/transfer_CLASS.cc b/src/plugins/transfer_CLASS.cc index fbf5c40..4873a8c 100644 --- a/src/plugins/transfer_CLASS.cc +++ b/src/plugins/transfer_CLASS.cc @@ -225,9 +225,10 @@ public: } // determine highest k we will need for the resolution selected - double lbox = pcf_->get_value("setup", "BoxLength"); - int nres = pcf_->get_value("setup", "GridRes"); - kmax_ = std::max(20.0, 2.0 * M_PI / lbox * nres / 2 * sqrt(3) * 2.0); // 120% of spatial diagonal, or k=10h Mpc-1 + double lbox = pcf_->get_value("setup", "boxlength"); + int levelmax = pcf_->get_value("setup", "levelmax"); + double dx = lbox / (1<init_ClassEngine();