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
054cebc7
Commit
054cebc7
authored
6 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Harmonize Fortran wrapper with the way MPI defines the MPI_Test interface.
parent
f569ccc6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xt_request_f.f90
+4
-2
4 additions, 2 deletions
src/xt_request_f.f90
tests/test_redist_common_f.f90
+3
-5
3 additions, 5 deletions
tests/test_redist_common_f.f90
with
7 additions
and
7 deletions
src/xt_request_f.f90
+
4
−
2
View file @
054cebc7
...
...
@@ -93,7 +93,8 @@ CONTAINS
SUBROUTINE
xt_request_test
(
request
,
flag
)
TYPE
(
xt_request
),
INTENT
(
inout
)
::
request
INTEGER
(
c_int
),
INTENT
(
out
)
::
flag
LOGICAL
,
INTENT
(
out
)
::
flag
INTEGER
(
c_int
)
::
flag_c
INTERFACE
SUBROUTINE
xt_request_test_c
(
request_c
,
flag_c
)
&
BIND
(
C
,
name
=
'xt_request_test'
)
...
...
@@ -102,7 +103,8 @@ CONTAINS
INTEGER
(
c_int
),
INTENT
(
out
)
::
flag_c
END
SUBROUTINE
xt_request_test_c
END
INTERFACE
CALL
xt_request_test_c
(
request
%
cptr
,
flag
)
CALL
xt_request_test_c
(
request
%
cptr
,
flag_c
)
flag
=
flag_c
/
=
0
END
SUBROUTINE
xt_request_test
FUNCTION
xt_request_is_null
(
request
)
RESULT
(
p
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_redist_common_f.f90
+
3
−
5
View file @
054cebc7
...
...
@@ -173,12 +173,10 @@ CONTAINS
TYPE
(
xt_request
),
INTENT
(
inout
)
::
request
CHARACTER
(
len
=*
),
INTENT
(
in
)
::
file
INTEGER
,
INTENT
(
in
)
::
line
INTEGER
(
c_int
)
::
flag
LOGICAL
::
flag
CALL
xt_request_test
(
request
,
flag
)
IF
(
xt_is_null
(
request
))
THEN
IF
(
flag
==
0
)
&
CALL
test_abort
(
"error: expected flag != 0"
,
file
,
line
)
END
IF
IF
(
xt_is_null
(
request
)
.AND.
.NOT.
flag
)
&
CALL
test_abort
(
"error: expected flag set to .true."
,
file
,
line
)
END
SUBROUTINE
check_test_request
SUBROUTINE
wrap_a_exchange_dp
(
redist
,
src
,
dst
)
...
...
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