-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/ccpp
- Loading branch information
Showing
13 changed files
with
143 additions
and
72 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
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
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
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
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 |
---|---|---|
@@ -1,21 +1,26 @@ | ||
set(_srcs | ||
charpak_mod.F90 | ||
chemstate_mod.F90 | ||
cmn_size_mod.F90 | ||
config_mod.F90 | ||
config_opt_mod.F90 | ||
constants.F90 | ||
diagstate_mod.F90 | ||
emisstate_mod.F90 | ||
error_mod.F90 | ||
gridstate_mod.F90 | ||
init_mod.F90 | ||
metstate_mod.F90 | ||
precision_mod.F90 | ||
qfyaml_mod.F90 | ||
species_mod.F90 | ||
state_mod.F90) | ||
set( | ||
_srcs | ||
charpak_mod.F90 | ||
chemstate_mod.F90 | ||
cmn_size_mod.F90 | ||
config_mod.F90 | ||
config_opt_mod.F90 | ||
constants.F90 | ||
diagstate_mod.F90 | ||
emisstate_mod.F90 | ||
error_mod.F90 | ||
gridstate_mod.F90 | ||
init_mod.F90 | ||
metstate_mod.F90 | ||
precision_mod.F90 | ||
qfyaml_mod.F90 | ||
species_mod.F90 | ||
state_mod.F90 | ||
) | ||
|
||
add_library(CATChem_core ${_srcs}) | ||
set_target_properties(CATChem_core PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
CATChem_core | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
target_compile_options(CATChem_core PRIVATE ${_catchem_compiler_options}) |
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
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
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
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
set(_srcs CCPr_Dust_Mod.F90 ccpr_dust_common_mod.F90 ccpr_scheme_fengsha_mod.F90 | ||
ccpr_scheme_ginoux_mod.F90) | ||
set( | ||
_srcs | ||
CCPr_Dust_Mod.F90 | ||
ccpr_dust_common_mod.F90 | ||
ccpr_scheme_fengsha_mod.F90 | ||
ccpr_scheme_ginoux_mod.F90 | ||
) | ||
|
||
set(_lib CATChem_process_dust) | ||
|
||
add_library(${_lib} ${_srcs}) | ||
target_link_libraries(${_lib} PUBLIC CATChem_core) | ||
set_target_properties(${_lib} PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
${_lib} | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
set(_srcs CCPr_Plumerise_Mod.F90 CCPr_Scheme_Briggs_mod.F90 CCPr_Scheme_Sofiev_mod.F90) | ||
set( | ||
_srcs | ||
CCPr_Plumerise_Mod.F90 | ||
CCPr_Scheme_Briggs_mod.F90 | ||
CCPr_Scheme_Sofiev_mod.F90 | ||
) | ||
|
||
set(_lib CATChem_process_plumerise) | ||
|
||
add_library(${_lib} ${_srcs}) | ||
target_link_libraries(${_lib} PUBLIC CATChem_core) | ||
set_target_properties(${_lib} PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
${_lib} | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) |
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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
set(_srcs CCPr_SeaSalt_Mod.F90 ccpr_seasalt_common_mod.F90 ccpr_scheme_gong03_mod.F90 | ||
ccpr_scheme_gong97_mod.F90 ccpr_scheme_geos12_mod.F90) | ||
set( | ||
_srcs | ||
CCPr_SeaSalt_Mod.F90 | ||
ccpr_seasalt_common_mod.F90 | ||
ccpr_scheme_gong03_mod.F90 | ||
ccpr_scheme_gong97_mod.F90 | ||
ccpr_scheme_geos12_mod.F90 | ||
) | ||
|
||
set(_lib CATChem_process_seasalt) | ||
|
||
add_library(${_lib} ${_srcs}) | ||
target_link_libraries(${_lib} PUBLIC CATChem_core) | ||
set_target_properties(${_lib} PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
${_lib} | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) |
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 |
---|---|---|
@@ -1,70 +1,94 @@ | ||
include(CTest) | ||
|
||
add_compile_options(${_catchem_compiler_options}) | ||
|
||
add_library(testing testing_mod.f90) | ||
target_link_libraries(testing PRIVATE CATChem_core) | ||
set_target_properties(testing PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
|
||
enable_testing() | ||
set_target_properties( | ||
testing | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_executable(test_main test_main.F90) | ||
target_link_libraries(test_main PRIVATE CATChem_core) | ||
target_link_libraries(test_main PRIVATE CATChem) | ||
target_link_libraries(test_main PRIVATE testing) | ||
set_target_properties(test_main PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
test_main | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_test( | ||
NAME test_main | ||
COMMAND test_main | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_test( | ||
NAME test_main_missing_config | ||
COMMAND test_main | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
set_property(TEST test_main_missing_config PROPERTY WILL_FAIL TRUE) | ||
|
||
add_executable(test_dust test_dust.f90) | ||
target_link_libraries(test_dust PRIVATE CATChem_core) | ||
target_link_libraries(test_dust PRIVATE CATChem) | ||
target_link_libraries(test_dust PRIVATE CATChem_process_dust) | ||
target_link_libraries(test_dust PRIVATE testing) | ||
set_target_properties(test_dust PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
test_dust | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_test( | ||
NAME test_ccpr_dust | ||
COMMAND test_dust | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_executable(test_seasalt test_seasalt.F90) | ||
target_link_libraries(test_seasalt PRIVATE CATChem_core) | ||
target_link_libraries(test_seasalt PRIVATE CATChem) | ||
target_link_libraries(test_seasalt PRIVATE CATChem_process_seasalt) | ||
target_link_libraries(test_seasalt PRIVATE testing) | ||
set_target_properties(test_seasalt PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
test_seasalt | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_test( | ||
NAME test_ccpr_seasalt | ||
COMMAND test_seasalt | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_executable(test_prise test_plumerise.F90) | ||
target_link_libraries(test_prise PRIVATE CATChem_core) | ||
target_link_libraries(test_prise PRIVATE CATChem) | ||
target_link_libraries(test_prise PRIVATE testing) | ||
set_target_properties(test_prise PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
test_prise | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_test( | ||
NAME test_plumerise | ||
COMMAND test_prise | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_executable(test_drydep test_drydep.f90) | ||
target_link_libraries(test_drydep PRIVATE CATChem_core) | ||
target_link_libraries(test_drydep PRIVATE CATChem) | ||
target_link_libraries(test_drydep PRIVATE testing) | ||
set_target_properties(test_drydep PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include) | ||
set_target_properties( | ||
test_drydep | ||
PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include | ||
) | ||
|
||
add_test( | ||
NAME test_drydep | ||
COMMAND test_drydep | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
Oops, something went wrong.