| 42 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
| 43 | |
| 44 | void Foam::meshReader::addPolyBoundaryFace |
| 45 | ( |
| 46 | const label cellId, |
| 47 | const label cellFaceId, |
| 48 | const label nCreatedFaces |
| 49 | ) |
| 50 | { |
| 51 | #ifdef DEBUG_BOUNDARY |
| 52 | Info<< nCreatedFaces |
| 53 | << " add bnd for cell " << cellId |
| 54 | << " face " << cellFaceId |
| 55 | << " (original cell " << origCellId_[cellId] << ")" |
| 56 | << endl; |
| 57 | #endif |
| 58 | |
| 59 | // standard case: volume cells |
| 60 | const face& thisFace = cellFaces_[cellId][cellFaceId]; |
| 61 | |
| 62 | // Debugging |
| 63 | if (cellPolys_[cellId][cellFaceId] > nInternalFaces_) |
| 64 | { |
| 65 | InfoInFunction |
| 66 | << "Problem with face: " << thisFace << endl |
| 67 | << "Probably multiple definitions " |
| 68 | << "of a single boundary face." << endl |
| 69 | << endl; |
| 70 | } |
| 71 | else if (cellPolys_[cellId][cellFaceId] >= 0) |
| 72 | { |
| 73 | InfoInFunction |
| 74 | << "Problem with face: " << thisFace << endl |
| 75 | << "Probably trying to define a boundary face " |
| 76 | << "on a previously matched internal face." << endl |
| 77 | << "Internal face: " |
| 78 | << meshFaces_[cellPolys_[cellId][cellFaceId]] |
| 79 | << endl; |
| 80 | } |
| 81 | |
| 82 | meshFaces_[nCreatedFaces] = thisFace; |
| 83 | cellPolys_[cellId][cellFaceId] = nCreatedFaces; |
| 84 | } |
| 85 | |
| 86 | |
| 87 | void Foam::meshReader::addPolyBoundaryFace |
no outgoing calls
no test coverage detected