Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_numerics
Commits
9ff0e27f
Commit
9ff0e27f
authored
Aug 24, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminating some comments
parent
d1a3d676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/Solvers/petsc_solver.hpp
src/Solvers/petsc_solver.hpp
+10
-7
No files found.
src/Solvers/petsc_solver.hpp
View file @
9ff0e27f
...
...
@@ -18,6 +18,16 @@
#include "Plot/GoogleChart.hpp"
#include "Matrix/SparseMatrix.hpp"
#include "Vector/Vector.hpp"
#include <sstream>
#include <iomanip>
template
<
typename
T
>
std
::
string
to_string_with_precision
(
const
T
a_value
,
const
int
n
=
6
)
{
std
::
ostringstream
out
;
out
<<
std
::
setprecision
(
n
)
<<
a_value
;
return
out
.
str
();
}
#define UMFPACK_NONE 0
#define REL_DOWN 1
...
...
@@ -885,8 +895,6 @@ public:
PETSC_SAFE_CALL
(
KSPGetTolerances
(
ksp
,
&
rtol
,
&
abstol
,
&
dtol
,
&
maxits
));
PETSC_SAFE_CALL
(
KSPSetTolerances
(
ksp
,
rtol_
,
abstol
,
dtol
,
maxits
));
// PetscOptionsSetValue("-ksp_rtol",std::to_string(rtol_).c_str());
}
/*! \brief Set the absolute tolerance as stop criteria
...
...
@@ -905,8 +913,6 @@ public:
PETSC_SAFE_CALL
(
KSPGetTolerances
(
ksp
,
&
rtol
,
&
abstol
,
&
dtol
,
&
maxits
));
PETSC_SAFE_CALL
(
KSPSetTolerances
(
ksp
,
rtol
,
abstol_
,
dtol
,
maxits
));
// PetscOptionsSetValue("-ksp_atol",std::to_string(abstol_).c_str());
}
/*! \brief Set the divergence tolerance
...
...
@@ -925,8 +931,6 @@ public:
PETSC_SAFE_CALL
(
KSPGetTolerances
(
ksp
,
&
rtol
,
&
abstol
,
&
dtol
,
&
maxits
));
PETSC_SAFE_CALL
(
KSPSetTolerances
(
ksp
,
rtol
,
abstol
,
dtol_
,
maxits
));
// PetscOptionsSetValue("-ksp_dtol",std::to_string(dtol_).c_str());
}
/*! \brief Set the maximum number of iteration for Krylov solvers
...
...
@@ -944,7 +948,6 @@ public:
PETSC_SAFE_CALL
(
KSPGetTolerances
(
ksp
,
&
rtol
,
&
abstol
,
&
dtol
,
&
maxits
));
PETSC_SAFE_CALL
(
KSPSetTolerances
(
ksp
,
rtol
,
abstol
,
dtol
,
n
));
// PetscOptionsSetValue("-ksp_max_it",std::to_string(n).c_str());
this
->
maxits
=
n
;
}
...
...
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