Coder Social home page Coder Social logo

CMake fails with ParMetis 4 about schism HOT 9 CLOSED

schism-dev avatar schism-dev commented on June 27, 2024
CMake fails with ParMetis 4

from schism.

Comments (9)

platipodium avatar platipodium commented on June 27, 2024

For completeness: when trying to compile SCHISM (as before), I get a similar error

cmake ../schism/src -DCMAKE_Fortran_COMPILER=mpifort -DCMAKE_CXX_COMPILER=mpicc -DCMAKE_C_COMPILER=mpicc -DMPI_CXX_COMPILER=mpicc -DNetCDF_C_DIR=/opt/local -DNetCDF_FORTRAN_DIR=/opt/local


### Adding enabled libraries to project
CMake Error at ParMetis-4.0.3/CMakeLists.txt:28 (include):
  include could not find load file:

    /metis/GKlib/GKlibSystem.cmake


CMake Error at ParMetis-4.0.3/CMakeLists.txt:38 (add_subdirectory):
  add_subdirectory given source "/metis/libmetis" which is not an existing
  directory.

All with today's version (11 May) 6f15b0d

from schism.

platipodium avatar platipodium commented on June 27, 2024

Solved by adding the ParMetis CMake flags to the global build. So now you can build ParMetis and SCHISM in one step again (note my locally specific location of build and netcdf dirs and adjust accordingly ):

cmake -DCMAKE_Fortran_COMPILER=mpifort -DCMAKE_CXX_COMPILER=mpicc -DCMAKE_C_COMPILER=mpicc -DMPI_CXX_COMPILER=mpicc -DNetCDF_C_DIR=/opt/local -DNetCDF_FORTRAN_DIR=/opt/local -DGKLIB_PATH=../schism/src/ParMetis-4.0.3/metis/GKlib -DMETIS_PATH=../schism/src/ParMetis-4.0.3/metis ../schism/src && make pschism

from schism.

josephzhang8 avatar josephzhang8 commented on June 27, 2024

from schism.

jreniel avatar jreniel commented on June 27, 2024

from schism.

josephzhang8 avatar josephzhang8 commented on June 27, 2024

from schism.

jreniel avatar jreniel commented on June 27, 2024

from schism.

platipodium avatar platipodium commented on June 27, 2024

from schism.

josephzhang8 avatar josephzhang8 commented on June 27, 2024

from schism.

jreniel avatar jreniel commented on June 27, 2024

from schism.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.