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
890313f9
Commit
890313f9
authored
14 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: redistributeMeshPar : disable reading of dummy dictionary
parent
f1b5f8d0
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
applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C
+14
-52
14 additions, 52 deletions
...allelProcessing/redistributeMeshPar/redistributeMeshPar.C
with
14 additions
and
52 deletions
applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C
+
14
−
52
View file @
890313f9
...
...
@@ -86,51 +86,11 @@ autoPtr<fvMesh> createMesh
if
(
!
haveMesh
)
{
// Create dummy mesh. Only used on procs that don't have mesh.
{
IOdictionary
fvSolution
(
IOobject
(
"fvSolution"
,
runTime
.
system
(),
runTime
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
)
);
Pout
<<
"Writing dummy "
<<
fvSolution
.
objectPath
()
<<
endl
;
fvSolution
.
regIOobject
::
write
();
}
{
IOdictionary
fvSchemes
(
IOobject
(
"fvSchemes"
,
runTime
.
system
(),
runTime
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
)
);
fvSchemes
.
add
(
"divSchemes"
,
dictionary
());
fvSchemes
.
add
(
"gradSchemes"
,
dictionary
());
fvSchemes
.
add
(
"laplacianSchemes"
,
dictionary
());
Pout
<<
"Writing dummy "
<<
fvSchemes
.
objectPath
()
<<
endl
;
fvSchemes
.
regIOobject
::
write
();
}
Pout
<<
"Creating dummy mesh from "
<<
io
.
objectPath
()
<<
endl
;
IOobject
noReadIO
(
io
);
noReadIO
.
readOpt
()
=
IOobject
::
NO_READ
;
fvMesh
dummyMesh
(
IOobject
(
io
.
name
(),
io
.
instance
(),
io
.
db
(),
IOobject
::
NO_READ
),
noReadIO
,
xferCopy
(
pointField
()),
xferCopy
(
faceList
()),
xferCopy
(
labelList
()),
...
...
@@ -521,7 +481,7 @@ void compareFields
{
if
(
mag
(
aBoundary
[
i
]
-
bBoundary
[
i
])
>
tolDim
)
{
FatalError
In
Warning
In
(
"compareFields"
"(const scalar, const volVectorField&"
...
...
@@ -532,7 +492,9 @@ void compareFields
<<
" cc:"
<<
endl
<<
" real :"
<<
aBoundary
[
i
]
<<
endl
<<
" mapped :"
<<
bBoundary
[
i
]
<<
endl
<<
abort
(
FatalError
);
<<
"This might be just a precision entry"
<<
" on writing the mesh."
<<
endl
;
//<< abort(FatalError);
}
}
}
...
...
@@ -554,16 +516,16 @@ int main(int argc, char *argv[])
);
# include "setRootCase.H"
// Create processor directory if non-existing
if
(
!
Pstream
::
master
()
&&
!
isDir
(
args
.
path
()))
{
Pout
<<
"Creating case directory "
<<
args
.
path
()
<<
endl
;
mkDir
(
args
.
path
());
}
//- Not useful anymore. See above.
//// Create processor directory if non-existing
//if (!Pstream::master() && !isDir(args.path()))
//{
// Pout<< "Creating case directory " << args.path() << endl;
// mkDir(args.path());
//}
# include "createTime.H"
word
regionName
=
polyMesh
::
defaultRegion
;
fileName
meshSubDir
;
...
...
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