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
1dcb3b39
Commit
1dcb3b39
authored
2 months ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Changed M_LN10 to std::numbers::ln10
parent
eec00198
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!320
M214003/develop
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Info.cc
+2
-1
2 additions, 1 deletion
src/Info.cc
src/const.h
+0
-4
0 additions, 4 deletions
src/const.h
with
2 additions
and
5 deletions
src/Info.cc
+
2
−
1
View file @
1dcb3b39
...
...
@@ -13,6 +13,7 @@
*/
#include
<cdi.h>
#include
<numbers>
#include
"cdo_task.h"
#include
"cdo_options.h"
...
...
@@ -79,7 +80,7 @@ compute_level(double min, double max, double (&level)[10])
if
(
is_not_equal
(
step
,
0.0
))
{
auto
a
=
std
::
pow
(
10.0
,
std
::
floor
(
std
::
log
(
step
)
/
M_LN
10
));
auto
a
=
std
::
pow
(
10.0
,
std
::
floor
(
std
::
log
(
step
)
/
std
::
numbers
::
ln
10
));
auto
b
=
step
/
a
;
// clang-format off
...
...
This diff is collapsed.
Click to expand it.
src/const.h
+
0
−
4
View file @
1dcb3b39
...
...
@@ -15,10 +15,6 @@ constexpr double MAX_T = 400.;
constexpr
double
MIN_Q
=
0.0
;
constexpr
double
MAX_Q
=
0.1
;
#ifndef M_LN10
#define M_LN10 2.30258509299404568401799145468436421
/* log_e 10 */
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288
/* pi */
#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