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
86f27abe
Commit
86f27abe
authored
5 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Use PARAMETER instead of ad-hoc on-stack variable.
parent
0d44e11b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_redist_single_array_base_f.f90
+4
-3
4 additions, 3 deletions
tests/test_redist_single_array_base_f.f90
with
4 additions
and
3 deletions
tests/test_redist_single_array_base_f.f90
+
4
−
3
View file @
86f27abe
...
...
@@ -100,6 +100,8 @@ CONTAINS
INTEGER
::
i
,
ierror
INTEGER
,
PARAMETER
::
num_elem
=
10
INTEGER
,
PARAMETER
::
displ
(
num_elem
)
&
=
(/
(
i
,
i
=
num_elem
-
1
,
0
,
-1
)
/)
#ifndef __PGI
DOUBLE PRECISION
,
PARAMETER
::
src_data
(
num_elem
)
&
=
(/
(
DBLE
(
i
),
i
=
1
,
num_elem
)
/)
...
...
@@ -126,9 +128,8 @@ CONTAINS
CALL
test_abort
(
"error calling mpi_type_commit"
,
&
filename
,
__
LINE__
)
recv_msgs
(
1
)
%
rank
=
0
CALL
MPI_Type_create_indexed_block
(
&
num_elem
,
1
,
(/
(
i
,
i
=
num_elem
-
1
,
0
,
-1
)
/),
MPI_DOUBLE_PRECISION
,
&
recv_msgs
(
1
)
%
datatype
,
ierror
);
CALL
MPI_Type_create_indexed_block
(
num_elem
,
1
,
displ
,
&
MPI_DOUBLE_PRECISION
,
recv_msgs
(
1
)
%
datatype
,
ierror
)
IF
(
ierror
/
=
mpi_success
)
&
CALL
test_abort
(
"error calling mpi_type_create_indexed_block"
,
&
filename
,
__
LINE__
)
...
...
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