blockMesh: corrected debug messages
Patch contributed by Mattijs Janssens
This commit is contained in:
parent
d0b633a103
commit
b8442f5a77
3 changed files with 16 additions and 16 deletions
|
|
@ -240,8 +240,8 @@ Foam::projectCurveEdge::position(const scalarList& lambdas) const
|
||||||
{
|
{
|
||||||
forAll(points, i)
|
forAll(points, i)
|
||||||
{
|
{
|
||||||
const linePointRef ln(points[i], points[i]+residual[i]);
|
const point predicted(points[i] + residual[i]);
|
||||||
debugStr().write(ln);
|
debugStr().write(linePointRef(points[i], predicted));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ Foam::projectEdge::projectEdge
|
||||||
Foam::point Foam::projectEdge::position(const scalar lambda) const
|
Foam::point Foam::projectEdge::position(const scalar lambda) const
|
||||||
{
|
{
|
||||||
// Initial guess
|
// Initial guess
|
||||||
const point start(points_[start_]+lambda*(points_[end_]-points_[start_]));
|
const point start(points_[start_] + lambda*(points_[end_]-points_[start_]));
|
||||||
|
|
||||||
point near(start);
|
point near(start);
|
||||||
|
|
||||||
|
|
@ -255,8 +255,8 @@ Foam::projectEdge::position(const scalarList& lambdas) const
|
||||||
{
|
{
|
||||||
forAll(points, i)
|
forAll(points, i)
|
||||||
{
|
{
|
||||||
const linePointRef ln(points[i], points[i]+residual[i]);
|
const point predicted(points[i] + residual[i]);
|
||||||
debugStr().write(ln);
|
debugStr().write(linePointRef(points[i], predicted));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ Foam::label Foam::blockFaces::projectFace::index
|
||||||
const labelPair& coord
|
const labelPair& coord
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return coord.first()+coord.second()*n.first();
|
return coord.first() + coord.second()*n.first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -173,24 +173,24 @@ void Foam::blockFaces::projectFace::project
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
n.first() = desc.density()[1]+1;
|
n.first() = desc.density()[1] + 1;
|
||||||
n.second() = desc.density()[2]+1;
|
n.second() = desc.density()[2] + 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
n.first() = desc.density()[0]+1;
|
n.first() = desc.density()[0] + 1;
|
||||||
n.second() = desc.density()[2]+1;
|
n.second() = desc.density()[2] + 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
n.first() = desc.density()[0]+1;
|
n.first() = desc.density()[0] + 1;
|
||||||
n.second() = desc.density()[1]+1;
|
n.second() = desc.density()[1] + 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -293,8 +293,8 @@ void Foam::blockFaces::projectFace::project
|
||||||
{
|
{
|
||||||
forAll(points, i)
|
forAll(points, i)
|
||||||
{
|
{
|
||||||
const linePointRef ln(points[i], points[i]+residual[i]);
|
const point predicted(points[i] + residual[i]);
|
||||||
debugStr().write(ln);
|
debugStr().write(linePointRef(points[i], predicted));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -345,8 +345,8 @@ void Foam::blockFaces::projectFace::project
|
||||||
{
|
{
|
||||||
forAll(points, i)
|
forAll(points, i)
|
||||||
{
|
{
|
||||||
const linePointRef ln(points[i], points[i]+residual[i]);
|
const point predicted(points[i] + residual[i]);
|
||||||
debugStr().write(ln);
|
debugStr().write(linePointRef(points[i], predicted));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue