Commit 87bc726e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

update to gotm-4.9.0

parent 6dc5d603
Pipeline #2391 failed with stage
in 15 seconds
cmake_minimum_required(VERSION 2.6)
project(gotm Fortran)
set(SRC
src/util/adv_center.F90
src/util/diff_center.F90
src/util/eqstate.F90
src/util/lagrange.F90
src/util/ode_solvers.F90
src/util/tridiagonal.F90
src/util/convert_fluxes.F90
src/util/diff_face.F90
src/util/gridinterpol.F90
src/util/time.F90
src/util/util.F90
src/turbulence/algebraiclength.F90
src/turbulence/dissipationeq.F90
src/turbulence/alpha_mnb.F90
src/turbulence/epsbalgebraic.F90
src/turbulence/potentialml.F90
src/turbulence/cmue_a.F90
src/turbulence/fk_craig.F90
src/turbulence/production.F90
src/turbulence/cmue_b.F90
src/turbulence/genericeq.F90
src/turbulence/q2over2eq.F90
src/turbulence/cmue_c.F90
src/turbulence/gotm_lib_version.F90
src/turbulence/r_ratio.F90
src/turbulence/cmue_d.F90
src/turbulence/internal_wave.F90
src/turbulence/tkealgebraic.F90
src/turbulence/cmue_ma.F90
src/turbulence/ispralength.F90
src/turbulence/tkeeq.F90
src/turbulence/cmue_rf.F90
src/turbulence/kbalgebraic.F90
src/turbulence/turbulence.F90
src/turbulence/cmue_sg.F90
src/turbulence/kbeq.F90
src/turbulence/variances.F90
src/turbulence/compute_cpsi3.F90
src/turbulence/kpp.F90
src/turbulence/compute_rist.F90
src/turbulence/lengthscaleeq.F90
)
add_library(gotm ${SRC})
include_directories(include)
set_target_properties(gotm PROPERTIES COMPILE_FLAGS "-DGFORTRAN -DNETCDF_FMT -DSEAGRASS -DBIO -DPRODUCTION -DFORTRAN95 -DREAL_4B=real\\(4\\) -O3 -ffree-form -std=f95 -fPIC")
......@@ -36,15 +36,15 @@ option(ENABLE_GOTM "Enable GOTM" OFF)
if(ENABLE_GOTM)
include(ExternalProject)
ExternalProject_Add(
gotm-4.0.0
URL http://www.gotm.net/src/v4.0/gotm-4.0.tar.gz
URL_MD5 a2a430d6bff7dc8d283f97ed715ffce1
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists-gotm.txt" <SOURCE_DIR>/CMakeLists.txt
gotm-4.9.0
URL https://github.com/gotm-model/code/archive/v4.9.0.zip
URL_MD5 472adb69fbb779c57a53ab4ef0630302
INSTALL_COMMAND ""
PREFIX gotm
SOURCE_SUBDIR src
BINARY_DIR gotm/build
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DGOTM_USE_FABM=0 -DGOTM_USE_NETCDF=0 -DCMAKE_Fortran_FLAGS=-fPIC
BUILD_COMMAND make turbulence
)
enable_language(Fortran)
include(FortranCInterface)
......@@ -64,7 +64,8 @@ if(ENABLE_GOTM)
#endif(NOT ${FortranCInterface_GLOBAL_FOUND})
add_definitions("-DHAVE_GOTM")
message("slim3d configured with Gotm")
list(APPEND LIBS "${CMAKE_CURRENT_BINARY_DIR}/gotm/build/libgotm.a")
list(APPEND LIBS "${CMAKE_CURRENT_BINARY_DIR}/gotm/build/libutil.a")
list(APPEND LIBS "${CMAKE_CURRENT_BINARY_DIR}/gotm/build/libturbulence.a")
list(APPEND LIBS "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
endif(ENABLE_GOTM)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment