Skip to content

Commit

Permalink
fatal error on turb_method=100 without cvmix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
knutaros committed Jun 17, 2024
1 parent 6ea1665 commit 9b33cf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gotm/gotm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down

0 comments on commit 9b33cf8

Please sign in to comment.