Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CardMech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
KIT
Mpp
CardMech
Commits
78a0c903
Commit
78a0c903
authored
2 years ago
by
Jonathan Froehlich
Browse files
Options
Downloads
Patches
Plain Diff
Forward declared Vector
parent
b25a7153
No related branches found
Branches containing commit
No related tags found
1 merge request
!235
Resolve "MultiElasticity should hold multiple MainElasticities"
Pipeline
#125747
failed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CardiacSolver.hpp
+24
-7
24 additions, 7 deletions
src/CardiacSolver.hpp
with
24 additions
and
7 deletions
src/CardiacSolver.hpp
+
24
−
7
View file @
78a0c903
...
...
@@ -19,9 +19,9 @@ public:
int
Vtk
()
const
{
return
vtk
;
}
};
class
Vector
;
/// Default Wrapper for all solvers to provide verbose and vtk values
template
<
typename
AssembleType
>
template
<
typename
AssembleType
,
typename
VectorType
=
Vector
>
class
CardiacSolverT
{
protected:
int
verbose
{
-
1
};
...
...
@@ -44,11 +44,28 @@ public:
int
Vtk
()
const
{
return
vtk
;
}
virtual
void
Initialize
(
AssembleType
&
assemble
,
Vector
&
u
)
=
0
;
virtual
bool
Method
(
AssembleType
&
assemble
,
Vector
&
u
)
=
0
;
virtual
bool
Step
(
AssembleType
&
assemble
,
Vector
&
u
)
=
0
;
/// Initializes solver and assembly structures and sets initial value for u
virtual
void
Initialize
(
AssembleType
&
assemble
,
VectorType
&
u
)
=
0
;
/**
* Runs the implemented method from assemble.FirstTStep() to assemble.LastTStep().
* Should be implemtend as follows:
* 1. Initialize
* 2. while(!assemble.Finished()) {bool c=Step; if(!c) return false;}
* 3. return true
* @param assemble
* @param u Vector to write the solution to
* @return convergence status of the method
*/
virtual
bool
Method
(
AssembleType
&
assemble
,
VectorType
&
u
)
=
0
;
/**
* Runs a single step of the implemented method
* @param assemble
* @param u Vector to write the solution to
* @return convergence status of the method
*/
virtual
bool
Step
(
AssembleType
&
assemble
,
VectorType
&
u
)
=
0
;
};
#endif //CARDIACSOLVER_HPP
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