Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-fufem
Commits
c0e91821
There was a problem fetching the pipeline summary.
Commit
c0e91821
authored
7 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Simply code a bit using a range-based for loop
parent
eb2799dc
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/functiontools/basisinterpolator.hh
+2
-7
2 additions, 7 deletions
dune/fufem/functiontools/basisinterpolator.hh
with
2 additions
and
7 deletions
dune/fufem/functiontools/basisinterpolator.hh
+
2
−
7
View file @
c0e91821
...
@@ -115,10 +115,8 @@ struct BasisInterpolator
...
@@ -115,10 +115,8 @@ struct BasisInterpolator
template
<
class
BitVectorType
>
template
<
class
BitVectorType
>
static
void
interpolate
(
const
B
&
basis
,
RepresentationType
&
coeff
,
const
F
&
f
,
const
BitVectorType
&
interpolateDOFFlags
)
static
void
interpolate
(
const
B
&
basis
,
RepresentationType
&
coeff
,
const
F
&
f
,
const
BitVectorType
&
interpolateDOFFlags
)
{
{
typedef
typename
GridView
::
template
Codim
<
0
>
::
Iterator
ElementIterator
;
typedef
typename
B
::
LocalFiniteElement
LocalFiniteElement
;
typedef
typename
B
::
LocalFiniteElement
LocalFiniteElement
;
typedef
typename
Dune
::
LocalFiniteElementFunctionBase
<
LocalFiniteElement
>::
type
FunctionBaseClass
;
typedef
typename
Dune
::
LocalFiniteElementFunctionBase
<
typename
B
::
LocalFiniteElement
>::
type
FunctionBaseClass
;
typedef
LocalFunctionComponentWrapper
<
F
,
Grid
,
FunctionBaseClass
>
LocalWrapper
;
typedef
LocalFunctionComponentWrapper
<
F
,
Grid
,
FunctionBaseClass
>
LocalWrapper
;
const
GridView
&
gridview
=
basis
.
getGridView
();
const
GridView
&
gridview
=
basis
.
getGridView
();
...
@@ -143,11 +141,8 @@ struct BasisInterpolator
...
@@ -143,11 +141,8 @@ struct BasisInterpolator
std
::
vector
<
typename
LocalWrapper
::
RangeType
>
interpolationValues
;
std
::
vector
<
typename
LocalWrapper
::
RangeType
>
interpolationValues
;
ElementIterator
it
=
gridview
.
template
begin
<
0
>();
for
(
const
auto
&
element
:
elements
(
gridview
))
ElementIterator
end
=
gridview
.
template
end
<
0
>();
for
(;
it
!=
end
;
++
it
)
{
{
auto
&&
element
=
*
it
;
const
LocalFiniteElement
&
fe
=
basis
.
getLocalFiniteElement
(
element
);
const
LocalFiniteElement
&
fe
=
basis
.
getLocalFiniteElement
(
element
);
// check if all components have already been processed
// check if all components have already been processed
...
...
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