mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Use non-templated vtwWriters. Remove FatalErrors on intersection failure.
This commit is contained in:
@ -10,6 +10,7 @@ EXE_INC = \
|
||||
${USE_F2C} \
|
||||
${CGAL_INC} \
|
||||
-ICGALPolyhedron \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/edgeMesh/lnInclude \
|
||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||
|
||||
@ -595,7 +595,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// if (writeVTK)
|
||||
// {
|
||||
// vtkSurfaceWriter<scalar>().write
|
||||
// vtkSurfaceWriter().write
|
||||
// (
|
||||
// runTime.constant()/"triSurface", // outputDir
|
||||
// sFeatFileName, // surfaceName
|
||||
@ -692,25 +692,25 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
drawHitProblem(fI, surf, start, faceCentres, end, hitInfo);
|
||||
|
||||
FatalErrorIn(args.executable())
|
||||
<< "findLineAll did not hit its own face."
|
||||
<< exit(FatalError);
|
||||
// FatalErrorIn(args.executable())
|
||||
// << "findLineAll did not hit its own face."
|
||||
// << exit(FatalError);
|
||||
}
|
||||
else if (hitInfo.size() == 1)
|
||||
{
|
||||
if (!hitInfo[0].hit())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "findLineAll did not hit any face."
|
||||
<< exit(FatalError);
|
||||
// FatalErrorIn(args.executable())
|
||||
// << "findLineAll did not hit any face."
|
||||
// << exit(FatalError);
|
||||
}
|
||||
else if (hitInfo[0].index() != fI)
|
||||
{
|
||||
drawHitProblem(fI, surf, start, faceCentres, end, hitInfo);
|
||||
|
||||
FatalErrorIn(args.executable())
|
||||
<< "findLineAll did not hit its own face."
|
||||
<< exit(FatalError);
|
||||
// FatalErrorIn(args.executable())
|
||||
// << "findLineAll did not hit its own face."
|
||||
// << exit(FatalError);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -733,9 +733,9 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
drawHitProblem(fI, surf, start, faceCentres, end, hitInfo);
|
||||
|
||||
FatalErrorIn(args.executable())
|
||||
<< "findLineAll did not hit its own face."
|
||||
<< exit(FatalError);
|
||||
// FatalErrorIn(args.executable())
|
||||
// << "findLineAll did not hit its own face."
|
||||
// << exit(FatalError);
|
||||
}
|
||||
else if (ownHitI == 0)
|
||||
{
|
||||
@ -868,7 +868,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (writeVTK)
|
||||
{
|
||||
vtkSurfaceWriter<scalar>().write
|
||||
vtkSurfaceWriter().write
|
||||
(
|
||||
runTime.constant()/"triSurface", // outputDir
|
||||
sFeatFileName, // surfaceName
|
||||
@ -880,7 +880,7 @@ int main(int argc, char *argv[])
|
||||
true // verbose
|
||||
);
|
||||
|
||||
vtkSurfaceWriter<scalar>().write
|
||||
vtkSurfaceWriter().write
|
||||
(
|
||||
runTime.constant()/"triSurface", // outputDir
|
||||
sFeatFileName, // surfaceName
|
||||
@ -892,7 +892,7 @@ int main(int argc, char *argv[])
|
||||
true // verbose
|
||||
);
|
||||
|
||||
vtkSurfaceWriter<scalar>().write
|
||||
vtkSurfaceWriter().write
|
||||
(
|
||||
runTime.constant()/"triSurface", // outputDir
|
||||
sFeatFileName, // surfaceName
|
||||
|
||||
Reference in New Issue
Block a user