Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
EXADUNE
dune-grid
Commits
bf1bfe46
Commit
bf1bfe46
authored
15 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
strange bug when dgfoned was with MPI
[[Imported from SVN: r5934]]
parent
830c80ef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/io/file/dgfparser/entitykey_inline.hh
+3
-19
3 additions, 19 deletions
grid/io/file/dgfparser/entitykey_inline.hh
with
3 additions
and
19 deletions
grid/io/file/dgfparser/entitykey_inline.hh
+
3
−
19
View file @
bf1bfe46
...
...
@@ -115,32 +115,16 @@ namespace Dune
ElementFaceUtil
::
generateCubeFace
(
const
std
::
vector
<
unsigned
int
>
&
element
,
int
f
)
{
ReferenceCube
<
double
,
dimworld
>
ref
;
static
const
ReferenceCube
<
double
,
dimworld
>
ref
;
const
unsigned
int
size
=
ref
.
size
(
f
,
1
,
dimworld
);
std
::
vector
<
unsigned
int
>
k
(
size
);
/*
for (int i=0;i<size;i++) {
k[i] = element[ref.subEntity(f,1,i,dimworld)];
}
if (dimworld==3) {
if (f==2 || f==1 || f==5) {
int ktmp=k[0];
k[0]=k[1];
k[1]=ktmp;
}
else {
int ktmp=k[2];
k[2]=k[3];
k[3]=ktmp;
}
}
*/
const
int
face
=
ElementTopologyMapping
<
hexa
>
::
dune2aluFace
(
f
);
for
(
unsigned
int
i
=
0
;
i
<
size
;
++
i
)
{
// int idxdune = ref.subEntity(f,1,i,dimworld);
int
idx
=
ElementTopologyMapping
<
hexa
>
::
alu2duneFaceVertex
(
face
,
i
);
int
idxdune
=
ref
.
subEntity
(
f
,
1
,
idx
,
dimworld
);
assert
(
idxdune
<
(
int
)
element
.
size
()
);
k
[
size
-
(
i
+
1
)
]
=
element
[
idxdune
];
}
return
DGFEntityKey
<
unsigned
int
>
(
k
);
...
...
@@ -152,7 +136,7 @@ namespace Dune
ElementFaceUtil
::
generateSimplexFace
(
const
std
::
vector
<
unsigned
int
>
&
element
,
int
f
)
{
ReferenceSimplex
<
double
,
dimworld
>
ref
;
static
const
ReferenceSimplex
<
double
,
dimworld
>
ref
;
const
unsigned
int
size
=
ref
.
size
(
f
,
1
,
dimworld
);
std
::
vector
<
unsigned
int
>
k
(
size
);
for
(
unsigned
int
i
=
0
;
i
<
size
;
++
i
)
...
...
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