Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Patrick Jaap
dune-solvers
Commits
25bbbe93
Commit
25bbbe93
authored
9 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Don't mix up grid dimension and world dimension
Otherwise the code won't compile when the two dimensions differ.
parent
c554e576
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
dune/solvers/common/permutationmanager.hh
+5
-4
5 additions, 4 deletions
dune/solvers/common/permutationmanager.hh
with
5 additions
and
4 deletions
dune/solvers/common/permutationmanager.hh
+
5
−
4
View file @
25bbbe93
...
...
@@ -168,15 +168,16 @@ public:
#endif
static
const
int
dim
=
GridType
::
dimension
;
static
const
int
dimworld
=
GridType
::
dimensionworld
;
typedef
typename
GridViewType
::
template
Codim
<
dim
>
::
Iterator
NodeIterator
;
typedef
typename
GridType
::
template
Codim
<
dim
>
::
Geometry
NodeGeometry
;
typedef
Dune
::
FieldVector
<
double
,
dim
>
DomainPointType
;
// type of point in the domain
typedef
Node
<
DomainPointType
,
dim
>
NodeType
;
// type of nodes
typedef
Dune
::
FieldVector
<
double
,
dimworld
>
DomainPointType
;
// type of point in the domain
typedef
Dune
::
FieldVector
<
typename
GridType
::
ctype
,
dimworld
>
CoordinateType
;
typedef
Node
<
CoordinateType
,
dim
>
NodeType
;
// type of nodes
typedef
std
::
vector
<
NodeType
>
NodeListType
;
// array type list of nodes
typedef
Dune
::
FieldVector
<
typename
GridType
::
ctype
,
GridType
::
dimensionworld
>
CoordinateType
;
const
GridViewType
gridView_
;
...
...
@@ -226,7 +227,7 @@ private:
{
const
NodeGeometry
&
node_geometry
=
node
->
geometry
();
DomainPoint
Type
global_coordinate_node
=
node_geometry
.
corner
(
0
);
Coordinate
Type
global_coordinate_node
=
node_geometry
.
corner
(
0
);
node_list_
[
idSet
.
index
(
*
node
)].
set_node_index
(
idSet
.
index
(
*
node
)
);
node_list_
[
idSet
.
index
(
*
node
)].
set_permuted_node_index
(
idSet
.
index
(
*
node
)
);
...
...
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