Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
albajacas_a
src
Commits
8752f0a1
Commit
8752f0a1
authored
Mar 08, 2018
by
gsell
Browse files
fix some minor issues in destructor of MGPoisonSolver
parent
72a7c2d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
src/Solvers/MGPoissonSolver.cpp
src/Solvers/MGPoissonSolver.cpp
+9
-12
No files found.
src/Solvers/MGPoissonSolver.cpp
View file @
8752f0a1
...
...
@@ -155,24 +155,21 @@ MGPoissonSolver::MGPoissonSolver ( PartBunch *beam,
FunctionTimer8_m
=
IpplTimings
::
getTimer
(
"LHS to IPPL"
);
}
MGPoissonSolver
::~
MGPoissonSolver
()
{
if
(
Map
)
delete
Map
;
Map
=
0
;
if
(
MLPrec
)
delete
MLPrec
;
MLPrec
=
0
;
void
MGPoissonSolver
::
deletePtr
()
{
if
(
Map
)
delete
Map
;
Map
=
0
;
if
(
MLPrec
)
delete
MLPrec
;
MLPrec
=
0
;
A
=
Teuchos
::
null
;
LHS
=
Teuchos
::
null
;
RHS
=
Teuchos
::
null
;
prec_m
=
Teuchos
::
null
;
solver_ptr
=
Teuchos
::
null
;
problem_ptr
=
Teuchos
::
null
;
}
void
MGPoissonSolver
::
deletePtr
()
{
A
=
Teuchos
::
null
;
LHS
=
Teuchos
::
null
;
RHS
=
Teuchos
::
null
;
if
(
Map
)
delete
Map
;
if
(
MLPrec
)
delete
MLPrec
;
MLPrec
=
0
;
prec_m
=
Teuchos
::
null
;
MGPoissonSolver
::~
MGPoissonSolver
()
{
deletePtr
();
solver_ptr
=
Teuchos
::
null
;
problem_ptr
=
Teuchos
::
null
;
}
void
MGPoissonSolver
::
computePotential
(
Field_t
&
rho
,
Vector_t
hr
,
double
zshift
)
{
...
...
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