Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
abl-mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inmcm-mirror
abl-mirror
Commits
ee577cae
Commit
ee577cae
authored
2 months ago
by
Debolskiy Andrey
Browse files
Options
Downloads
Patches
Plain Diff
update compiler keys and utils lib
parent
324f55c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.idea/vcs.xml
+0
-1
0 additions, 1 deletion
.idea/vcs.xml
CMakeLists.txt
+12
-36
12 additions, 36 deletions
CMakeLists.txt
with
12 additions
and
37 deletions
.idea/vcs.xml
+
0
−
1
View file @
ee577cae
...
...
@@ -2,7 +2,6 @@
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
""
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/cmake-build-debug/_deps/inmcm60_sfx-src"
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/cmake-build-debug/_deps/sfxlib-src"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
12
−
36
View file @
ee577cae
...
...
@@ -58,15 +58,6 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
endif
()
endif
()
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Release"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Intel"
)
target_compile_options
(
abl_lib
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -traceback -check all -ftrapuv -debug all >
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
target_compile_options
(
abl_lib
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -fbacktrace -ffpe-trap=zero,overflow,underflow >
)
endif
()
endif
()
if
(
WITH_TESTS
)
# RRTMG option
...
...
@@ -90,34 +81,36 @@ if (WITH_TESTS)
if
(
WITH_RRTMG
)
list
(
APPEND test_files src/rrtm_interface.f90
)
endif
()
#
gabls1 experiment
add_executable
(
gabls1 src/tests/gabls1.f90
#
make a utils library
set
(
abl_utils_files
src/config-utils.f90
src/scm_io_default.f90
src/scm_sfx_data.f90
)
add_library
(
abl_utils
${
abl_utils_files
}
)
target_link_libraries
(
abl_utils PRIVATE sfx_lib
)
#gabls1 experiment
add_executable
(
gabls1 src/tests/gabls1.f90
)
target_include_directories
(
gabls1 PUBLIC
${
CMAKE_BINARY_DIR
}
/modules/
)
target_link_libraries
(
gabls1 PRIVATE abl_lib
)
target_link_libraries
(
gabls1 PRIVATE sfx_lib
)
target_link_libraries
(
gabls1 PRIVATE abl_utils
)
target_link_libraries
(
gabls1 PRIVATE config_parser_F config_parser_CXX
)
#gabls2 experiment
add_executable
(
gabls2 src/tests/gabls2.f90
src/config-utils.f90
src/scm_io_default.f90
src/scm_sfx_data.f90
)
add_executable
(
gabls2 src/tests/gabls2.f90
)
target_include_directories
(
gabls2 PUBLIC
${
CMAKE_BINARY_DIR
}
/modules/
)
target_link_libraries
(
gabls2 PRIVATE abl_lib
)
target_link_libraries
(
gabls2 PRIVATE sfx_lib
)
target_link_libraries
(
gabls2 PRIVATE abl_utils
)
target_link_libraries
(
gabls2 PRIVATE config_parser_F config_parser_CXX
)
#cbl experiment
add_executable
(
cbl_exp src/tests/cbl_exp.f90
src/config-utils.f90
src/scm_io_default.f90
src/scm_sfx_data.f90
)
add_executable
(
cbl_exp src/tests/cbl_exp.f90
)
target_include_directories
(
cbl_exp PUBLIC
${
CMAKE_BINARY_DIR
}
/modules/
)
target_link_libraries
(
cbl_exp PRIVATE abl_lib
)
target_link_libraries
(
cbl_exp PRIVATE sfx_lib
)
target_link_libraries
(
cbl_exp PRIVATE abl_utils
)
target_link_libraries
(
cbl_exp PRIVATE config_parser_F config_parser_CXX
)
if
(
WITH_RRTMG
)
target_link_libraries
(
gabls1 PRIVATE rrtm
)
...
...
@@ -148,23 +141,6 @@ if (WITH_TESTS)
endif
()
endif
()
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Release"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Intel"
)
target_compile_options
(
gabls1
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -traceback -check all -ftrapuv -debug all >
)
target_compile_options
(
gabls2
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -traceback -check all -ftrapuv -debug all >
)
target_compile_options
(
cbl_exp
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -traceback -check all -ftrapuv -debug all >
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
target_compile_options
(
gabls1
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -fbacktrace -ffpe-trap=zero,overflow,underflow >
)
target_compile_options
(
gabls2
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -fbacktrace -ffpe-trap=zero,overflow,underflow >
)
target_compile_options
(
cbl_exp
PUBLIC $<$<COMPILE_LANGUAGE:Fortran>: -g -fbacktrace -ffpe-trap=zero,overflow,underflow >
)
endif
()
endif
()
endif
(
WITH_TESTS
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment