mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: transformPoints flagged zero or negative scaling as an error
- additional check was introduced by 51b2490258, but scaling with
zero is useful for flattening a mesh
This commit is contained in:
@ -195,16 +195,7 @@ List<scalar> getScalingOpt(const word& optName, const argList& args)
|
|||||||
scaling.clear();
|
scaling.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const scalar scale : scaling)
|
// Zero and negative scaling are permitted
|
||||||
{
|
|
||||||
if (scale <= 0)
|
|
||||||
{
|
|
||||||
FatalError
|
|
||||||
<< "Invalid scaling value, must be positive." << nl
|
|
||||||
<< " -" << optName << ' ' << args[optName].c_str() << endl
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return scaling;
|
return scaling;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,16 +135,7 @@ List<scalar> getScalingOpt(const word& optName, const argList& args)
|
|||||||
scaling.clear();
|
scaling.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const scalar scale : scaling)
|
// Zero and negative scaling are permitted
|
||||||
{
|
|
||||||
if (scale <= 0)
|
|
||||||
{
|
|
||||||
FatalError
|
|
||||||
<< "Invalid scaling value, must be positive." << nl
|
|
||||||
<< " -" << optName << ' ' << args[optName].c_str() << endl
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return scaling;
|
return scaling;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user