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
2d602a79
Commit
2d602a79
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove code that existed twice after the recent refactoring
[[Imported from SVN: r6428]]
parent
dc7a62e4
Branches
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
test/unitvectortest.cc
+0
-31
0 additions, 31 deletions
test/unitvectortest.cc
with
0 additions
and
31 deletions
test/unitvectortest.cc
+
0
−
31
View file @
2d602a79
...
...
@@ -156,37 +156,6 @@ void testMixedDerivativesOfSquaredDistance(const TargetSpace& a, const TargetSpa
std
::
cout
<<
"d1d2 FD :"
<<
std
::
endl
<<
d1d2_fd
<<
std
::
endl
;
}
/////////////////////////////////////////////////////////////////////////////////////////////
// Test mixed third derivative with respect to first (once) and second (twice) argument
/////////////////////////////////////////////////////////////////////////////////////////////
Tensor3
<
double
,
dim
,
dim
,
dim
>
d1d2d2
=
TargetSpace
::
thirdDerivativeOfDistanceSquaredWRTFirst1AndSecond2Argument
(
a
,
b
);
Tensor3
<
double
,
dim
,
dim
,
dim
>
d1d2d2_fd
;
for
(
size_t
i
=
0
;
i
<
dim
;
i
++
)
{
FieldVector
<
double
,
dim
>
aPlus
=
a
.
globalCoordinates
();
FieldVector
<
double
,
dim
>
aMinus
=
a
.
globalCoordinates
();
aPlus
[
i
]
+=
eps
;
aMinus
[
i
]
-=
eps
;
FieldMatrix
<
double
,
dim
,
dim
>
hPlus
=
getSecondDerivativeOfSecondArgumentFD
<
TargetSpace
,
dim
>
(
TargetSpace
(
aPlus
),
b
);
FieldMatrix
<
double
,
dim
,
dim
>
hMinus
=
getSecondDerivativeOfSecondArgumentFD
<
TargetSpace
,
dim
>
(
TargetSpace
(
aMinus
),
b
);
d1d2d2_fd
[
i
]
=
hPlus
;
d1d2d2_fd
[
i
]
-=
hMinus
;
d1d2d2_fd
[
i
]
/=
2
*
eps
;
}
if
(
(
d1d2d2
-
d1d2d2_fd
).
infinity_norm
()
>
100
*
eps
)
{
std
::
cout
<<
"Analytical mixed third derivative does not match fd approximation."
<<
std
::
endl
;
std
::
cout
<<
"d1d2d2 Analytical:"
<<
std
::
endl
<<
d1d2d2
<<
std
::
endl
;
std
::
cout
<<
"d1d2d2 FD :"
<<
std
::
endl
<<
d1d2d2_fd
<<
std
::
endl
;
}
}
template
<
class
TargetSpace
,
int
dim
>
...
...
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