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
d887ec02
Commit
d887ec02
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
rebased to develop and added small corrections
parent
384b27d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/amdis/ProblemStat.hpp
+7
-20
7 additions, 20 deletions
src/amdis/ProblemStat.hpp
src/amdis/common/ConceptsBase.hpp
+1
-0
1 addition, 0 deletions
src/amdis/common/ConceptsBase.hpp
src/amdis/utility/TreeData.hpp
+0
-4
0 additions, 4 deletions
src/amdis/utility/TreeData.hpp
with
8 additions
and
24 deletions
src/amdis/ProblemStat.hpp
+
7
−
20
View file @
d887ec02
...
@@ -73,7 +73,7 @@ namespace AMDiS
...
@@ -73,7 +73,7 @@ namespace AMDiS
**/
**/
explicit
ProblemStat
(
std
::
string
name
)
explicit
ProblemStat
(
std
::
string
name
)
:
StandardProblemIteration
(
dynamic_cast
<
ProblemStatBase
&>
(
*
this
))
:
StandardProblemIteration
(
dynamic_cast
<
ProblemStatBase
&>
(
*
this
))
,
name
(
std
::
move
(
name
))
,
name
_
(
std
::
move
(
name
))
{}
{}
/// Constructor taking additionally a reference to a grid that is used
/// Constructor taking additionally a reference to a grid that is used
...
@@ -94,19 +94,6 @@ namespace AMDiS
...
@@ -94,19 +94,6 @@ namespace AMDiS
initGlobalBasis
(
*
globalBasis_
);
initGlobalBasis
(
*
globalBasis_
);
}
}
/// \brief Constructor taking a grid reference and a basis reference.
/// Stores pointers to both.
ProblemStat
(
std
::
string
name
,
Grid
&
grid
,
GlobalBasis
&
globalBasis
)
:
StandardProblemIteration
(
dynamic_cast
<
ProblemStatBase
&>
(
*
this
))
,
name
(
std
::
move
(
name
))
{
gridName
=
""
;
Parameters
::
get
(
name
+
"->mesh"
,
gridName
);
globalBasis_
=
Dune
::
stackobject_to_shared_ptr
(
globalBasis
);
initGlobalBasis
(
*
globalBasis_
);
}
/**
/**
* \brief Initialisation of the problem.
* \brief Initialisation of the problem.
...
@@ -246,9 +233,9 @@ namespace AMDiS
...
@@ -246,9 +233,9 @@ namespace AMDiS
void
createGlobalBasis
(
std
::
true_type
)
void
createGlobalBasis
(
std
::
true_type
)
{
{
assert
(
bool
(
grid
)
);
assert
(
bool
(
grid
_
)
);
static_assert
(
std
::
is_same
<
GridView
,
typename
Grid
::
LeafGridView
>::
value
,
""
);
static_assert
(
std
::
is_same
<
GridView
,
typename
Grid
::
LeafGridView
>::
value
,
""
);
globalBasis_
=
std
::
make_shared
<
GlobalBasis
>
(
Traits
::
create
(
grid
->
leafGridView
()));
globalBasis_
=
std
::
make_shared
<
GlobalBasis
>
(
Traits
::
create
(
grid
_
->
leafGridView
()));
}
}
void
createGlobalBasis
(
std
::
false_type
)
void
createGlobalBasis
(
std
::
false_type
)
...
@@ -273,10 +260,10 @@ namespace AMDiS
...
@@ -273,10 +260,10 @@ namespace AMDiS
void
initGlobalBasis
(
GlobalBasis
const
&
globalBasis
)
void
initGlobalBasis
(
GlobalBasis
const
&
globalBasis
)
{
{
localView_
=
std
::
make_shared
<
typename
GlobalBasis
::
LocalView
>
(
globalBasis
.
localView
());
localView_
=
std
::
make_shared
<
typename
GlobalBasis
::
LocalView
>
(
globalBasis
_
->
localView
());
matrixOperators
.
init
(
localView_
->
tree
(),
tag
::
store
{});
matrixOperators
_
.
init
(
localView_
->
tree
(),
tag
::
store
{});
rhsOperators
.
init
(
localView_
->
tree
(),
tag
::
store
{});
rhsOperators
_
.
init
(
localView_
->
tree
(),
tag
::
store
{});
constraints
.
init
(
localView_
->
tree
(),
tag
::
store
{});
constraints
_
.
init
(
localView_
->
tree
(),
tag
::
store
{});
}
}
void
createMatricesAndVectors
()
void
createMatricesAndVectors
()
...
...
This diff is collapsed.
Click to expand it.
src/amdis/common/ConceptsBase.hpp
+
1
−
0
View file @
d887ec02
#pragma once
#pragma once
#include
<type_traits>
#include
<type_traits>
#include
<dune/common/typetraits.hh>
#ifdef DOXYGEN
#ifdef DOXYGEN
#define REQUIRES(...)
#define REQUIRES(...)
...
...
This diff is collapsed.
Click to expand it.
src/amdis/utility/TreeData.hpp
+
0
−
4
View file @
d887ec02
...
@@ -252,11 +252,7 @@ namespace AMDiS
...
@@ -252,11 +252,7 @@ namespace AMDiS
void
init
(
Tree
const
&
tree
,
tag
::
store
)
void
init
(
Tree
const
&
tree
,
tag
::
store
)
{
{
Super
::
init
(
tree
,
tag
::
store
{});
Super
::
init
(
tree
,
tag
::
store
{});
<<<<<<<
c786927261d1c07223ce3f9feabd89e439f2f4bb
AMDiS
::
forEachNode_
(
tree
,
[
&
,
this
](
auto
const
&
node
,
auto
&&
)
=======
forEachNode_
(
tree
,
[
&
,
this
](
auto
const
&
node
,
auto
&&
)
forEachNode_
(
tree
,
[
&
,
this
](
auto
const
&
node
,
auto
&&
)
>>>>>>>
compatibility
with
dune
2.6.0
of
all
dependend
modules
{
{
(
*
this
)[
node
].
init
(
tree
,
tag
::
store
{});
(
*
this
)[
node
].
init
(
tree
,
tag
::
store
{});
});
});
...
...
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