Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Jahns
yaxt
Commits
86f27abe
Commit
86f27abe
authored
Feb 21, 2020
by
Thomas Jahns
🤸
Browse files
Use PARAMETER instead of ad-hoc on-stack variable.
parent
0d44e11b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_redist_single_array_base_f.f90
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__
)
...
...
Write
Preview
Supports
Markdown
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