CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   PostChannelC compiling issue 15x (http://www.cfd-online.com/Forums/openfoam-bugs/62403-postchannelc-compiling-issue-15x.html)

podallaire October 11, 2008 08:13

Good morning, with the fres
 
Good morning,

with the fresh git version that I downloaded yesterday (October 10) I have the following issue with posyChannel.C when compiling, issue that I did not have with the previous git versions :

channelIndexTemplates.C: In member function 'Foam::Field<type> Foam::channelIndex::collapse(const Foam::Field<type>&, bool) const [with T = double]':
collapse.H:4: instantiated from here
channelIndexTemplates.C:62: error: ambiguous overload for 'operator/' in 'Foam::channelIndex::regionSum(const Foam::Field<type>&) const [with T = double](((const Foam::Field<double>&)((const Foam::Field<double>*)cellField))) / ((const Foam::channelIndex*)this)->Foam::channelIndex::regionCount_'
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/scalarField.H:8 2: note: candidates are: Foam::tmp<foam::field<double> > Foam::operator/(const Foam::UList<double>&, const Foam::UList<double>&)
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/scalarField.H:8 2: note: Foam::tmp<foam::field<double> > Foam::operator/(const Foam::UList<double>&, const Foam::tmp<foam::field<double> >&)
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/scalarField.H:8 2: note: Foam::tmp<foam::field<double> > Foam::operator/(const Foam::tmp<foam::field<double> >&, const Foam::UList<double>&)
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/scalarField.H:8 2: note: Foam::tmp<foam::field<double> > Foam::operator/(const Foam::tmp<foam::field<double> >&, const Foam::tmp<foam::field<double> >&)
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/FieldFunctions. C:553: note: Foam::tmp<foam::field<type> > Foam::operator/(const Foam::UList<t>&, const Foam::UList<double>&) [with Type = double]
/Users/podallaire/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/FieldFunctions. C:553: note: Foam::tmp<foam::field<type> > Foam::operator/(const Foam::UList<t>&, const Foam::tmp<foam::field<double> >&) [with Type = double]

I'm using gcc-4.2.

Best regards,

PO

mattijs October 11, 2008 15:31

Could you let me know if this
 
Could you let me know if this one compiles ok? (I don't see any problem with gcc-4.3.1)

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif channelIndexTemplates.C

podallaire October 13, 2008 15:16

Hi ! Yes, it worked - thank
 
Hi !

Yes, it worked - thanks !

PO


All times are GMT -4. The time now is 20:36.