This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Solid mechanics app installation error

0 votes

I am trying to install Fenics Solid Mech App on Ubuntu 14.10.

1. I downloaded both folders from the app bitbucket page. One is the main repository and other is named fenics-solid-mechanics 1.0. Based on a previous question in the forum, Garth Wells replies that “make sure the DOLFIN libraries are in your path so they can be discovered by the solid mechanics library.”

2. I copied both these folders in usr/include/dolfin. Both folder have readme (install) files. When I do scons install in the 'fenics-solid-mechanics-1.0' folder, I get the following error. Please also check my comment below.

enter image description here

asked Apr 6, 2016 by Chaitanya_Raj_Goyal FEniCS User (4,150 points)
edited Apr 7, 2016 by Chaitanya_Raj_Goyal

I also copied the main repository in usr/include/dolfin and used cmake.local and source in the main repository to get the following error for running ./cmake.local.

-- Configuring done
-- Generating done
-- Build files have been written to: /usr/include/dolfin/fenics-apps-fenics-solid-mechanics-6f94b3cfb3d4/build
Scanning dependencies of target fenics-solid-mechanics
[ 10%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/HistoryData.cpp.o
[ 20%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/QuadratureFunction.cpp.o
[ 30%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/DruckerPrager.cpp.o
[ 40%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/VonMises.cpp.o
[ 50%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/PlasticityModel.cpp.o
[ 60%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/ConstitutiveUpdate.cpp.o
/usr/include/dolfin/fenics-apps-fenics-solid-mechanics-6f94b3cfb3d4/src/ConstitutiveUpdate.cpp: In constructor ‘fenicssolid::ConstitutiveUpdate::ConstitutiveUpdate(const dolfin::Function&, const dolfin::FiniteElement&, const dolfin::GenericDofMap&, const fenicssolid::PlasticityModel&)’:
/usr/include/dolfin/fenics-apps-fenics-solid-mechanics-6f94b3cfb3d4/src/ConstitutiveUpdate.cpp:42:17: error: ‘const class dolfin::FiniteElement’ has no member named ‘tabulate_dof_coordinates’
   sigma_element.tabulate_dof_coordinates(ip_coordinates, vertex_coordinates,
                 ^
make[2]: *** [src/CMakeFiles/fenics-solid-mechanics.dir/ConstitutiveUpdate.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 80%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/ReturnMapping.cpp.o
[ 80%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/PlasticityProblem.cpp.o
make[1]: *** [src/CMakeFiles/fenics-solid-mechanics.dir/all] Error 2
make: *** [all] Error 2
root@Jarvis:/usr/include/dolfin/fenics-apps-fenics-solid-mechanics-6f94b3cfb3d4# source fenics-solid-mechanics.conf
bash: fenics-solid-mechanics.conf: No such file or directory

1 Answer

0 votes
 
Best answer

For anyone who comes across this error in future, the current repository posted on the app page does not work. You' ll have to run

git checkout b72e0b1

in your current FSM repository to get a previous working version. Thanks to user tianyikillua for this guidance else I would have kept spending days thinking what I am doing wrong.

answered Apr 8, 2016 by Chaitanya_Raj_Goyal FEniCS User (4,150 points)
edited Jul 21, 2016 by Chaitanya_Raj_Goyal
...