xcfem / xc

finite element analysis package for civil engineering structures.
http://www.xcengineering.xyz/html_files/software.html
GNU General Public License v3.0
262 stars 54 forks source link

Bash script to install on linux #59

Closed shahram10715 closed 4 years ago

shahram10715 commented 5 years ago

Is there any possibility to write a bash script to execute the commands:

https://github.com/xcfem/xc/blob/master/install/install.linux.md

and install xc on Ubuntu?

lcpt commented 5 years ago

Hi.

Yes, there is already a script written by @berndhahnebach that installs xc on Ubuntu. Take a look here.

berndhahnebach commented 5 years ago

@shahram10715

would be cool if you could give some feedback if the scripts worked for you!

cheers bernd

shahram10715 commented 5 years ago

dear Mr. @berndhahnebach First of all sorry for my late response, I tried the script and I encountered the following error

mayavi-4.6.2.tar.bz2
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools```

then I tried manually the following command:

sudo apt install mayavi2

again I had trouble installing mayavi, and it was due to vtk libraries, so first I installed:

sudo apt install vtk7

after these steps everything was working properly until run_verif.sh. I realized that tkinter was installed by means Anaconda and didn't recognized. So again, I install python-tk and python3-tk manually. the thing that I couldn't fix was an error in run_verif.sh for xc directory. Here id the error:

Verifiyng misc. utilities. 
ERROR:root:rcond.py ERROR.```

I appreciate any information you can provide.

berndhahnebach commented 5 years ago

Which version of ubuntu do you use? Do you use original ubuntu?

shahram10715 commented 5 years ago

I'm using the latest version of mint which is 19.1 on virtualbox.

lcpt commented 5 years ago

Hi. This test (rcond.py) is on the directory xc/verif/tests/utility. Could you uncomment the line:

print 'rcond= ', rcond

run the test and copy its output here?

shahram10715 commented 5 years ago

here is the output of my verification, I can see two more errors in this file:

https://github.com/shahram10715/myPasteBeeens/blob/master/logFile01.txt

lcpt commented 5 years ago

Hi.

I see two errors: the first one in 'test_fiber_section_shear3d_02.py' I think is due to a numerical issue anyway the error reported is really small (0.00513). I'll take a look.

The second one is more mysterious. For some reason your Lapack implementation seems to return a different value for the condition number. I've added another test using Numpy to test again that the result are correct (see the new version of rcond.py in the repository).

shahram10715 commented 5 years ago

again the same problem with the following output: https://github.com/shahram10715/myPasteBeeens/blob/master/logFile02.txt

lcpt commented 5 years ago

Yeah, the only difference is that, now, we know there is a problem with the calling to the LAPACK dlange function:

https://github.com/xcfem/xc/blob/d8150601807370808a3b9c9251be8d3b7c46c155/src/utility/matrix/Matrix.cpp#L1764

Maybe "linux mint" uses a different version of LAPACK libraries. I have not the time to deal whit this right now but I'll take a look soon. Nevertheless, this is not a critical error. The program can be used normally despite this problem.