-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake support + restructure code + remove makefiles (#1)
Add CMake support, move all source code under the the src folder and remove existing makefiles. Add support for creating a TEB library to allow TEB functions to be easily called in from external models.
- Loading branch information
Showing
183 changed files
with
408 additions
and
1,946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Build | ||
build/ | ||
|
||
#macOS | ||
.DS_Store | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# TEB test output files | ||
tests/CAPITOUL/output/*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(TEB Fortran) | ||
|
||
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod) | ||
|
||
set(src_driver | ||
src/driver/abor1_sfx.F90 | ||
src/driver/add_forecast_to_date_surf.F90 | ||
src/driver/close_file.F90 | ||
src/driver/close_file_asc.F90 | ||
src/driver/driver.F90 | ||
src/driver/modd_arch.F90 | ||
src/driver/modd_forc_atm.F90 | ||
src/driver/modd_reprod_oper.F90 | ||
src/driver/modd_surf_conf.F90 | ||
src/driver/mode_char2real.F90 | ||
src/driver/ol_alloc_atm.F90 | ||
src/driver/ol_read_atm.F90 | ||
src/driver/ol_read_atm_ascii.F90 | ||
src/driver/ol_time_interp_atm.F90 | ||
src/driver/open_close_bin_asc_forc.F90 | ||
src/driver/read_surf_atm.F90 | ||
) | ||
|
||
file(GLOB_RECURSE src_proxi_SVAT "src/proxi_SVAT/*") | ||
file(GLOB_RECURSE src_solar "src/solar/*") | ||
file(GLOB_RECURSE src_struct "src/struct/*") | ||
file(GLOB_RECURSE src_teb "src/teb/*") | ||
|
||
add_library(teb STATIC | ||
${src_driver} | ||
${src_proxi_SVAT} | ||
${src_solar} | ||
${src_struct} | ||
${src_teb} | ||
) | ||
|
||
add_executable(driver src/driver/driver.F90) | ||
target_link_libraries(driver teb) | ||
|
||
target_include_directories(teb | ||
INTERFACE ${CMAKE_Fortran_MODULE_DIRECTORY} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.