diff --git a/src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.C b/src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.C index 392502b034..5aae2c1b46 100644 --- a/src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.C +++ b/src/postProcessing/functionObjects/jobControl/externalCoupled/externalCoupledFunctionObject.C @@ -49,7 +49,7 @@ namespace Foam Foam::word Foam::externalCoupledFunctionObject::lockName = "OpenFOAM"; -Foam::string Foam::externalCoupledFunctionObject::patchKey = "# Patch: "; +Foam::string Foam::externalCoupledFunctionObject::patchKey = "// Patch:"; template<> const char* Foam::NamedEnum @@ -431,11 +431,6 @@ void Foam::externalCoupledFunctionObject::writeGeometry fileName dir(groupDir(commsDir, compositeName(regionNames), groupName)); - //if (log_) - { - Info<< typeName << ": writing geometry to " << dir << endl; - } - autoPtr osPointsPtr; autoPtr osFacesPtr; if (Pstream::master()) @@ -443,12 +438,20 @@ void Foam::externalCoupledFunctionObject::writeGeometry mkDir(dir); osPointsPtr.reset(new OFstream(dir/"patchPoints")); osFacesPtr.reset(new OFstream(dir/"patchFaces")); + + osPointsPtr() << "// Group: " << groupName << endl; + osFacesPtr() << "// Group: " << groupName << endl; + + Info<< typeName << ": writing geometry to " << dir << endl; } + // Individual region/patch entries - DynamicList allMeshesFaces; - DynamicField allMeshesPoints; + DynamicList allFaces; + DynamicField allPoints; + labelList pointToGlobal; + labelList uniquePointIDs; forAll(meshes, meshI) { const fvMesh& mesh = meshes[meshI]; @@ -461,109 +464,66 @@ void Foam::externalCoupledFunctionObject::writeGeometry ).sortedToc() ); - // Count faces - label nFaces = 0; - forAll(patchIDs, i) - { - nFaces += mesh.boundaryMesh()[patchIDs[i]].size(); - } - - // Collect faces - DynamicList