Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dkrz-sw
yaxt
Commits
95672b1d
Commit
95672b1d
authored
Jun 12, 2020
by
Thomas Jahns
🤸
Browse files
Merge declaration and initialization.
parent
2d8db34d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/xt_idxlist_intersection.c
View file @
95672b1d
...
...
@@ -104,10 +104,8 @@ xt_default_isect(Xt_idxlist idxlist_src,
// if the get_intersection routine was not able to compute the intersection
INSTR_START
(
instr_fallback
);
int
num_indices_src
,
num_indices_dst
;
num_indices_src
=
xt_idxlist_get_num_indices
(
idxlist_src
);
num_indices_dst
=
xt_idxlist_get_num_indices
(
idxlist_dst
);
int
num_indices_src
=
xt_idxlist_get_num_indices
(
idxlist_src
),
num_indices_dst
=
xt_idxlist_get_num_indices
(
idxlist_dst
);
if
(
num_indices_src
==
0
||
num_indices_dst
==
0
)
return
xt_idxempty_new
();
...
...
src/xt_idxsection.c
View file @
95672b1d
...
...
@@ -468,10 +468,8 @@ xt_idxsection_get_intersection(Xt_idxlist idxlist_src, Xt_idxlist idxlist_dst) {
// both lists are index section:
Xt_idxsection
idxsection_src
,
idxsection_dst
;
idxsection_src
=
(
Xt_idxsection
)
idxlist_src
;
idxsection_dst
=
(
Xt_idxsection
)
idxlist_dst
;
Xt_idxsection
idxsection_src
=
(
Xt_idxsection
)
idxlist_src
,
idxsection_dst
=
(
Xt_idxsection
)
idxlist_dst
;
if
(
idxsection_src
->
ndim
!=
idxsection_dst
->
ndim
||
idxsection_src
->
global_start_index
!=
idxsection_dst
->
global_start_index
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment