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
45f5ef5a
Commit
45f5ef5a
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
constification
[[Imported from SVN: r6215]]
parent
ac1d74bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/localgeodesicfefunction.hh
+6
-6
6 additions, 6 deletions
dune/gfe/localgeodesicfefunction.hh
with
6 additions
and
6 deletions
dune/gfe/localgeodesicfefunction.hh
+
6
−
6
View file @
45f5ef5a
...
...
@@ -51,13 +51,13 @@ public:
{}
/** \brief Evaluate the function */
TargetSpace
evaluate
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
);
TargetSpace
evaluate
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
;
/** \brief Evaluate the derivative of the function */
Dune
::
FieldMatrix
<
ctype
,
EmbeddedTangentVector
::
size
,
dim
>
evaluateDerivative
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
);
Dune
::
FieldMatrix
<
ctype
,
EmbeddedTangentVector
::
size
,
dim
>
evaluateDerivative
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
;
/** \brief For debugging: Evaluate the derivative of the function using a finite-difference approximation*/
Dune
::
FieldMatrix
<
ctype
,
EmbeddedTangentVector
::
size
,
dim
>
evaluateDerivativeFD
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
);
Dune
::
FieldMatrix
<
ctype
,
EmbeddedTangentVector
::
size
,
dim
>
evaluateDerivativeFD
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
;
private
:
...
...
@@ -115,7 +115,7 @@ private:
template
<
int
dim
,
class
ctype
,
class
TargetSpace
>
TargetSpace
LocalGeodesicFEFunction
<
dim
,
ctype
,
TargetSpace
>::
evaluate
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
evaluate
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
{
// First compute the coordinates on the standard simplex (in R^{n+1})
std
::
vector
<
ctype
>
w
=
barycentricCoordinates
(
local
);
...
...
@@ -140,7 +140,7 @@ evaluate(const Dune::FieldVector<ctype, dim>& local)
template
<
int
dim
,
class
ctype
,
class
TargetSpace
>
Dune
::
FieldMatrix
<
ctype
,
TargetSpace
::
EmbeddedTangentVector
::
size
,
dim
>
LocalGeodesicFEFunction
<
dim
,
ctype
,
TargetSpace
>::
evaluateDerivative
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
evaluateDerivative
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
{
const
int
targetDim
=
EmbeddedTangentVector
::
size
;
...
...
@@ -216,7 +216,7 @@ evaluateDerivative(const Dune::FieldVector<ctype, dim>& local)
template
<
int
dim
,
class
ctype
,
class
TargetSpace
>
Dune
::
FieldMatrix
<
ctype
,
TargetSpace
::
EmbeddedTangentVector
::
size
,
dim
>
LocalGeodesicFEFunction
<
dim
,
ctype
,
TargetSpace
>::
evaluateDerivativeFD
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
evaluateDerivativeFD
(
const
Dune
::
FieldVector
<
ctype
,
dim
>&
local
)
const
{
double
eps
=
1e-6
;
...
...
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