Go to the documentation of this file.00001 {
00002
00003
00004
00005
00006
00007 label minFaceIndex = labelMax;
00008
00009 PtrList<labelIOList>& faceProcAddressing = procMeshes.faceProcAddressing();
00010
00011 forAll (faceProcAddressing, procI)
00012 {
00013 const labelList& curFaceAddr = faceProcAddressing[procI];
00014
00015 forAll (curFaceAddr, faceI)
00016 {
00017 if (mag(curFaceAddr[faceI]) < minFaceIndex)
00018 {
00019 minFaceIndex = mag(curFaceAddr[faceI]);
00020 }
00021 }
00022 }
00023
00024 if (minFaceIndex < 1)
00025 {
00026 WarningIn(args.executable())
00027 << "parallel decomposition addressing." << endl
00028 << "It looks like you are trying to reconstruct the case "
00029 << "decomposed with an earlier version of FOAM, which could\n"
00030 << "potentially cause compatibility problems. The code will "
00031 << "attempt to update the addressing automatically; in case of\n"
00032 << "failure, please repeat the decomposition of the case using "
00033 << "the current version fo decomposePar"
00034 << endl;
00035
00036 forAll (faceProcAddressing, procI)
00037 {
00038 labelList& curFaceAddr = faceProcAddressing[procI];
00039
00040 forAll (curFaceAddr, faceI)
00041 {
00042 curFaceAddr[faceI] += sign(curFaceAddr[faceI]);
00043 }
00044
00045 faceProcAddressing[procI].write();
00046 }
00047 }
00048 }
00049
00050