ENH: decomposePar.C: add shortcircuit to avoid allocating point mappers

This commit is contained in:
mattijs
2011-12-21 16:16:54 +00:00
parent 704b33fa79
commit 7e95308c6b

View File

@ -528,7 +528,7 @@ int main(int argc, char *argv[])
<< "Cell number should be between 0 and " << "Cell number should be between 0 and "
<< mesh.nCells()-1 << nl << mesh.nCells()-1 << nl
<< "On this mesh the particle should be in cell " << "On this mesh the particle should be in cell "
<< mesh.findCell(iter().position()) << mesh.findCell(iter().position())
<< exit(FatalError); << exit(FatalError);
} }
@ -789,6 +789,14 @@ int main(int argc, char *argv[])
// Point fields // Point fields
if
(
pointScalarFields.size()
|| pointVectorFields.size()
|| pointSphericalTensorFields.size()
|| pointSymmTensorFields.size()
|| pointTensorFields.size()
)
{ {
labelIOList pointProcAddressing labelIOList pointProcAddressing
( (