Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
amdis
amdis-core
Commits
03c8bf81
Commit
03c8bf81
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused file
parent
5828d2a8
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
ProblemIterationInterface.hpp
+0
-63
0 additions, 63 deletions
ProblemIterationInterface.hpp
with
0 additions
and
63 deletions
ProblemIterationInterface.hpp
deleted
100644 → 0
+
0
−
63
View file @
5828d2a8
#pragma once
#include
<string>
#include
"Flag.hpp"
namespace
AMDiS
{
class
AdaptInfo
;
class
ProblemStatBase
;
const
Flag
BUILD
=
1
;
// Assemble vectors and matrices
const
Flag
BUILD_RHS
=
2
;
// Assemble rhs vectors only
const
Flag
ADAPT
=
4
;
// Run adaption procedure
const
Flag
SOLVE
=
8
;
// Solve system
const
Flag
SOLVE_RHS
=
16
;
// Solve system, where only rhs vectors have changed
const
Flag
ESTIMATE
=
32
;
// Estimate error
const
Flag
MARK
=
64
;
// Mark elements
const
Flag
FULL_ITERATION
=
BUILD
|
ADAPT
|
SOLVE
|
ESTIMATE
|
MARK
;
const
Flag
NO_ADAPTION
=
BUILD
|
SOLVE
|
ESTIMATE
;
/** \brief
* Interface for master problems needed by the adaption loop. A master problem
* can handle one single or multiple coupled problems. In the latter case,
* the master problem can determine the execution order of the build, solve,
* estimate, and adapt steps of the single problems in \ref oneIteration().
*/
class
ProblemIterationInterface
{
public:
virtual
~
ProblemIterationInterface
()
=
default
;
/// Called before each adaption loop iteration.
virtual
void
beginIteration
(
AdaptInfo
&
)
{
/* by default, do nothing */
}
/** \brief
* Determines the execution order of the single adaption steps. If adapt is
* true, mesh adaption will be performed. This allows to avoid mesh adaption,
* e.g. in timestep adaption loops of timestep adaptive strategies.
*/
virtual
Flag
oneIteration
(
AdaptInfo
&
adaptInfo
,
Flag
toDo
=
FULL_ITERATION
)
=
0
;
/// Called after each adaption loop iteration.
virtual
void
endIteration
(
AdaptInfo
&
)
{
/* by default, do nothing */
}
/// Returns number of managed problems
virtual
int
numProblems
()
const
=
0
;
/** \brief
* Returns the problem with the given number. If only one problem
* is managed by this master problem, the number hasn't to be given.
*/
virtual
ProblemStatBase
&
problem
(
int
number
=
0
)
=
0
;
/// Returns the problem with the given name.
virtual
ProblemStatBase
&
problem
(
std
::
string
const
&
name
)
=
0
;
/// Returns the name of the problem.
virtual
std
::
string
const
&
name
()
const
=
0
;
};
}
// end namespace AMDiS
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