1 Star 0 Fork 0

HOPE-NWP/hope-init

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
Zhou Lilong 提交于 2021-09-24 02:07 . Update
cmake_minimum_required(VERSION 3.0.0)
project(hope-init LANGUAGES Fortran)
if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-none -ffpe-trap=invalid,zero,overflow")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O0 -fcheck=all -g -fbacktrace")
else ()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Ofast")
endif ()
# FIXME: OpenMP causes sigmentation faults.
# set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fopenmp")
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -no-wrap-margin -O0 -check bounds -g -traceback -mkl=sequential")
else ()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -no-wrap-margin -O3 -qopenmp -align array64byte -mkl=sequential")
endif ()
endif ()
find_package(MPI)
add_subdirectory(lib/container)
add_subdirectory(lib/string)
add_subdirectory(lib/flogger)
add_subdirectory(lib/fiona)
add_subdirectory(lib/spark)
set(sources
src/constants_mod.F90
src/params_mod.F90
src/topo_mod.F90
src/geog_data_mod.F90
src/math_mod.F90
src/hope_init_mod.F90
src/hope_init.F90
src/weno_coef_mod.F90
src/recon_mod.F90
src/operators_mod.F90
)
add_executable(hope_init.exe ${sources})
target_link_libraries(hope_init.exe fortran_container fortran_string flogger fiona spark)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hope-nwp/hope-init.git
[email protected]:hope-nwp/hope-init.git
hope-nwp
hope-init
hope-init
master

搜索帮助