Merge commit 'OpenCFD/master' into olesenm

This commit is contained in:
Mark Olesen
2008-12-09 09:11:12 +01:00
3 changed files with 18 additions and 14 deletions

View File

@ -64,7 +64,7 @@ int main(int argc, char *argv[])
Info<< "\nWall heat fluxes [W]" << endl;
forAll(patchHeatFlux, patchi)
{
if (typeid(mesh.boundary()) == typeid(wallFvPatch))
if (typeid(mesh.boundary()[patchi]) == typeid(wallFvPatch))
{
Info<< mesh.boundary()[patchi].name()
<< " "

View File

@ -207,9 +207,12 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::autoMap
)
{
fixedValueFvPatchField<Type>::autoMap(m);
if (startSampledValues_.size() > 0)
{
startSampledValues_.autoMap(m);
endSampledValues_.autoMap(m);
}
}
template<class Type>

View File

@ -97,7 +97,11 @@ void Foam::distributedTriSurfaceMesh::splitSegment
point clipPt0, clipPt1;
// 1. Fully local already handled outside
// 1. Fully local already handled outside. Note: retest is cheap.
if (isLocal(procBb_[Pstream::myProcNo()], start, end))
{
return;
}
// 2. Check if fully inside other processor. Rare occurrence
@ -109,9 +113,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
{
const List<treeBoundBox>& bbs = procBb_[procI];
forAll(bbs, bbI)
{
if (bbs[bbI].contains(start) && bbs[bbI].contains(end))
if (isLocal(bbs, start, end))
{
//Pout<< " Completely remote segment:"
// << start << end << " on proc:" << procI << endl;
@ -122,7 +124,6 @@ void Foam::distributedTriSurfaceMesh::splitSegment
}
}
}
}
// 3. Not contained in single processor. Clip against proc bbs.