From 9b33cf844317e40436c931cd7b77532915f5e2b0 Mon Sep 17 00:00:00 2001 From: Knut Date: Mon, 17 Jun 2024 11:17:59 +0200 Subject: [PATCH] fatal error on turb_method=100 without cvmix compilation --- src/gotm/gotm.F90 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gotm/gotm.F90 b/src/gotm/gotm.F90 index c05aa480..187bd0a0 100644 --- a/src/gotm/gotm.F90 +++ b/src/gotm/gotm.F90 @@ -333,6 +333,11 @@ subroutine initialize_gotm() branch => settings_store%get_child('cvmix') call init_cvmix(branch) #else + if (turb_method .eq. 100) then + FATAL 'turb_method=100 requires compilation with CVMix.' + LEVEL3 'Rerun cmake with -DGOTM_USE_CVMIX=ON, then rebuild GOTM.' + stop 1 + end if if (settings_store%ignore('cvmix')) then LEVEL3 'WARNING: cvmix section in ' // trim(yaml_file) // ' is ignored because GOTM was compiled without CVMix.' LEVEL3 'To change this, specify -DGOTM_USE_CVMIX=ON when running cmake, then rebuild GOTM.'