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
005ea5ea
Commit
005ea5ea
authored
3 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Trendarith.cc: Check that memType of field1 and field4 are the same.
parent
bffa0c3c
No related branches found
No related tags found
1 merge request
!4
Runner for levante
Pipeline
#16965
passed
3 years ago
Stage: build
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Trendarith.cc
+2
-2
2 additions, 2 deletions
src/Trendarith.cc
with
2 additions
and
2 deletions
src/Trendarith.cc
+
2
−
2
View file @
005ea5ea
...
...
@@ -33,7 +33,7 @@ add_trend(double zj, const Varray<T> &v1, const Varray<double> &v2, const Varray
static
void
add_trend
(
double
zj
,
const
Field
&
field1
,
const
Field
&
field2
,
const
Field
&
field3
,
Field
&
field4
)
{
if
(
field1
.
memType
!=
field
2
.
memType
)
cdo_abort
(
"Interal error, memType of field1 and field2 differ!"
);
if
(
field1
.
memType
!=
field
4
.
memType
)
cdo_abort
(
"Interal error, memType of field1 and field2 differ!"
);
if
(
field1
.
memType
==
MemType
::
Float
)
add_trend
(
zj
,
field1
.
vec_f
,
field2
.
vec_d
,
field3
.
vec_d
,
field4
.
vec_f
,
field1
.
size
,
field1
.
missval
);
...
...
@@ -54,7 +54,7 @@ sub_trend(double zj, const Varray<T> &v1, const Varray<double> &v2, const Varray
static
void
sub_trend
(
double
zj
,
const
Field
&
field1
,
const
Field
&
field2
,
const
Field
&
field3
,
Field
&
field4
)
{
if
(
field1
.
memType
!=
field
2
.
memType
)
cdo_abort
(
"Interal error, memType of field1 and field2 differ!"
);
if
(
field1
.
memType
!=
field
4
.
memType
)
cdo_abort
(
"Interal error, memType of field1 and field2 differ!"
);
if
(
field1
.
memType
==
MemType
::
Float
)
sub_trend
(
zj
,
field1
.
vec_f
,
field2
.
vec_d
,
field3
.
vec_d
,
field4
.
vec_f
,
field1
.
size
,
field1
.
missval
);
...
...
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