Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
mpim-sw
cdo
Commits
4a3101d7
Commit
4a3101d7
authored
11 months ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added cpp_lib.h
parent
a03d4d78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!225
M214003/develop
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/CMakeLists.txt
src/Makefile.am
+1
-0
1 addition, 0 deletions
src/Makefile.am
src/cdo.cc
+6
-0
6 additions, 0 deletions
src/cdo.cc
src/cdo_features.cc
+1
-0
1 addition, 0 deletions
src/cdo_features.cc
src/cpp_lib.h
+16
-0
16 additions, 0 deletions
src/cpp_lib.h
with
25 additions
and
0 deletions
src/CMakeLists.txt
+
1
−
0
View file @
4a3101d7
...
...
@@ -80,6 +80,7 @@ list( APPEND cdolib_src_files
constants.h
convert_units.cc
convert_units.h
cpp_lib.h
cthread_debug.cc
cthread_debug.h
custom_modules.cc
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
1
−
0
View file @
4a3101d7
...
...
@@ -82,6 +82,7 @@ libcdo_la_SOURCES = after_dvtrans.cc \
constants.h
\
convert_units.cc
\
convert_units.h
\
cpp_lib.h
\
cthread_debug.cc
\
cthread_debug.h
\
custom_modules.cc
\
...
...
This diff is collapsed.
Click to expand it.
src/cdo.cc
+
6
−
0
View file @
4a3101d7
...
...
@@ -36,6 +36,7 @@
#include
<cdi.h>
#include
"cpp_lib.h"
#include
"cdo_getopt.h"
#include
"cdo_rlimit.h"
#include
<mpim_grid.h>
...
...
@@ -176,6 +177,11 @@ cdo_version()
#ifdef CXX_VERSION
fprintf
(
fp
,
"CXX version : %s
\n
"
,
CXX_VERSION
);
#endif
fprintf
(
fp
,
"CXX library :"
);
#ifdef HAVE_RANGES_ZIP
fprintf
(
fp
,
" ranges_zip"
);
#endif
fprintf
(
fp
,
"
\n
"
);
#endif
#ifdef C_COMPILER
fprintf
(
fp
,
"C Compiler: %s
\n
"
,
C_COMPILER
);
...
...
This diff is collapsed.
Click to expand it.
src/cdo_features.cc
+
1
−
0
View file @
4a3101d7
...
...
@@ -139,6 +139,7 @@ static std::map<std::string, std::pair<std::string, bool>> configMap
{
"has-threads"
,
{
"PTHREADS"
,
have_threads
}
},
{
"has-wordexp"
,
{
"WORDEXP"
,
have_wordexp
}
},
{
"has-hirlam_extensions"
,
{
"HIRLAM_EXTENSIONS"
,
has_hirlam_extensions
}
}
};
void
cdo_print_features
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
src/cpp_lib.h
0 → 100644
+
16
−
0
View file @
4a3101d7
/*
This file is part of CDO. CDO is a collection of Operators to manipulate and analyse Climate model Data.
Author: Uwe Schulzweida
*/
#ifndef CPP_LIB_H
#define CPP_LIB_H
#include
<version>
#if __cpp_lib_ranges_zip >= 202110L
#define HAVE_RANGES_ZIP 1
#endif
#endif
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