View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000404 | OpenFOAM | Bug | public | 2012-01-31 20:12 | 2012-02-01 12:29 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Summary | 0000404: operator*(Vector2D<Cmpt>const&, Vector2D<Cmpt>const&) unusable | ||||
Description | The outer product operator for two vectors defined also for Vector2D in Vector2DI.H is unusable because the typeOfRank meta-function always returns Tensor<Cmpt> for rank 2 since it has no nCmpt template argument which would allow it to distinguish between the 3D and 2D case. | ||||
Steps To Reproduce | The following code demonstrates the problem: #include "vector2D.H" #include "tensor2D.H" using namespace Foam; int main() { vector2D v1(1.,2.), v2(3.,4.); tensor2D t = v1*v2; } | ||||
Tags | No tags attached. | ||||
|
Question: If the outer product is to be disabled in 2D, then what happens if someone wants to create a template that is to be used for both 2D and 3D? For example, a mechanical interaction solver, where interconnected particles are disturbed by surrounding fluid, in both 2D and 3D? ;) |
|
Thanks for the bug-report. Resolved by commit b820d4a7219bb3df3fe65673cf34f583788d68be |