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
ecf99819
Commit
ecf99819
authored
Dec 03, 2010
by
mattijs
Browse files
ENH: redistributeMeshPar : allow generic
parent
c5822f57
Changes
3
Show whitespace changes
Inline
Side-by-side
applications/utilities/parallelProcessing/redistributeMeshPar/Make/options
View file @
ecf99819
...
...
@@ -6,6 +6,7 @@ EXE_INC = \
EXE_LIBS = \
-lfiniteVolume \
-lgenericPatchFields \
-ldecompositionMethods \
-L$(FOAM_LIBBIN)/dummy -lptscotchDecomp \
-lmeshTools \
...
...
applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C
View file @
ecf99819
...
...
@@ -87,12 +87,6 @@ autoPtr<fvMesh> createMesh
{
// Create dummy mesh. Only used on procs that don't have mesh.
// Switch timeStamp checking to one which does not do any
// parallel sync
regIOobject
::
fileCheckTypes
oldCheckType
=
regIOobject
::
fileModificationChecking
;
regIOobject
::
fileModificationChecking
=
regIOobject
::
timeStamp
;
{
IOdictionary
fvSolution
(
...
...
@@ -146,8 +140,6 @@ autoPtr<fvMesh> createMesh
Pout
<<
"Writing dummy mesh to "
<<
dummyMesh
.
polyMesh
::
objectPath
()
<<
endl
;
dummyMesh
.
write
();
regIOobject
::
fileModificationChecking
=
oldCheckType
;
}
Pout
<<
"Reading mesh from "
<<
io
.
objectPath
()
<<
endl
;
...
...
@@ -569,8 +561,13 @@ int main(int argc, char *argv[])
mkDir
(
args
.
path
());
}
// Switch timeStamp checking to one which does not do any
// parallel sync for same reason
regIOobject
::
fileModificationChecking
=
regIOobject
::
timeStamp
;
# include "createTime.H"
word
regionName
=
polyMesh
::
defaultRegion
;
fileName
meshSubDir
;
...
...
bin/tools/RunFunctions
View file @
ecf99819
...
...
@@ -57,8 +57,10 @@ runParallel()
then
echo
"
$APP_RUN
already run on
$PWD
: remove log file to run"
else
echo
"Running
$APP_RUN
in parallel on
$PWD
using
$1
processes"
(
mpirun
-np
$1
$APP_RUN
-parallel
< /dev/null
>
log.
$APP_RUN
2>&1
)
nProcs
=
$1
shift
echo
"Running
$APP_RUN
in parallel on
$PWD
using
$nProcs
processes"
(
mpirun
-np
$nProcs
$APP_RUN
-parallel
$*
< /dev/null
>
log.
$APP_RUN
2>&1
)
fi
}
...
...
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