Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
agnumpde
dune-solvers
Commits
38cfad0a
Commit
38cfad0a
authored
11 years ago
by
Oliver Sander
Committed by
sander
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use real_type of field_type for variables storing convergence rates
[[Imported from SVN: r11782]]
parent
53e7a446
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/solvers/solvers/iterativesolver.hh
+8
-1
8 additions, 1 deletion
dune/solvers/solvers/iterativesolver.hh
with
8 additions
and
1 deletion
dune/solvers/solvers/iterativesolver.hh
+
8
−
1
View file @
38cfad0a
#ifndef DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#ifndef DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#define DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#define DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#include
<dune/common/ftraits.hh>
#include
<dune/solvers/solvers/solver.hh>
#include
<dune/solvers/solvers/solver.hh>
#include
<dune/solvers/iterationsteps/iterationstep.hh>
#include
<dune/solvers/iterationsteps/iterationstep.hh>
#include
<dune/solvers/norms/norm.hh>
#include
<dune/solvers/norms/norm.hh>
...
@@ -9,6 +11,11 @@
...
@@ -9,6 +11,11 @@
template
<
class
VectorType
,
class
BitVectorType
=
Dune
::
BitSetVector
<
VectorType
::
block_type
::
dimension
>
>
template
<
class
VectorType
,
class
BitVectorType
=
Dune
::
BitSetVector
<
VectorType
::
block_type
::
dimension
>
>
class
IterativeSolver
:
public
Solver
class
IterativeSolver
:
public
Solver
{
{
typedef
typename
VectorType
::
field_type
field_type
;
// For complex-valued data
typedef
typename
Dune
::
FieldTraits
<
field_type
>::
real_type
real_type
;
public:
public:
/** \brief Constructor taking all relevant data */
/** \brief Constructor taking all relevant data */
...
@@ -60,7 +67,7 @@
...
@@ -60,7 +67,7 @@
directory name. All intermediate iterates are then written there. */
directory name. All intermediate iterates are then written there. */
std
::
string
historyBuffer_
;
std
::
string
historyBuffer_
;
doubl
e
maxTotalConvRate_
;
real_typ
e
maxTotalConvRate_
;
bool
useRelativeError_
;
bool
useRelativeError_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment