Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
podlesny
dune-tectonic
Commits
c830ff44
Commit
c830ff44
authored
5 years ago
by
podlesny
Browse files
Options
Downloads
Patches
Plain Diff
no friction for debugging purposes
parent
be34e988
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/spatial-solving/fixedpointiterator.cc
+6
-2
6 additions, 2 deletions
src/spatial-solving/fixedpointiterator.cc
src/spatial-solving/fixedpointiterator.hh
+4
-1
4 additions, 1 deletion
src/spatial-solving/fixedpointiterator.hh
with
10 additions
and
3 deletions
src/spatial-solving/fixedpointiterator.cc
+
6
−
2
View file @
c830ff44
...
...
@@ -30,6 +30,7 @@
#include
"../utils/tobool.hh"
#include
"../utils/debugutils.hh"
#include
"solverfactory.hh"
void
FixedPointIterationCounter
::
operator
+=
(
FixedPointIterationCounter
const
&
other
)
{
...
...
@@ -123,8 +124,11 @@ FixedPointIterator<Factory, NBodyAssembler, Updaters, ErrorNorm>::run(
std
::
cout
<<
"- Problem assembled: success"
<<
std
::
endl
;
// set up functional and TNMMG solver
Functional
J
(
bilinearForm
,
totalRhs
,
globalFriction_
,
vLower
,
vUpper
);
Factory
solverFactory
(
parset_
.
sub
(
"solver.tnnmg"
),
J
,
ignoreNodes_
);
using
ZeroFactory
=
SolverFactory
<
Functional
,
IgnoreVector
>
;
Functional
J
(
bilinearForm
,
totalRhs
,
ZeroNonlinearity
(),
vLower
,
vUpper
);
ZeroFactory
solverFactory
(
parset_
.
sub
(
"solver.tnnmg"
),
J
,
ignoreNodes_
);
/*Functional J(bilinearForm, totalRhs, globalFriction_, vLower, vUpper);
Factory solverFactory(parset_.sub("solver.tnnmg"), J, ignoreNodes_);*/
auto
step
=
solverFactory
.
step
();
std
::
cout
<<
"- Functional and TNNMG step setup: success"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
src/spatial-solving/fixedpointiterator.hh
+
4
−
1
View file @
c830ff44
...
...
@@ -13,6 +13,8 @@
#include
<dune/contact/assemblers/nbodyassembler.hh>
#include
"tnnmg/zerononlinearity.hh"
#include
"tnnmg/functional.hh"
struct
FixedPointIterationCounter
{
size_t
iterations
=
0
;
size_t
multigridIterations
=
0
;
...
...
@@ -25,10 +27,11 @@ std::ostream &operator<<(std::ostream &stream,
template
<
class
Factory
,
class
NBodyAssembler
,
class
Updaters
,
class
ErrorNorm
>
class
FixedPointIterator
{
using
Functional
=
typename
Factory
::
Functional
;
using
ScalarVector
=
typename
Updaters
::
StateUpdater
::
ScalarVector
;
using
Vector
=
typename
Factory
::
Vector
;
using
Matrix
=
typename
Factory
::
Matrix
;
using
Functional
=
Functional
<
Matrix
&
,
Vector
&
,
ZeroNonlinearity
&
,
Vector
&
,
Vector
&
,
typename
Matrix
::
field_type
>
;
//typename Factory::Functional;
using
Nonlinearity
=
typename
Factory
::
Functional
::
Nonlinearity
;
const
static
int
dims
=
Vector
::
block_type
::
dimension
;
...
...
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