View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002024 | OpenFOAM | Bug | public | 2016-03-14 16:06 | 2016-03-14 16:41 |
Reporter | feymark | Assigned To | henry | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 15.04 |
Product Version | dev | ||||
Summary | 0002024: Error on compile surfaceTransformPoints and transformPoints | ||||
Description | The commit https://github.com/OpenFOAM/OpenFOAM-dev/commit/dbe5d5288b6dcd28f5ea23a79ff87521ad05b76b introduces a bug in surfaceTransformPoints and transformPoints. Solution: --- a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C +++ b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) // Convert to radians v *= pi/180.0; - quaternion R(v.x(), v.y(), v.z()); + quaternion R(quaternion::rotationSequence::XYZ, v); Info<< "Rotating points by quaternion " << R << endl; points = transform(R, points); --- a/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C +++ b/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) // Convert to radians v *= pi/180.0; - quaternion R(v.x(), v.y(), v.z()); + quaternion R(quaternion::rotationSequence::XYZ, v); Info<< "Rotating points by quaternion " << R << endl; points = transform(R, points); | ||||
Tags | No tags attached. | ||||