First install some stuff:
yum install ginac ginac-devel ginac-utils
Install metis 4 or update mbdyn..
module load metis/4.0.3
Download from:
wget https://www.mbdyn.org/userfiles/downloads/mbdyn-1.6.0.tar.gz wget https://www.mbdyn.org/userfiles/downloads/mbdyn-1.6.0-nested-string-drive.1.patch wget https://www.mbdyn.org/userfiles/downloads/mbdyn-1.6.0-function-in-statement.1.patch
tar -xzvf mbdyn-1.6.0.tar.gz cd mbdyn-1.6.0 patch -p0 < ../mbdyn-1.6.0-nested-string-drive.1.patch patch -p0 < ../mbdyn-1.6.0-function-in-statement.1.patch ./configure -prefix=/opt/mbdyn/1.6.0 -exec-prefix=/opt/mbdyn/1.6.0 -oldincludedir=/opt/mbdyn/1.6.0/include
Some more stuff (with correct version) has to be installed (some day):
configure: WARNING: Umfpack not supported configure: WARNING: KLU not supported checking for jdqz... no configure: WARNING: MPI not supported
We just skip forward:
make -j4 # if you want to compile on 4 cores... make install
Module file /etc/modulefiles/mbdyn/1.6.0
#%Module1.0#################################################################### ## ## modulefile by Discretizer AB ## ## prepend-path PATH /opt/mbdyn/1.6.0/bin prepend-path LD_LIBRARY_PATH /opt/mbdyn/1.6.0/lib prepend-path MANPATH /opt/mbdyn/1.6.0/share/man prepend-path CPLUS_INCLUDE_PATH /opt/mbdyn/1.6.0/include prepend-path CPPFLAGS -I/opt/mbdyn/1.6.0/include prepend-path LIBS -L/opt/mbdyn/1.6.0/lib
Test run:
module load mbdyn/1.6.0 mkdir rigidbody cd rigidbody wget https://www.mbdyn.org/userfiles/documents/examples/rigidbody mbdyn rigidbody cd .. mkdir rigidpendulum cd rigidpendulum/ wget https://www.mbdyn.org/userfiles/documents/examples/rigidpendulum mbdyn rigidpendulum cd .. mkdir planemech cd planemech/ wget https://www.mbdyn.org/userfiles/documents/examples/planemech mbdyn planemech