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
fabc9a85
Commit
fabc9a85
authored
9 years ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Switch the harmonicmaps code to Lagrange elements again
And make that code path work again!
parent
1ad70b7d
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
src/harmonicmaps.cc
+4
-3
4 additions, 3 deletions
src/harmonicmaps.cc
with
4 additions
and
3 deletions
src/harmonicmaps.cc
+
4
−
3
View file @
fabc9a85
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include
<dune/grid/io/file/vtk.hh>
#include
<dune/grid/io/file/vtk.hh>
#include
<dune/functions/gridfunctions/discretescalarglobalbasisfunction.hh>
#include
<dune/functions/gridfunctions/discretescalarglobalbasisfunction.hh>
#include
<dune/functions/functionspacebases/pq1nodalbasis.hh>
#include
<dune/functions/functionspacebases/pqknodalbasis.hh>
#include
<dune/functions/functionspacebases/pqknodalbasis.hh>
#include
<dune/functions/functionspacebases/bsplinebasis.hh>
#include
<dune/functions/functionspacebases/bsplinebasis.hh>
...
@@ -58,7 +57,7 @@ typedef UnitVector<double,3> TargetSpace;
...
@@ -58,7 +57,7 @@ typedef UnitVector<double,3> TargetSpace;
// Tangent vector of the image space
// Tangent vector of the image space
const
int
blocksize
=
TargetSpace
::
TangentVector
::
dimension
;
const
int
blocksize
=
TargetSpace
::
TangentVector
::
dimension
;
//
#define LAGRANGE
#define LAGRANGE
using
namespace
Dune
;
using
namespace
Dune
;
...
@@ -91,7 +90,9 @@ int main (int argc, char *argv[]) try
...
@@ -91,7 +90,9 @@ int main (int argc, char *argv[]) try
// read problem settings
// read problem settings
const
int
numLevels
=
parameterSet
.
get
<
int
>
(
"numLevels"
);
const
int
numLevels
=
parameterSet
.
get
<
int
>
(
"numLevels"
);
#ifndef LAGRANGE
const
int
order
=
parameterSet
.
get
<
int
>
(
"order"
);
const
int
order
=
parameterSet
.
get
<
int
>
(
"order"
);
#endif
// read solver settings
// read solver settings
const
double
tolerance
=
parameterSet
.
get
<
double
>
(
"tolerance"
);
const
double
tolerance
=
parameterSet
.
get
<
double
>
(
"tolerance"
);
const
int
maxTrustRegionSteps
=
parameterSet
.
get
<
int
>
(
"maxTrustRegionSteps"
);
const
int
maxTrustRegionSteps
=
parameterSet
.
get
<
int
>
(
"maxTrustRegionSteps"
);
...
@@ -136,7 +137,7 @@ int main (int argc, char *argv[]) try
...
@@ -136,7 +137,7 @@ int main (int argc, char *argv[]) try
// Construct the scalar function space basis corresponding to the GFE space
// Construct the scalar function space basis corresponding to the GFE space
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
#ifdef LAGRANGE
#ifdef LAGRANGE
typedef
Dune
::
Functions
::
PQ
K
NodalBasis
<
typename
GridType
::
LeafGridView
,
1
>
FEBasis
;
typedef
Dune
::
Functions
::
PQ
k
NodalBasis
<
typename
GridType
::
LeafGridView
,
1
>
FEBasis
;
FEBasis
feBasis
(
grid
->
leafGridView
());
FEBasis
feBasis
(
grid
->
leafGridView
());
#else
#else
typedef
Dune
::
Functions
::
BSplineBasis
<
typename
GridType
::
LeafGridView
>
FEBasis
;
typedef
Dune
::
Functions
::
BSplineBasis
<
typename
GridType
::
LeafGridView
>
FEBasis
;
...
...
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