ENH: ptscotchDecomp : added bit pseudo code for writing graph file

This commit is contained in:
mattijs
2010-10-22 11:51:29 +01:00
parent e44359e190
commit 287865823c

View File

@ -180,17 +180,31 @@ Foam::label Foam::ptscotchDecomp::decompose
// Info<< "Dumping Scotch graph file to " << str.name() << endl // Info<< "Dumping Scotch graph file to " << str.name() << endl
// << "Use this in combination with gpart." << endl; // << "Use this in combination with gpart." << endl;
// //
// label version = 0; // // Distributed graph file (.grf)
// label version = 2;
// str << version << nl; // str << version << nl;
// // Numer of vertices // // Number of files
// str << xadj.size()-1 << ' ' << adjncy.size() << nl;
// // 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<label>());
// // Total number of connections (edgeglbnbr)
// str << ' ' << returnReduce(xadj[mesh.nCells()], sumOp<label>())
// << nl;
// // Local number of vertices (vertlocnbr)
// str << mesh.nCells();
// // Local number of connections (edgelocnbr)
// str << ' ' << xadj[mesh.nCells()] << nl;
// // Numbering starts from 0 // // Numbering starts from 0
// label baseval = 0; // label baseval = 0;
// // Has weights? // // Start of my global vertices (procdsptab[proclocnum])
// label hasEdgeWeights = 0; // str << ' ' << globalCells.toGlobal(0);
// label hasVertexWeights = 0; // 100*hasVertlabels+10*hasEdgeWeights+1*hasVertWeighs
// label numericflag = 10*hasEdgeWeights+hasVertexWeights; // str << ' ' << "0" << nl;
// str << baseval << ' ' << numericflag << nl;
// for (label cellI = 0; cellI < xadj.size()-1; cellI++) // for (label cellI = 0; cellI < xadj.size()-1; cellI++)
// { // {
// label start = xadj[cellI]; // label start = xadj[cellI];