Skip to content
Snippets Groups Projects
Commit 30debed9 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

bug fix in CCC

parent 80134529
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ void compute(const Options& option){
// Get solver to use ASM (if PETSc) //
IS is[2];
try{
if(!solver.compare("petsc")){
SolverPETSc<double>& solver =
dynamic_cast<SolverPETSc<double>&>(system.getSolver());
......@@ -250,8 +250,6 @@ void compute(const Options& option){
// Setup subsolvers
solver.setPostKSPSetUp(asmSubSolver);
}
catch(...){
}
// Solve //
cout << "Solving..." << endl << flush;
......@@ -310,14 +308,12 @@ void compute(const Options& option){
}
// Clear PETSc stuff (if we used PETSc) //
try{
if(!solver.compare("petsc")){
dynamic_cast<SolverPETSc<double>&>(system.getSolver());
ISDestroy(&is[0]);
ISDestroy(&is[1]);
}
catch(...){
}
// Clear other stuff //
for(int i = 0; i < nPhi; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment