Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Podhorszki, Norbert
ADIOS2
Commits
dab81f1d
Unverified
Commit
dab81f1d
authored
Mar 03, 2020
by
Atkins, Charles Vernon
Committed by
GitHub
Mar 03, 2020
Browse files
Merge pull request #2002 from khuck/fixing_2001
helper: Avoid freeing Comm-held MPI_Comm more than once
parents
801cbe77
7b2ee235
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/adios2/helper/adiosCommMPI.cpp
View file @
dab81f1d
...
...
@@ -198,7 +198,9 @@ void CommImplMPI::Free(const std::string &hint)
if
(
m_MPIComm
!=
MPI_COMM_NULL
&&
m_MPIComm
!=
MPI_COMM_WORLD
&&
m_MPIComm
!=
MPI_COMM_SELF
)
{
CheckMPIReturn
(
MPI_Comm_free
(
&
m_MPIComm
),
hint
);
MPI_Comm
mpiComm
=
m_MPIComm
;
m_MPIComm
=
MPI_COMM_NULL
;
// prevent freeing a second time
CheckMPIReturn
(
MPI_Comm_free
(
&
mpiComm
),
hint
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment