Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ project(

get_directory_property(hasParent PARENT_DIRECTORY)
if(hasParent)
# Unset flags that come from UFS because they (-r8/-r4) conflict
# with Ww3
# Unset flags that come from Parent (ie UFS or other coupled build)
# for potential (-r8/-r4) conflict
set(CMAKE_Fortran_FLAGS "")
set(CMAKE_C_FLAGS "")
remove_definitions(-DDEBUG)
endif()

set(MULTI_ESMF OFF CACHE BOOL "Build ww3_multi_esmf library")
Expand Down
16 changes: 9 additions & 7 deletions regtests/bin/run_cmake_test
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,15 @@ fi

mkdir -p $path_w

cd $path_w

if [ $stub ] && [ -f finished ]
then
echo " Test already finished, skipping ..."
echo ' '
exit 0
fi

if [ $multi -eq 0 ] && [ $coupl = "OASIS" ]
then
ww3_dir=${path_s}/..
Expand Down Expand Up @@ -547,13 +556,6 @@ echo " Input directory: $path_i"
echo " Switch file: $file_c"
echo ' '

if [ $stub ] && [ -f finished ]
then
echo " Test already finished, skipping ..."
echo ' '
exit 0
fi

# 3.b2 Preprocess cdl files into nc files ----------------------------------- #

for f in $(find $path_i/ -type f -name "*.cdl")
Expand Down