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
587f460a
Commit
587f460a
authored
2 years ago
by
Jonathan Froehlich
Browse files
Options
Downloads
Patches
Plain Diff
Added base template
parent
77e215f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!235
Resolve "MultiElasticity should hold multiple MainElasticities"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CardiacSolver.hpp
+32
-0
32 additions, 0 deletions
src/CardiacSolver.hpp
with
32 additions
and
0 deletions
src/CardiacSolver.hpp
+
32
−
0
View file @
587f460a
...
...
@@ -19,4 +19,36 @@ public:
int
Vtk
()
const
{
return
vtk
;
}
};
/// Default Wrapper for all solvers to provide verbose and vtk values
template
<
typename
AssembleType
>
class
CardiacSolverT
{
protected:
int
verbose
{
-
1
};
int
vtk
{
-
1
};
public
:
explicit
CardiacSolverT
(
const
std
::
string
&
vPrefix
){
Config
::
Get
(
vPrefix
+
"Verbose"
,
verbose
);
Config
::
Get
(
vPrefix
+
"VTK"
,
vtk
);
}
explicit
CardiacSolverT
(
int
v
)
:
verbose
(
v
),
vtk
(
v
)
{
}
void
SetVerbose
(
int
v
)
{
verbose
=
v
;
}
int
Verbose
()
const
{
return
verbose
;
}
void
SetVtk
(
int
v
)
{
vtk
=
v
;
}
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
;
};
#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