|
[Sponsors] |
December 7, 2009, 20:49 |
Possible bug with tensor2D
|
#1 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
The following source fails to compile:
Code:
#include "tensor2D.H" #include "IOstreams.H" using namespace Foam; int main() { tensor2D t1(1, 2, 3, 4); tensor2D t2(1, 2, 3, 1); tensor2D tt2 = (t1 & t2); Info << tt2 << endl; return(0); } Code:
tensor2DTest.C: In function ‘int main()’: tensor2DTest.C:11: error: conversion from ‘Foam::Tensor<double>’ to non-scalar type ‘Foam::tensor2D’ requested /home/smenon/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Tensor2DI.H: In function ‘typename Foam::innerProduct<Foam::Tensor2D<Cmpt>, Foam::Tensor2D<Cmpt> >::type Foam::operator&(const Foam::Tensor2D<Cmpt>&, const Foam::Tensor2D<Cmpt>&) [with Cmpt = double]’: tensor2DTest.C:11: instantiated from here /home/smenon/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Tensor2DI.H:187: error: conversion from ‘Foam::Tensor2D<double>’ to non-scalar type ‘Foam::Tensor<double>’ requested make: *** [Make/linux64GccDPOpt/tensor2DTest.o] Error 1 |
|
December 8, 2009, 03:17 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
If you do, you'll see that this has been fixed. And you'll also see why was previously failing. Specifically, take a look at commit d8d420a364ddc2b368063f994ca589bccf17a2ed |
||
December 10, 2009, 16:01 |
|
#3 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Mark,
Thanks for pointing me in the right direction... Call me a git-noob, but is there some way that I can browse the repository (in a web-browser perhaps) to look at a specific revision / commit? I'm looking to avoid downloading the entire thing... |
|
December 10, 2009, 16:08 |
|
#4 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Oops... Never mind.
For those interested... The link is: http://repo.or.cz/w/OpenFOAM-1.6.x.git/shortlog |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug about MULES::implicitSolve for interPhaseChangeFoam in OF-1.6 | chiven | OpenFOAM Bugs | 18 | April 18, 2013 23:56 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |
Bug reports | Mattijs Janssens (Mattijs) | OpenFOAM | 0 | January 10, 2005 11:05 |
Win XP hot fix bug!!! | Emilio | Siemens | 1 | March 27, 2003 13:06 |
Forum y2k Bug | Jonas Larsson | Main CFD Forum | 1 | January 5, 2000 11:22 |