Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
qbox-public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qbox
qbox-public
Commits
0cae8842
Commit
0cae8842
authored
Mar 19, 2019
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MPI_Comm leak in SlaterDet copy ctor
parent
ffa583a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
SlaterDet.C
src/SlaterDet.C
+5
-2
No files found.
src/SlaterDet.C
View file @
0cae8842
...
...
@@ -77,8 +77,10 @@ SlaterDet::SlaterDet(const Context& ctxt, D3vector kpoint) : ctxt_(ctxt),
////////////////////////////////////////////////////////////////////////////////
SlaterDet
::
SlaterDet
(
const
SlaterDet
&
rhs
)
:
ctxt_
(
rhs
.
context
()),
basis_
(
new
Basis
(
*
(
rhs
.
basis_
))),
my_col_comm_
(
rhs
.
my_col_comm_
),
c_
(
rhs
.
c_
){}
basis_
(
new
Basis
(
*
(
rhs
.
basis_
))),
c_
(
rhs
.
c_
)
{
MPI_Comm_dup
(
rhs
.
my_col_comm_
,
&
my_col_comm_
);
}
////////////////////////////////////////////////////////////////////////////////
SlaterDet
::~
SlaterDet
()
...
...
@@ -103,6 +105,7 @@ SlaterDet::~SlaterDet()
}
}
#endif
MPI_Comm_free
(
&
my_col_comm_
);
}
////////////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Markdown
is supported
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