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
9e2d27fd
Commit
9e2d27fd
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
revert patches 6432 and 6437. I'll introduce a new method for a basis of the normal bundle
[[Imported from SVN: r6450]]
parent
003c2b5c
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/unitvector.hh
+5
-13
5 additions, 13 deletions
dune/gfe/unitvector.hh
with
5 additions
and
13 deletions
dune/gfe/unitvector.hh
+
5
−
13
View file @
9e2d27fd
...
...
@@ -97,16 +97,11 @@ public:
/** \brief The exponential map */
static
UnitVector
exp
(
const
UnitVector
&
p
,
const
TangentVector
&
v
)
{
Dune
::
FieldMatrix
<
double
,
N
,
N
>
frame
=
p
.
orthonormalFrame
();
Dune
::
FieldMatrix
<
double
,
N
-
1
,
N
>
frame
=
p
.
orthonormalFrame
();
EmbeddedTangentVector
ev
;
// This is frame.mtv for the matrix consisting of the first N-1 rows
for
(
size_t
i
=
0
;
i
<
N
;
++
i
)
{
ev
[
i
]
=
0
;
for
(
size_t
j
=
0
;
j
<
N
-
1
;
++
j
)
ev
[
i
]
+=
frame
[
j
][
i
]
*
v
[
j
];
}
frame
.
mtv
(
v
,
ev
);
return
exp
(
p
,
ev
);
}
...
...
@@ -292,16 +287,13 @@ public:
This basis is of course not globally continuous.
*/
Dune
::
FieldMatrix
<
double
,
N
,
N
>
orthonormalFrame
()
const
{
Dune
::
FieldMatrix
<
double
,
N
-
1
,
N
>
orthonormalFrame
()
const
{
Dune
::
FieldMatrix
<
double
,
N
,
N
>
result
;
Dune
::
FieldMatrix
<
double
,
N
-
1
,
N
>
result
;
if
(
N
==
2
)
{
// spans the tangent space
result
[
0
][
0
]
=
-
data_
[
1
];
result
[
0
][
1
]
=
data_
[
0
];
// spans the normal space
result
[
1
]
=
data_
;
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"orthonormalFrame for N!=2!"
);
...
...
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