From d0aae46a9038f1db1a48c627da5d606af8413ce8 Mon Sep 17 00:00:00 2001 From: mladenivkovic <mladen.ivkovic@hotmail.com> Date: Wed, 9 Sep 2020 14:04:14 +0200 Subject: [PATCH] added temporary early exits --- examples/main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/main.c b/examples/main.c index 2ebfe8f3f9..1f6e3c9b15 100644 --- a/examples/main.c +++ b/examples/main.c @@ -579,7 +579,23 @@ int main(int argc, char *argv[]) { "Error: Cannot use radiative transfer without stars, --stars must be " "chosen\n"); } + /* Temporary, this dependency will be removed later */ + if (with_rt && !with_feedback) { + error( + "Error: Cannot use radiative transfer without feedback for now," + " --feedback must be chosen\n"); + } + +#ifndef GADGET2_SPH + /* Temporary, this dependency will be removed later */ + error("Error: Cannot use radiative transfer without gadget2-sph for now\n"); +#endif +#ifndef STARS_GEAR + /* Temporary, this dependency will be removed later */ + error( + "Error: Cannot use radiative transfer without GEAR star model for now\n"); #endif +#endif /* idfef RT_NONE */ /* Let's pin the main thread, now we know if affinity will be used. */ #if defined(HAVE_SETAFFINITY) && defined(HAVE_LIBNUMA) && defined(_GNU_SOURCE) -- GitLab