Hi,
I am following the procedure given at this link to run c++ demos.
http://fenicsproject.org/documentation/dolfin/dev/cpp/demo/index.html
I am getting the following error whenever I try to run 'make' to create the demo file. Can anyone pls. drop a clue on what it wants.
root@Jarvis:~# make
[ 50%] Building CXX object CMakeFiles/demo_poisson.dir/main.cpp.o
/home/page/Poisson/main.cpp: In function ‘int main()’:
/home/page/Poisson/main.cpp:85:7: error: no match for ‘operator=’ (operand types are ‘dolfin::CoefficientAssigner’ and ‘std::shared_ptr<Source>’)
L.f = f;
^
/home/page/Poisson/main.cpp:85:7: note: candidate is:
In file included from /home/page/Poisson/Poisson.h:1863:0,
from /home/page/Poisson/main.cpp:35:
/usr/include/dolfin/function/CoefficientAssigner.h:52:10: note: void dolfin::CoefficientAssigner::operator=(const dolfin::GenericFunction&)
void operator= (const GenericFunction& coefficient);
^
/usr/include/dolfin/function/CoefficientAssigner.h:52:10: note: no known conversion for argument 1 from ‘std::shared_ptr<Source>’ to ‘const dolfin::GenericFunction&’
/home/page/Poisson/main.cpp:86:7: error: no match for ‘operator=’ (operand types are ‘dolfin::CoefficientAssigner’ and ‘std::shared_ptr<dUdN>’)
L.g = g;
^
/home/page/Poisson/main.cpp:86:7: note: candidate is:
In file included from /home/page/Poisson/Poisson.h:1863:0,
from /home/page/Poisson/main.cpp:35:
/usr/include/dolfin/function/CoefficientAssigner.h:52:10: note: void dolfin::CoefficientAssigner::operator=(const dolfin::GenericFunction&)
void operator= (const GenericFunction& coefficient);
^
/usr/include/dolfin/function/CoefficientAssigner.h:52:10: note: no known conversion for argument 1 from ‘std::shared_ptr<dUdN>’ to ‘const dolfin::GenericFunction&’
make[2]: *** [CMakeFiles/demo_poisson.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/demo_poisson.dir/all] Error 2
make: *** [all] Error 2