Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
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
Container Registry
Model registry
Operate
Environments
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
dkrz-sw
yaxt
Commits
bc723118
Commit
bc723118
authored
6 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Improve test for value range.
parent
5e6574f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/yaxt_f2c.c
+2
-12
2 additions, 12 deletions
src/yaxt_f2c.c
with
2 additions
and
12 deletions
src/yaxt_f2c.c
+
2
−
12
View file @
bc723118
...
...
@@ -277,13 +277,8 @@ xt_redist_collection_static_new_f(Xt_redist *redists, MPI_Fint num_redists,
MPI_Aint
*
dst_displacements
,
MPI_Fint
comm_f
)
{
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#if XT_MPI_FINT_MAX != INT_MAX
assert
((
long
long
)
num_redists
<=
(
long
long
)
INT_MAX
);
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)
#pragma GCC diagnostic pop
#endif
MPI_Comm
comm_c
=
MPI_Comm_f2c
(
comm_f
);
if
(
num_redists
<
1
)
...
...
@@ -299,14 +294,9 @@ Xt_redist
xt_redist_collection_new_f
(
Xt_redist
*
redists
,
MPI_Fint
num_redists
,
MPI_Fint
cache_size
,
MPI_Fint
comm_f
)
{
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#if XT_MPI_FINT_MAX != INT_MAX
assert
((
long
long
)
num_redists
<=
(
long
long
)
INT_MAX
&&
(
long
long
)
cache_size
<=
(
long
long
)
INT_MAX
);
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)
#pragma GCC diagnostic pop
#endif
MPI_Comm
comm_c
=
MPI_Comm_f2c
(
comm_f
);
if
(
num_redists
<
1
)
...
...
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