Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential compilation issue with CGNS 3.4 #25

Closed
smanist opened this issue Mar 10, 2020 · 1 comment · Fixed by #127
Closed

Potential compilation issue with CGNS 3.4 #25

smanist opened this issue Mar 10, 2020 · 1 comment · Fixed by #127
Labels
installation This is related to installation of the package

Comments

@smanist
Copy link

smanist commented Mar 10, 2020

Just taking a note in case someone run into the same issue:

Recently I was compiling ADflow with the following dependencies under Ubuntu 18.04:

  1. HDF5 1.10.3
  2. CGNS 3.4 (shared, 64bit, fortran/hdf5/parallel-enabled)
  3. PETSc 3.11 (takes care of HDF5)
  4. Python 2.7/3.6

The Python import test fails by undefined symbol: __cgns_MOD_bctypename in Python 2.7, and seg fault in Python 3.6.

It turns out that the Fortran module from CGNS is not compiled correctly. And one solution is available here). Near Line 551 of ./src/CMakeLists.txt, one needs to change

add_library(cgns_shared SHARED ${cgns_FILES})

to

if (CGNS_ENABLE_FORTRAN)
    add_library(cgns_shared SHARED ${cgns_FILES} cgns_f.F90)
else (CGNS_ENABLE_FORTRAN)
    add_library(cgns_shared SHARED ${cgns_FILES})
endif (CGNS_ENABLE_FORTRAN)

Not sure if this bug has been fixed in the more recent CGNS 4.x version.

@anilyil
Copy link
Contributor

anilyil commented Jun 4, 2020

thanks for creating this issue Daning. I think we will keep this open until we move to CGNS3.4. I think currently we are at 3.3.0.

@ewu63 ewu63 added the installation This is related to installation of the package label Feb 1, 2021
@ewu63 ewu63 linked a pull request Feb 27, 2021 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation This is related to installation of the package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants