Formatting

This commit is contained in:
Hrvoje Jasak 2015-01-21 21:29:40 +00:00
parent d852431040
commit 7ba950d123
4 changed files with 20 additions and 22 deletions

View file

@ -192,7 +192,7 @@ GGIInterpolation<MasterPatch, SlavePatch>::polygonIntersection
( (
"GGIInterpolation<MasterPatch, SlavePatch>::" "GGIInterpolation<MasterPatch, SlavePatch>::"
"polygonIntersection" "polygonIntersection"
) << "Intersection might be wrong wrong: clipping side " ) << "Intersection might be wrong. Clipping side "
<< intersectionArea/clippingArea << " subject: " << intersectionArea/clippingArea << " subject: "
<< intersectionArea/subjectArea << endl; << intersectionArea/subjectArea << endl;
} }

View file

@ -52,7 +52,7 @@ GGIInterpolation<MasterPatch, SlavePatch>::faceBoundBoxExtendSpanFraction_
template<class MasterPatch, class SlavePatch> template<class MasterPatch, class SlavePatch>
const label const label
GGIInterpolation<MasterPatch, SlavePatch>::octreeSearchMinNLevel_ GGIInterpolation<MasterPatch, SlavePatch>::octreeSearchMinNLevel_
( (
debug::optimisationSwitch("GGIOctreeSearchMinNLevel", 3) debug::optimisationSwitch("GGIOctreeSearchMinNLevel", 3)
); );

View file

@ -279,8 +279,7 @@ public:
} }
// Destructor //- Destructor
virtual ~ggiPolyPatch(); virtual ~ggiPolyPatch();

View file

@ -31,7 +31,6 @@ Author
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// New. HJ, 12/Jun/2011
template<class Type> template<class Type>
Foam::tmp<Foam::Field<Type> > Foam::ggiPolyPatch::fastExpand Foam::tmp<Foam::Field<Type> > Foam::ggiPolyPatch::fastExpand
( (
@ -40,22 +39,6 @@ Foam::tmp<Foam::Field<Type> > Foam::ggiPolyPatch::fastExpand
{ {
// Check and expand the field from patch size to zone size // Check and expand the field from patch size to zone size
// with communication // with communication
// Algorithm:
// 1) Master processor holds maps of all zone addressing (data provided)
// and all remote zone addressing (data required)
// 2) Each processor will send the locally active data to the master
// 3) Master assembles all the data
// 4) Master sends to all processors the data they need to receive
//
// Notes:
// A) If the size of zone addressing is zero, data is not sent
// B) Communicated data on each processor has the size of live faces
// C) Expanded data will be equal to actual data from other processors
// only for the faces marked in remote; for other faces, it will be
// equal to zero
// D) On processor zero, complete data is available
// HJ, 4/Jun/2011
if (ff.size() != size()) if (ff.size() != size())
{ {
FatalErrorIn FatalErrorIn
@ -81,6 +64,22 @@ Foam::tmp<Foam::Field<Type> > Foam::ggiPolyPatch::fastExpand
<< abort(FatalError); << abort(FatalError);
} }
// Algorithm:
// 1) Master processor holds maps of all zone addressing (data provided)
// and all remote zone addressing (data required)
// 2) Each processor will send the locally active data to the master
// 3) Master assembles all the data
// 4) Master sends to all processors the data they need to receive
//
// Notes:
// A) If the size of zone addressing is zero, data is not sent
// B) Communicated data on each processor has the size of live faces
// C) Expanded data will be equal to actual data from other processors
// only for the faces marked in remote; for other faces, it will be
// equal to zero
// D) On processor zero, complete data is available
// HJ, 4/Jun/2011
// HR, 10/Jul/2013 // HR, 10/Jul/2013
// This function requires send-receive-addressing, but usage is not // This function requires send-receive-addressing, but usage is not
// symmetric across processors. Hence trigger re-calculate at this point // symmetric across processors. Hence trigger re-calculate at this point