Skip to content
Snippets Groups Projects
Commit fbba6cd7 authored by Henry Weller's avatar Henry Weller
Browse files

blockMesh: corrected debug messages

Patch contributed by Mattijs Janssens
parent 3b3e19b3
Branches
Tags
No related merge requests found
......@@ -240,8 +240,8 @@ Foam::projectCurveEdge::position(const scalarList& lambdas) const
{
forAll(points, i)
{
const linePointRef ln(points[i], points[i]+residual[i]);
debugStr().write(ln);
const point predicted(points[i] + residual[i]);
debugStr().write(linePointRef(points[i], predicted));
}
}
......
......@@ -111,7 +111,7 @@ Foam::projectEdge::projectEdge
Foam::point Foam::projectEdge::position(const scalar lambda) const
{
// 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);
......@@ -255,8 +255,8 @@ Foam::projectEdge::position(const scalarList& lambdas) const
{
forAll(points, i)
{
const linePointRef ln(points[i], points[i]+residual[i]);
debugStr().write(ln);
const point predicted(points[i] + residual[i]);
debugStr().write(linePointRef(points[i], predicted));
}
}
......
......@@ -74,7 +74,7 @@ Foam::label Foam::blockFaces::projectFace::index
const labelPair& coord
) 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 1:
{
n.first() = desc.density()[1]+1;
n.second() = desc.density()[2]+1;
n.first() = desc.density()[1] + 1;
n.second() = desc.density()[2] + 1;
}
break;
case 2:
case 3:
{
n.first() = desc.density()[0]+1;
n.second() = desc.density()[2]+1;
n.first() = desc.density()[0] + 1;
n.second() = desc.density()[2] + 1;
}
break;
case 4:
case 5:
{
n.first() = desc.density()[0]+1;
n.second() = desc.density()[1]+1;
n.first() = desc.density()[0] + 1;
n.second() = desc.density()[1] + 1;
}
break;
}
......@@ -293,8 +293,8 @@ void Foam::blockFaces::projectFace::project
{
forAll(points, i)
{
const linePointRef ln(points[i], points[i]+residual[i]);
debugStr().write(ln);
const point predicted(points[i] + residual[i]);
debugStr().write(linePointRef(points[i], predicted));
}
}
......@@ -345,8 +345,8 @@ void Foam::blockFaces::projectFace::project
{
forAll(points, i)
{
const linePointRef ln(points[i], points[i]+residual[i]);
debugStr().write(ln);
const point predicted(points[i] + residual[i]);
debugStr().write(linePointRef(points[i], predicted));
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment