Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
ag-ohlberger
dune-community
dune-gdt
Commits
c803c430
Commit
c803c430
authored
11 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[localevaluation.elliptic] added some explicit specializations
* otherwise the compiler can not select in case of 1d grids
parent
d96bc392
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/gdt/localevaluation/elliptic.hh
+31
-4
31 additions, 4 deletions
dune/gdt/localevaluation/elliptic.hh
with
31 additions
and
4 deletions
dune/gdt/localevaluation/elliptic.hh
+
31
−
4
View file @
c803c430
...
...
@@ -155,17 +155,45 @@ public:
}
// ... evaluate< ..., 1, 1 >(...)
/**
* \brief Computes an elliptic evaluation for a matrix-valued local function and matrix-valued basefunctionsets.
* \brief Computes an elliptic evaluation for a
2x2
matrix-valued local function and matrix-valued basefunctionsets.
* \tparam E EntityType
* \tparam D DomainFieldType
* \tparam d dimDomain
* \tparam R RangeFieldType
* \note Unfortunately we need this explicit specialization, otherwise the compiler will complain for 1d grids.
*/
template
<
class
E
,
class
D
,
int
d
,
class
R
>
static
void
evaluate
(
const
Stuff
::
LocalfunctionInterface
<
E
,
D
,
d
,
R
,
d
,
d
>&
localFunction
,
static
void
evaluate
(
const
Stuff
::
LocalfunctionInterface
<
E
,
D
,
d
,
R
,
2
,
2
>&
localFunction
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
testBase
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
ansatzBase
,
const
Dune
::
FieldVector
<
D
,
d
>&
localPoint
,
Dune
::
DynamicMatrix
<
R
>&
ret
)
{
evaluate_matrix_valued_
(
localFunction
,
testBase
,
ansatzBase
,
localPoint
,
ret
);
}
/**
* \brief Computes an elliptic evaluation for a 3x3 matrix-valued local function and matrix-valued basefunctionsets.
* \tparam E EntityType
* \tparam D DomainFieldType
* \tparam d dimDomain
* \tparam R RangeFieldType
* \note Unfortunately we need this explicit specialization, otherwise the compiler will complain for 1d grids.
*/
template
<
class
E
,
class
D
,
int
d
,
class
R
>
static
void
evaluate
(
const
Stuff
::
LocalfunctionInterface
<
E
,
D
,
d
,
R
,
3
,
3
>&
localFunction
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
testBase
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
ansatzBase
,
const
Dune
::
FieldVector
<
D
,
d
>&
localPoint
,
Dune
::
DynamicMatrix
<
R
>&
ret
)
{
evaluate_matrix_valued_
(
localFunction
,
testBase
,
ansatzBase
,
localPoint
,
ret
);
}
private
:
template
<
class
E
,
class
D
,
int
d
,
class
R
>
static
void
evaluate_matrix_valued_
(
const
Stuff
::
LocalfunctionInterface
<
E
,
D
,
d
,
R
,
d
,
d
>&
localFunction
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
testBase
,
const
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>&
ansatzBase
,
const
Dune
::
FieldVector
<
D
,
d
>&
localPoint
,
Dune
::
DynamicMatrix
<
R
>&
ret
)
{
typedef
typename
Stuff
::
LocalfunctionInterface
<
E
,
D
,
d
,
R
,
d
,
d
>::
RangeType
DiffusionRangeType
;
typedef
typename
Stuff
::
LocalfunctionSetInterface
<
E
,
D
,
d
,
R
,
1
,
1
>::
JacobianRangeType
JacobianRangeType
;
...
...
@@ -192,9 +220,8 @@ public:
retRow
[
jj
]
=
product
*
testGradients
[
ii
][
0
];
}
}
}
// ... evaluate
< ..., d, d >
(...)
}
// ... evaluate
_matrix_valued_
(...)
private
:
const
LocalizableFunctionType
&
inducingFunction_
;
};
// class LocalElliptic
...
...
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