From c796fd6b304d44f4db8070865720d4e90939e938 Mon Sep 17 00:00:00 2001 From: Anatole Storck Date: Sun, 6 Oct 2024 22:12:43 +0100 Subject: [PATCH] added warning for potential splicing with the 'ZELDOVICH_GRADIENT_FOURIER_SPACE' flag activated --- genetIC/src/ic.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/genetIC/src/ic.hpp b/genetIC/src/ic.hpp index ffa82665..6f280e69 100644 --- a/genetIC/src/ic.hpp +++ b/genetIC/src/ic.hpp @@ -1761,6 +1761,9 @@ class ICGenerator { } virtual void splicePotential(size_t newSeed) { + #ifdef ZELDOVICH_GRADIENT_FOURIER_SPACE + logging::entry(logging::level::warning) << "WARNING: The code was compiled with the 'ZELDOVICH_GRADIENT_FOURIER_SPACE' flag activated, but the potential field is being spliced." << std::endl; + #endif spliceWithFactor(newSeed, -2); }