Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8931e443
Commit
8931e443
authored
Dec 21, 2017
by
mattijs
Browse files
ENH: collated support. Fixes lumpedPointMotion in
#675
.
parent
2967be7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C
View file @
8931e443
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2016
-2017
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -1094,7 +1094,9 @@ int main(int argc, char *argv[])
// Update proc maps
if
(
cellProcAddressing
.
headerOk
())
{
if
(
cellProcAddressing
.
size
()
==
mesh
.
nCells
())
bool
localOk
=
(
cellProcAddressing
.
size
()
==
mesh
.
nCells
());
if
(
returnReduce
(
localOk
,
andOp
<
bool
>
()))
{
Info
<<
"Renumbering processor cell decomposition map "
<<
cellProcAddressing
.
name
()
<<
endl
;
...
...
@@ -1118,7 +1120,9 @@ int main(int argc, char *argv[])
if
(
faceProcAddressing
.
headerOk
())
{
if
(
faceProcAddressing
.
size
()
==
mesh
.
nFaces
())
bool
localOk
=
(
faceProcAddressing
.
size
()
==
mesh
.
nFaces
());
if
(
returnReduce
(
localOk
,
andOp
<
bool
>
()))
{
Info
<<
"Renumbering processor face decomposition map "
<<
faceProcAddressing
.
name
()
<<
endl
;
...
...
@@ -1158,7 +1162,9 @@ int main(int argc, char *argv[])
if
(
pointProcAddressing
.
headerOk
())
{
if
(
pointProcAddressing
.
size
()
==
mesh
.
nPoints
())
bool
localOk
=
(
pointProcAddressing
.
size
()
==
mesh
.
nPoints
());
if
(
returnReduce
(
localOk
,
andOp
<
bool
>
()))
{
Info
<<
"Renumbering processor point decomposition map "
<<
pointProcAddressing
.
name
()
<<
endl
;
...
...
@@ -1182,7 +1188,16 @@ int main(int argc, char *argv[])
if
(
boundaryProcAddressing
.
headerOk
())
{
if
(
boundaryProcAddressing
.
size
()
!=
mesh
.
boundaryMesh
().
size
())
bool
localOk
=
(
boundaryProcAddressing
.
size
()
==
mesh
.
boundaryMesh
().
size
()
);
if
(
returnReduce
(
localOk
,
andOp
<
bool
>
()))
{
// No renumbering needed
}
else
{
Info
<<
"Not writing inconsistent processor patch decomposition"
<<
" map "
<<
boundaryProcAddressing
.
filePath
()
<<
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment