dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06409
Re: Functional example
My guess is you forgot to add -l dolfin when compiling:
ffc -l dolfin foo.form
--
Anders
On Fri, Mar 07, 2008 at 10:06:03AM -0600, Andy Ray Terrel wrote:
> Is anyone else getting errors with the Functionals example
> (src/demo/functionals/cpp). When I pulled the code it worked fine but
> when recompiled the form it died on me.
>
>
> aterrel@andy-terrels-computer:/usr/local/src/dolfin/src/demo/pde/functional/cpp$
> make clean
> rm -f *.o core *.core main.o demo
> aterrel@andy-terrels-computer:/usr/local/src/dolfin/src/demo/pde/functional/cpp$
> ffc EnergyNorm.form
> This is FFC, the FEniCS Form Compiler, version 0.4.3.
> For further information, go to http://www/fenics.org/ffc/.
>
> Preprocessing form file: EnergyNorm.form --> EnergyNorm.py
> ... < snip > ...
>
> aterrel@andy-terrels-computer:/usr/local/src/dolfin/src/demo/pde/functional/cpp$
> make
> `pkg-config --variable=compiler dolfin` `pkg-config --cflags dolfin` -c
> main.cpp
> main.cpp: In function 'int main()':
> main.cpp:41: error: no matching function for call to
> 'EnergyNormFunctional::EnergyNormFunctional(main()::MyFunction&)'
> EnergyNorm.h:819: note: candidates are:
> EnergyNormFunctional::EnergyNormFunctional()
> EnergyNorm.h:815: note:
> EnergyNormFunctional::EnergyNormFunctional(const EnergyNormFunctional&)
> main.cpp:42: error: no matching function for call to
> 'assemble(EnergyNormFunctional&, dolfin::UnitSquare&)'
> /usr/local/include/dolfin/assemble.h:30: note: candidates are: void
> dolfin::assemble(dolfin::GenericTensor&, dolfin::Form&, dolfin::Mesh&)
> /usr/local/include/dolfin/assemble.h:34: note: void
> dolfin::assemble(dolfin::GenericTensor&, dolfin::Form&, dolfin::Mesh&,
> const dolfin::SubDomain&)
> /usr/local/include/dolfin/assemble.h:40: note: void
> dolfin::assemble(dolfin::GenericTensor&, dolfin::Form&, dolfin::Mesh&,
> const dolfin::MeshFunction<dolfin::uint>&, const
> dolfin::MeshFunction<dolfin::uint>&, const
> dolfin::MeshFunction<dolfin::uint>&)
> /usr/local/include/dolfin/assemble.h:43: note:
> dolfin::real dolfin::assemble(dolfin::Form&, dolfin::Mesh&)
> /usr/local/include/dolfin/assemble.h:47: note:
> dolfin::real dolfin::assemble(dolfin::Form&, dolfin::Mesh&, const
> dolfin::SubDomain&)
> /usr/local/include/dolfin/assemble.h:53: note:
> dolfin::real dolfin::assemble(dolfin::Form&, dolfin::Mesh&, const
> dolfin::MeshFunction<dolfin::uint>&, const
> dolfin::MeshFunction<dolfin::uint>&, const
> dolfin::MeshFunction<dolfin::uint>&)
> /usr/local/include/dolfin/assemble.h:61: note: void
> dolfin::assemble(dolfin::GenericTensor&, const ufc::form&,
> dolfin::Mesh&, dolfin::Array<dolfin::Function*>&, dolfin::DofMapSet&,
> const dolfin::MeshFunction<dolfin::uint>*, const
> dolfin::MeshFunction<dolfin::uint>*, const
> dolfin::MeshFunction<dolfin::uint>*, bool)
> make: *** [main.o] Error 1
>
>
Follow ups
References