Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-alugrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
ag-ohlberger
dune-community
dune-alugrid
Commits
9c6f1e45
Commit
9c6f1e45
authored
6 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup][DGF] only create default projection on each core.
parent
55a22eb8
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/alugrid/dgf.hh
+26
-23
26 additions, 23 deletions
dune/alugrid/dgf.hh
with
26 additions
and
23 deletions
dune/alugrid/dgf.hh
+
26
−
23
View file @
9c6f1e45
...
...
@@ -544,34 +544,37 @@ namespace Dune
if
(
projection
)
factory_
.
insertBoundaryProjection
(
*
projection
);
const
size_t
numBoundaryProjections
=
projectionBlock
.
numBoundaryProjections
();
GeometryType
type
(
faceTopoId
,
dimgrid
-
1
);
for
(
size_t
i
=
0
;
i
<
numBoundaryProjections
;
++
i
)
if
(
rank
==
0
||
globalVertexIndexFound
)
{
const
std
::
vector
<
unsigned
int
>
&
vertices
=
projectionBlock
.
boundaryFace
(
i
);
const
DuneBoundaryProjection
<
dimworld
>
*
projection
=
projectionBlock
.
boundaryProjection
<
dimworld
>
(
i
);
factory_
.
insertBoundaryProjection
(
type
,
vertices
,
projection
);
}
const
size_t
numBoundaryProjections
=
projectionBlock
.
numBoundaryProjections
();
GeometryType
type
(
faceTopoId
,
dimgrid
-
1
);
for
(
size_t
i
=
0
;
i
<
numBoundaryProjections
;
++
i
)
{
const
std
::
vector
<
unsigned
int
>
&
vertices
=
projectionBlock
.
boundaryFace
(
i
);
const
DuneBoundaryProjection
<
dimworld
>
*
projection
=
projectionBlock
.
boundaryProjection
<
dimworld
>
(
i
);
factory_
.
insertBoundaryProjection
(
type
,
vertices
,
projection
);
}
typedef
dgf
::
PeriodicFaceTransformationBlock
::
AffineTransformation
Transformation
;
dgf
::
PeriodicFaceTransformationBlock
trafoBlock
(
file
,
dimworld
);
const
int
size
=
trafoBlock
.
numTransformations
();
for
(
int
k
=
0
;
k
<
size
;
++
k
)
{
const
Transformation
&
trafo
=
trafoBlock
.
transformation
(
k
);
typedef
dgf
::
PeriodicFaceTransformationBlock
::
AffineTransformation
Transformation
;
dgf
::
PeriodicFaceTransformationBlock
trafoBlock
(
file
,
dimworld
);
const
int
size
=
trafoBlock
.
numTransformations
();
for
(
int
k
=
0
;
k
<
size
;
++
k
)
{
const
Transformation
&
trafo
=
trafoBlock
.
transformation
(
k
);
typename
GridFactory
::
WorldMatrix
matrix
;
for
(
int
i
=
0
;
i
<
dimworld
;
++
i
)
for
(
int
j
=
0
;
j
<
dimworld
;
++
j
)
matrix
[
i
][
j
]
=
trafo
.
matrix
(
i
,
j
);
typename
GridFactory
::
WorldMatrix
matrix
;
for
(
int
i
=
0
;
i
<
dimworld
;
++
i
)
for
(
int
j
=
0
;
j
<
dimworld
;
++
j
)
matrix
[
i
][
j
]
=
trafo
.
matrix
(
i
,
j
);
typename
GridFactory
::
WorldVector
shift
;
for
(
int
i
=
0
;
i
<
dimworld
;
++
i
)
shift
[
i
]
=
trafo
.
shift
[
i
];
typename
GridFactory
::
WorldVector
shift
;
for
(
int
i
=
0
;
i
<
dimworld
;
++
i
)
shift
[
i
]
=
trafo
.
shift
[
i
];
factory_
.
insertFaceTransformation
(
matrix
,
shift
);
}
factory_
.
insertFaceTransformation
(
matrix
,
shift
);
}
}
// end rank == 0 || globalVertexIndexBlock
int
addMissingBoundariesLocal
=
(
dgf_
.
nofelements
>
0
)
&&
dgf_
.
facemap
.
empty
();
int
addMissingBoundariesGlobal
=
addMissingBoundariesLocal
;
...
...
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