particle: Consistent return value from all track methods
This commit is contained in:
@ -566,7 +566,7 @@ public:
|
||||
|
||||
//- Convenience function. Cobines trackToFace and hitFace
|
||||
template<class TrackCloudType>
|
||||
void trackToAndHitFace
|
||||
scalar trackToAndHitFace
|
||||
(
|
||||
const vector& direction,
|
||||
const scalar fraction,
|
||||
|
||||
@ -180,7 +180,7 @@ void Foam::particle::hitFace
|
||||
|
||||
|
||||
template<class TrackCloudType>
|
||||
void Foam::particle::trackToAndHitFace
|
||||
Foam::scalar Foam::particle::trackToAndHitFace
|
||||
(
|
||||
const vector& direction,
|
||||
const scalar fraction,
|
||||
@ -193,9 +193,11 @@ void Foam::particle::trackToAndHitFace
|
||||
Info << "Particle " << origId() << nl << FUNCTION_NAME << nl << endl;
|
||||
}
|
||||
|
||||
trackToFace(direction, fraction);
|
||||
const scalar f = trackToFace(direction, fraction);
|
||||
|
||||
hitFace(direction, cloud, td);
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user