ucns3d-team / UCNS3D

Unstructured Compressible Navier Stokes 3D code (UCNS3D)
https://ucns3d.com
GNU General Public License v3.0
257 stars 92 forks source link

Failed to build ucns3d #61

Closed thw1021 closed 1 year ago

thw1021 commented 1 year ago

Dear ucns3d team,

Thank you for sharing this wonderful code. I tried to install ucns3d following your guide. But there is something wrong.

OS: Ubuntu 20.04 GNU Fortan version: 9.4.0

What I did:

  1. download the ucns3d code via git clone https://github.com/ucns3d-team/UCNS3D (commit dddcb3f6b10fdaaa194b23a7db281392aa734ea6)
  2. copy bin/lib/metis/* to src/, copy bin/lib/parmetis/* to src/, copy bin/lib/tecplot/* to src/
  3. copy bin/gnu-compiler/Makefile to src/
  4. run make -f Makefile clean all in src/

The error is shown in the figure below: Screenshot from 2023-08-27 14-19-32

I also tried to use Docker. However, I got the same error: Screenshot from 2023-08-27 14-24-06

I noticed that @SRkumar97 has reported the same error. And it was solved by using intel Fortran and MKL as suggested by @TakisCFD. However, I do not have access to intel Fortran.

Could you give me some suggestions, please?

thw1021 commented 1 year ago

I did a test with the previous version (commit 5d93407e25c8215c4e370de6036642e894e8d7b9) and it worked. So I guess there could be something wrong with the present code.

SRkumar97 commented 1 year ago

Hello, @thw1021 you can get access to intel Fortran and MKL by simple means. E.g. https://www.youtube.com/watch?v=4SfzH-XDl-s

Installation using Intel Makefile works best.

thw1021 commented 1 year ago

OK, thank you @SRkumar97. I will have a try. But I think this problem may still be worth effort.

TakisCFD commented 1 year ago

I will try to reproduce it and get back to you

thw1021 commented 1 year ago

Excellent, thank you. Look forward to your reply.

vkorchagova commented 1 year ago

Good evening, dear @TakisCFD, I found an article about UCNS3D and I want to try the solver. I met the same problem when I build the Docker image of UCNS. I just clone the repo and run docker build . -t ucns3d -f Dockerfile. My OS is Fedora 38. I must say that the problem appears in the last release also; the Docker image was built successully in commit https://github.com/ucns3d-team/UCNS3D/commit/5d93407e25c8215c4e370de6036642e894e8d7b9 (I found it in previous comments).

TakisCFD commented 1 year ago

I will try later today and get back to you

TakisCFD commented 1 year ago

The bug was found and a fix introduced, a new release should be available tomorrow following review.

TakisCFD commented 1 year ago

resolved, the latest version runs correctly on docker.