mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
mapFieldsPar: updated to enable mapping from source patches (instead of recreating)
- patchFields now get mapped (instead of created)
- with -consistent it now maps all patches except for processor ones (they are
the only ones that are processor-local)
- all constraint patches get evaluated after mapping to bring them up to date.
Patch contributed by Mattijs Janssens
This commit is contained in:
@ -263,11 +263,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (!consistent)
|
||||
{
|
||||
IOdictionary mapFieldsParDict
|
||||
IOdictionary mapFieldsDict
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"mapFieldsParDict",
|
||||
"mapFieldsDict",
|
||||
runTimeTarget.system(),
|
||||
runTimeTarget,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
@ -276,8 +276,8 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
mapFieldsParDict.lookup("patchMap") >> patchMap;
|
||||
mapFieldsParDict.lookup("cuttingPatches") >> cuttingPatches;
|
||||
mapFieldsDict.lookup("patchMap") >> patchMap;
|
||||
mapFieldsDict.lookup("cuttingPatches") >> cuttingPatches;
|
||||
}
|
||||
|
||||
#include "setTimeIndex.H"
|
||||
@ -326,7 +326,7 @@ int main(int argc, char *argv[])
|
||||
meshSource,
|
||||
meshTarget,
|
||||
patchMap,
|
||||
addProcessorPatches(meshTarget, cuttingPatches),
|
||||
cuttingPatches,
|
||||
mapMethod,
|
||||
subtract,
|
||||
selectedFields,
|
||||
|
||||
Reference in New Issue
Block a user