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
3826ae18
Commit
3826ae18
authored
10 years ago
by
Carsten Gräser
Browse files
Options
Downloads
Patches
Plain Diff
Fix typedefs and rename member x_ to iterate_
parent
7f843505
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/iterationsteps/iterationstep.hh
+14
-10
14 additions, 10 deletions
dune/solvers/iterationsteps/iterationstep.hh
with
14 additions
and
10 deletions
dune/solvers/iterationsteps/iterationstep.hh
+
14
−
10
View file @
3826ae18
...
@@ -18,9 +18,10 @@ namespace Solvers {
...
@@ -18,9 +18,10 @@ namespace Solvers {
template
<
class
VectorType
,
class
BitVectorType
=
Dune
::
BitSetVector
<
VectorType
::
block_type
::
dimension
>
>
template
<
class
VectorType
,
class
BitVectorType
=
Dune
::
BitSetVector
<
VectorType
::
block_type
::
dimension
>
>
class
IterationStep
:
virtual
public
NumProc
,
public
CanIgnore
<
BitVectorType
>
class
IterationStep
:
virtual
public
NumProc
,
public
CanIgnore
<
BitVectorType
>
{
{
typedef
CanIgnore
<
BitVectorType
>
Base
;
public:
public:
typedef
VectorType
::
Vector
;
typedef
VectorType
Vector
;
typedef
BitVectorType
::
BitVector
;
typedef
BitVectorType
BitVector
;
//! Default constructor
//! Default constructor
IterationStep
()
IterationStep
()
...
@@ -30,28 +31,31 @@ namespace Solvers {
...
@@ -30,28 +31,31 @@ namespace Solvers {
virtual
~
IterationStep
()
{}
virtual
~
IterationStep
()
{}
//! Constructor being given the current iterate
//! Constructor being given the current iterate
IterationStep
(
Vector
&
x
)
:
IterationStep
(
Vector
&
iterate
)
:
x
_
(
Dune
::
stackobject_to_shared_ptr
(
x
))
iterate
_
(
Dune
::
stackobject_to_shared_ptr
(
iterate
))
{}
{}
//! Constructor being given the current iterate
//! Constructor being given the current iterate
IterationStep
(
std
::
shared_ptr
<
Vector
>
x
)
:
IterationStep
(
std
::
shared_ptr
<
Vector
>
iterate
)
:
x_
(
x
)
iterate_
(
iterate
)
{}
{}
using
Base
::
getIgnore
;
using
Base
::
setIgnore
;
//! Set the current iterate
//! Set the current iterate
virtual
void
setIterate
(
std
::
shared_ptr
<
Vector
>
x
)
{
virtual
void
setIterate
(
std
::
shared_ptr
<
Vector
>
x
)
{
x
_
=
x
;
iterate
_
=
x
;
}
}
//! Set the current iterate
//! Set the current iterate
virtual
const
std
::
shared_ptr
<
Vector
>
getIterate
()
const
{
virtual
const
std
::
shared_ptr
<
Vector
>
getIterate
()
const
{
ret
run
x
_
;
ret
urn
iterate
_
;
}
}
//! Set the current iterate
//! Set the current iterate
virtual
std
::
shared_ptr
<
Vector
>
getIterate
()
{
virtual
std
::
shared_ptr
<
Vector
>
getIterate
()
{
ret
run
x
_
;
ret
urn
iterate
_
;
}
}
//! to be called before iteration
//! to be called before iteration
...
@@ -65,7 +69,7 @@ namespace Solvers {
...
@@ -65,7 +69,7 @@ namespace Solvers {
*/
*/
virtual
void
check
()
const
{
virtual
void
check
()
const
{
#if 0
#if 0
if (!
x
_)
if (!
iterate
_)
DUNE_THROW(SolverError, "Iteration step has no solution vector")
;
DUNE_THROW(SolverError, "Iteration step has no solution vector")
;
#endif
#endif
}
}
...
...
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