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();
|
||||
}
|
||||
|
||||
for (const scalar scale : scaling)
|
||||
{
|
||||
if (scale <= 0)
|
||||
{
|
||||
FatalError
|
||||
<< "Invalid scaling value, must be positive." << nl
|
||||
<< " -" << optName << ' ' << args[optName].c_str() << endl
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
// Zero and negative scaling are permitted
|
||||
|
||||
return scaling;
|
||||
}
|
||||
|
||||
@ -135,16 +135,7 @@ List<scalar> getScalingOpt(const word& optName, const argList& args)
|
||||
scaling.clear();
|
||||
}
|
||||
|
||||
for (const scalar scale : scaling)
|
||||
{
|
||||
if (scale <= 0)
|
||||
{
|
||||
FatalError
|
||||
<< "Invalid scaling value, must be positive." << nl
|
||||
<< " -" << optName << ' ' << args[optName].c_str() << endl
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
// Zero and negative scaling are permitted
|
||||
|
||||
return scaling;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user