dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11313
Re: [HG DOLFIN] Change test for cell-based data in VTKFile.
On Mon, Dec 22, 2008 at 03:13:57PM +0100, Harish Narayanan wrote:
> On Mon, Dec 22, 2008 at 12:42 PM, DOLFIN <dolfin@xxxxxxxxxx> wrote:
> > One or more new changesets pushed to the primary dolfin repository.
> > A short summary of the last three changesets is included below.
> >
> > changeset: 5434:d8bb5b439227b34030db2c7682da63a1841924c5
> > tag: tip
> > user: "Garth N. Wells <gnw20@xxxxxxxxx>"
> > date: Mon Dec 22 11:41:53 2008 +0000
> > files: dolfin/io/VTKFile.cpp
> > description:
> > Change test for cell-based data in VTKFile.
> >
> > The previous test failed for DG elements of order k > 0.
>
> I am unable to compile DOLFIN on my machine with this changeset. I
> receive the following "ambiguous call to pow()" error.
>
> dolfin/io/VTKFile.cpp: In member function 'void
> dolfin::VTKFile::ResultsWrite(const dolfin::Function&) const':
> dolfin/io/VTKFile.cpp:189: error: call of overloaded
> 'pow(dolfin::uint, const dolfin::uint&)' is ambiguous
> /usr/include/architecture/i386/math.h:352: note: candidates are:
> double pow(double, double)
> /usr/include/c++/4.0.0/cmath:344: note: float
> std::pow(float, float)
> /usr/include/c++/4.0.0/cmath:348: note: long double
> std::pow(long double, long double)
> /usr/include/c++/4.0.0/cmath:352: note: double
> std::pow(double, int)
> /usr/include/c++/4.0.0/cmath:356: note: float
> std::pow(float, int)
> /usr/include/c++/4.0.0/cmath:360: note: long double
> std::pow(long double, int)
> scons: *** [dolfin/io/VTKFile.os] Error 1
> scons: building terminated because of errors.
>
> Harish
I've made an attempt to fix it, see if it works.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References