View Issue Details

IDProjectCategoryView StatusLast Update
0000146OpenFOAM[All Projects] Bugpublic2011-02-23 23:04
Reporteruser138Assigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSOpenSuseOS Version11.3
Product Version 
Fixed in Version 
Summary0000146: EigenVectors/EigenValues for GeometricTensorField set wrong dimensions
DescriptionThe functions eigenVectors and eigenValues applied to a GeometricTensorField return the wrong dimensions

eigenVectors(GeometricTensorField f) returns f.dimensions()
eigenValues(GeometricTensorField f) returns dimless

It should be the opposite
eigenVectors(GeometricTensorField f) returns dimless
eigenValues(GeometricTensorField f) returns f.dimensions()

Same bug that 0000142 for DimensionedTensorField
Additional Informationthe error is simple to correct.
In src \OpenFOAM \fields \GeometricFields \ GeometricTensorField \GeometricTensorField.C

Old
00049 UNARY_FUNCTION(vector, tensor, eigenValues, sign)
00050 UNARY_FUNCTION(tensor, tensor, eigenVectors, transform)
00051
00052 UNARY_FUNCTION(vector, symmTensor, eigenValues, sign)
00053 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, transform)

New
00049 UNARY_FUNCTION(vector, tensor, eigenValues, transform)
00050 UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
00051
00052 UNARY_FUNCTION(vector, symmTensor, eigenValues, transform)
00053 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, sign)

In src \OpenFOAM \fields \GeometricFields \ GeometricTensorField \GeometricTensorField.H

Old
00062 UNARY_FUNCTION(vector, tensor, eigenValues, sign)
00063 UNARY_FUNCTION(tensor, tensor, eigenVectors, transform)
00064
00065 UNARY_FUNCTION(vector, symmTensor, eigenValues, sign)
00066 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, transform)

New
00062 UNARY_FUNCTION(vector, tensor, eigenValues, transform)
00063 UNARY_FUNCTION(tensor, tensor, eigenVectors, sign)
00064
00065 UNARY_FUNCTION(vector, symmTensor, eigenValues, transform)
00066 UNARY_FUNCTION(symmTensor, symmTensor, eigenVectors, sign)
TagsNo tags attached.

Activities

henry

2011-02-23 23:04

manager   ~0000262

Thank you for the bug report, this is resolved by
commit 1676aa3c098150d054f715ea5bad205f29d8dded

Issue History

Date Modified Username Field Change
2011-02-23 09:35 user138 New Issue
2011-02-23 23:04 henry Note Added: 0000262
2011-02-23 23:04 henry Status new => resolved
2011-02-23 23:04 henry Resolution open => fixed
2011-02-23 23:04 henry Assigned To => henry