← Back to team overview

dolfin team mailing list archive

Functional example

 

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


--

====================
Andy Terrel
Computer Science Dept
University of Chicago
aterrel@xxxxxxxxxxxx
---------------------

In mathematics you don't understand things. You just get used to them.
                      - Johann Von Neumann



Follow ups