From 287865823c402d086f1b6615bdb72333c276924c Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 22 Oct 2010 11:51:29 +0100 Subject: [PATCH] ENH: ptscotchDecomp : added bit pseudo code for writing graph file --- .../decompose/ptscotchDecomp/ptscotchDecomp.C | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.C b/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.C index 98f231cf48..ff262c5645 100644 --- a/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.C +++ b/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.C @@ -180,17 +180,31 @@ Foam::label Foam::ptscotchDecomp::decompose // Info<< "Dumping Scotch graph file to " << str.name() << endl // << "Use this in combination with gpart." << endl; // -// label version = 0; +// // Distributed graph file (.grf) +// label version = 2; // str << version << nl; -// // Numer of vertices -// str << xadj.size()-1 << ' ' << adjncy.size() << nl; +// // Number of files + +// // Number of files (procglbnbr) +// str << Pstream::nProcs(); +// // My file number (procloc) +// str << ' ' << Pstream::myProcNo() << nl; +// +// // Total number of vertices (vertglbnbr) +// str << returnReduce(mesh.nCells(), sumOp