MoFEM doesn't run. Ubuntu 20.04

69 views
Skip to first unread message

Sergei Trushin

unread,
May 20, 2021, 7:28:23 AM5/20/21
to MoFEM Q&A
Dear sirs,

I am currently trying to run MoFEM on my laptop, but with no succsess. I've installed developer version with Spack. 
I am using Ubuntu 20.04 installed next to Wondows. 

1. I tried to run both examples from the website for developer version. It sais that there is no such file or direcory:

sergei@sergei-N552VW:~$ cd mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-q5srxjr/basic_finite_elements/elasticity
sergei@sergei-N552VW:~/mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-q5srxjr/basic_finite_elements/elasticity$ ./elasticity -my_file LShape.h5m -my_order 2
bash: ./elasticity: No such file or directory

2. I tried to run an example from youtube as well, but terminal doesn't recognise "cubit &" command. 
sergei@sergei-N552VW:~/mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-q5srxjr/basic_finite_elements/elasticity$ sudo cubit &
[1] 6714
sergei@sergei-N552VW:~/mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-q5srxjr/basic_finite_elements/elasticity$ cubit &
[2] 6743

sergei@sergei-N552VW:~/mofem_install/mofem-cephas/mofem/users_modules/basic_finite_elements/elasticity$ cubit &
[1] 6843
sergei@sergei-N552VW:~/mofem_install/mofem-cephas/mofem/users_modules/basic_finite_elements/elasticity$ cubit: command not found

What might be the problem?
Thank you in advance

Karol Lewandowski

unread,
May 20, 2021, 7:41:15 AM5/20/21
to MoFEM Q&A

It seems like your code is not compiled (make command) because executable elasticity isn't there. 
For the cubit command to work, you would need to instal Cubit first. This is not open-source software. 

Andrei G. Shvarts

unread,
May 20, 2021, 8:03:32 AM5/20/21
to MoFEM Q&A
Just to add - Cubit is not open-source, but is available for free for student use: https://coreform.com/products/coreform-cubit/free-meshing-software/

Sergei Trushin

unread,
May 20, 2021, 8:37:44 AM5/20/21
to MoFEM Q&A
Thank you for your answer.

Sorry, I am new in Linux and doesn't have an experience with terminal.
How should I proceed to at least run an example from website?

I did what is said in the instruction:
  • Change mode of the script (if neccesary)
    chmod +x install_mofem_developer.sh
  • Run the script (sudo privileges may be required)
    ./install_mofem_developer.sh
  • Test run elasticity program
    cd YOUR_INSTALLATION_DIRECTORY
    cd mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-abcd1234/basic_finite_elements/elasticity
  • ./elasticity -my_file LShape.h5m -my_order 2
  • where abcd1234 in um-build-RelWithDebInfo-abcd1234 is the package hash and can different every time you install MoFEM.

Lukasz Kaczmraczyk

unread,
May 20, 2021, 8:44:46 AM5/20/21
to MoFEM Q&A
Hello,

Can you do

cd /home/sergei/mofem_install/mofem-cephas/mofem/users_modules/ 
git checkout develop 
git pull 
cd /home/sergei/mofem_install/mofem-cephas/mofem/users_modules/um-build-Debug-bj5r4v7 
make -j2 2>&1 | tee  log_make
make install
ctest -VV 2>&1 | tee log_ctest 

and send log_make and log_ctest files,

Lukasz


Sergei Trushin

unread,
May 20, 2021, 9:12:45 AM5/20/21
to MoFEM Q&A
For some reasons I cannot attach log files...It sais "Error while posting a message".
Do I need certain permission or something? 

Lukasz, I will send you logs in Teams

Lukasz Kaczmraczyk

unread,
May 20, 2021, 9:23:24 AM5/20/21
to MoFEM Q&A
All was working when I looked into your log files. Now you have to compile the Release version

cd  /mofem_install/mofem-cephas/mofem/users_modules/um-build-RelWithDebInfo-q5srxjr/
make -j2 2>&1 | tee  log_make
make install
ctest -VV 2>&1 | tee log_ctest 

Lukasz

Sergei Trushin

unread,
May 20, 2021, 10:34:14 AM5/20/21
to MoFEM Q&A
Thank you, Lukasz!

It seems to be working now
Reply all
Reply to author
Forward
0 new messages