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
34025912
Commit
34025912
authored
5 years ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Generalize for different target spaces
parent
6c2eda51
No related branches found
No related tags found
No related merge requests found
Pipeline
#2866
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/harmonicenergytest.cc
+4
-5
4 additions, 5 deletions
test/harmonicenergytest.cc
with
4 additions
and
5 deletions
test/harmonicenergytest.cc
+
4
−
5
View file @
34025912
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
const
int
dim
=
2
;
const
int
dim
=
2
;
typedef
UnitVector
<
double
,
3
>
TargetSpace
;
using
namespace
Dune
;
using
namespace
Dune
;
...
@@ -28,7 +27,7 @@ double diameter(const std::vector<TargetSpace>& v)
...
@@ -28,7 +27,7 @@ double diameter(const std::vector<TargetSpace>& v)
return
d
;
return
d
;
}
}
template
<
class
Basis
>
template
<
class
Basis
,
class
TargetSpace
>
void
testEnergy
(
const
Basis
&
basis
,
const
std
::
vector
<
TargetSpace
>&
coefficients
)
void
testEnergy
(
const
Basis
&
basis
,
const
std
::
vector
<
TargetSpace
>&
coefficients
)
{
{
using
GridView
=
typename
Basis
::
GridView
;
using
GridView
=
typename
Basis
::
GridView
;
...
@@ -62,8 +61,8 @@ void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients
...
@@ -62,8 +61,8 @@ void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients
}
}
template
<
int
domainDim
>
template
<
int
domainDim
,
class
TargetSpace
>
void
test
UnitVector3d
()
void
test
()
{
{
// ////////////////////////////////////////////////////////
// ////////////////////////////////////////////////////////
// Make a test grid consisting of a single simplex
// Make a test grid consisting of a single simplex
...
@@ -128,5 +127,5 @@ int main(int argc, char** argv)
...
@@ -128,5 +127,5 @@ int main(int argc, char** argv)
{
{
MPIHelper
::
instance
(
argc
,
argv
);
MPIHelper
::
instance
(
argc
,
argv
);
testUnitVector
3d
<
2
>
();
test
<
2
,
UnitVector
<
double
,
3
>
>
();
}
}
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