Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Sander, Oliver
dune-gfe
Commits
3906cc9c
Commit
3906cc9c
authored
9 years ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Stop using the dune-functions BasisIndexSet
Because this object doesn't exist in dune-functions bases anymore.
parent
02ef54ed
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
dune/gfe/geodesicfeassembler.hh
+7
-9
7 additions, 9 deletions
dune/gfe/geodesicfeassembler.hh
with
7 additions
and
9 deletions
dune/gfe/geodesicfeassembler.hh
+
7
−
9
View file @
3906cc9c
...
...
@@ -28,7 +28,6 @@ class GeodesicFEAssembler {
public
:
const
Basis
basis_
;
const
typename
Basis
::
IndexSet
basisIndexSet_
;
protected
:
...
...
@@ -40,7 +39,6 @@ public:
GeodesicFEAssembler
(
const
Basis
&
basis
,
LocalGeodesicFEStiffness
<
Basis
,
TargetSpace
>*
localStiffness
)
:
basis_
(
basis
),
basisIndexSet_
(
basis_
.
indexSet
()),
localStiffness_
(
localStiffness
)
{}
...
...
@@ -72,13 +70,13 @@ template <class Basis, class TargetSpace>
void
GeodesicFEAssembler
<
Basis
,
TargetSpace
>::
getNeighborsPerVertex
(
Dune
::
MatrixIndexSet
&
nb
)
const
{
auto
n
=
basis
IndexSet
_
.
size
();
auto
n
=
basis_
.
size
();
nb
.
resize
(
n
,
n
);
// A view on the FE basis on a single element
auto
localView
=
basis_
.
localView
();
auto
localIndexSet
=
basis
IndexSet
_
.
localIndexSet
();
auto
localIndexSet
=
basis_
.
localIndexSet
();
ElementIterator
it
=
basis_
.
gridView
().
template
begin
<
0
,
Dune
::
Interior_Partition
>();
ElementIterator
endit
=
basis_
.
gridView
().
template
end
<
0
,
Dune
::
Interior_Partition
>
();
...
...
@@ -130,7 +128,7 @@ assembleGradientAndHessian(const std::vector<TargetSpace>& sol,
// A view on the FE basis on a single element
auto
localView
=
basis_
.
localView
();
auto
localIndexSet
=
basis
IndexSet
_
.
localIndexSet
();
auto
localIndexSet
=
basis_
.
localIndexSet
();
ElementIterator
it
=
basis_
.
gridView
().
template
begin
<
0
,
Dune
::
Interior_Partition
>();
ElementIterator
endit
=
basis_
.
gridView
().
template
end
<
0
,
Dune
::
Interior_Partition
>
();
...
...
@@ -179,7 +177,7 @@ void GeodesicFEAssembler<Basis,TargetSpace>::
assembleGradient
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
{
if
(
sol
.
size
()
!=
basis
IndexSet
_
.
size
())
if
(
sol
.
size
()
!=
basis_
.
size
())
DUNE_THROW
(
Dune
::
Exception
,
"Solution vector doesn't match the grid!"
);
grad
.
resize
(
sol
.
size
());
...
...
@@ -187,7 +185,7 @@ assembleGradient(const std::vector<TargetSpace>& sol,
// A view on the FE basis on a single element
auto
localView
=
basis_
.
localView
();
auto
localIndexSet
=
basis
IndexSet
_
.
localIndexSet
();
auto
localIndexSet
=
basis_
.
localIndexSet
();
ElementIterator
it
=
basis_
.
gridView
().
template
begin
<
0
,
Dune
::
Interior_Partition
>();
ElementIterator
endIt
=
basis_
.
gridView
().
template
end
<
0
,
Dune
::
Interior_Partition
>();
...
...
@@ -227,12 +225,12 @@ computeEnergy(const std::vector<TargetSpace>& sol) const
{
double
energy
=
0
;
if
(
sol
.
size
()
!=
basis
IndexSet
_
.
size
())
if
(
sol
.
size
()
!=
basis_
.
size
())
DUNE_THROW
(
Dune
::
Exception
,
"Coefficient vector doesn't match the function space basis!"
);
// A view on the FE basis on a single element
auto
localView
=
basis_
.
localView
();
auto
localIndexSet
=
basis
IndexSet
_
.
localIndexSet
();
auto
localIndexSet
=
basis_
.
localIndexSet
();
ElementIterator
it
=
basis_
.
gridView
().
template
begin
<
0
,
Dune
::
Interior_Partition
>();
ElementIterator
endIt
=
basis_
.
gridView
().
template
end
<
0
,
Dune
::
Interior_Partition
>();
...
...
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