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

bug fix in CCC

parent 80134529
Branches
Tags
No related merge requests found
...@@ -231,7 +231,7 @@ void compute(const Options& option){ ...@@ -231,7 +231,7 @@ void compute(const Options& option){
// Get solver to use ASM (if PETSc) // // Get solver to use ASM (if PETSc) //
IS is[2]; IS is[2];
try{ if(!solver.compare("petsc")){
SolverPETSc<double>& solver = SolverPETSc<double>& solver =
dynamic_cast<SolverPETSc<double>&>(system.getSolver()); dynamic_cast<SolverPETSc<double>&>(system.getSolver());
...@@ -250,8 +250,6 @@ void compute(const Options& option){ ...@@ -250,8 +250,6 @@ void compute(const Options& option){
// Setup subsolvers // Setup subsolvers
solver.setPostKSPSetUp(asmSubSolver); solver.setPostKSPSetUp(asmSubSolver);
} }
catch(...){
}
// Solve // // Solve //
cout << "Solving..." << endl << flush; cout << "Solving..." << endl << flush;
...@@ -310,14 +308,12 @@ void compute(const Options& option){ ...@@ -310,14 +308,12 @@ void compute(const Options& option){
} }
// Clear PETSc stuff (if we used PETSc) // // Clear PETSc stuff (if we used PETSc) //
try{ if(!solver.compare("petsc")){
dynamic_cast<SolverPETSc<double>&>(system.getSolver()); dynamic_cast<SolverPETSc<double>&>(system.getSolver());
ISDestroy(&is[0]); ISDestroy(&is[0]);
ISDestroy(&is[1]); ISDestroy(&is[1]);
} }
catch(...){
}
// Clear other stuff // // Clear other stuff //
for(int i = 0; i < nPhi; i++) 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