Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
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
Analyze
Contributor 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
Development
openfoam
Commits
e0eb0c03
Commit
e0eb0c03
authored
13 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Added reverseDistribute helper to mappedPatchBase
parent
1a54a0c8
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
src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H
+20
-0
20 additions, 0 deletions
...meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H
with
20 additions
and
0 deletions
src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H
+
20
−
0
View file @
e0eb0c03
...
@@ -339,6 +339,26 @@ public:
...
@@ -339,6 +339,26 @@ public:
}
}
//- Wrapper around map/interpolate data distribution
template
<
class
Type
>
void
reverseDistribute
(
List
<
Type
>&
lst
)
const
{
switch
(
mode_
)
{
case
NEARESTPATCHFACEAMI
:
{
lst
=
AMI
().
interpolateToTarget
(
Field
<
Type
>
(
lst
.
xfer
()));
break
;
}
default
:
{
label
cSize
=
patch_
.
size
();
map
().
reverseDistribute
(
cSize
,
lst
);
}
}
}
//- Return reference to the parallel distribution map
//- Return reference to the parallel distribution map
const
mapDistribute
&
map
()
const
const
mapDistribute
&
map
()
const
{
{
...
...
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