CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_compile_modflow_6_on_slackware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_compile_modflow_6_on_slackware [2024-08-20 08:12 am] hchohowtos:how_to_compile_modflow_6_on_slackware [2025-04-10 01:06 pm] (current) hcho
Line 7: Line 7:
 su - su -
  
-# install openmpi and python3-numpy; petsc requires python3-numpy and blas;+# install openmpi and python3-numpy; petsc requires python3-numpy and OpenBLAS;
 # build queuefiles, not packages, to automatically build any other dependencies # build queuefiles, not packages, to automatically build any other dependencies
-sbopkg -k -i "openmpi python3-numpy blas lapack"+sbopkg -k -i "openmpi python3-numpy OpenBLAS"
  
 # download and unzip a petsc build script # download and unzip a petsc build script
Line 24: Line 24:
 rm -rf petsc rm -rf petsc
 installpkg petsc-*.tgz installpkg petsc-*.tgz
 +
 +# switch to non-root
 +exit
 +
 +# clone github repositories
 +mkdir -p ~/usr/local/src
 +cd ~/usr/local/src
 +git clone https://github.com/MODFLOW-USGS/modflow6.git
 +git clone https://github.com/fortran-lang/test-drive.git
 +
 +# build test-drive
 +cd test-drive
 +meson setup builddir --prefix=$PWD --libdir=lib
 +meson install -C builddir
 +mkdir -p ~/usr/local/share/pkgconfig
 +cp -a builddir/meson-private/test-drive.pc ~/usr/local/share/pkgconfig
 +if ! echo $PKG_CONFIG_PATH | grep -q $HOME/usr/local/share/pkgconfig; then
 +  echo 'export PKG_CONFIG_PATH="$HOME/usr/local/share/pkgconfig:$PKG_CONFIG_PATH"' > ~/.bash_profile
 +  . ~/.bash_profile
 +fi
 +cd ..
 +
 +# build modflow6
 +cd modflow6
 +meson setup builddir -Ddebug=false -Dparallel=true --prefix=$(pwd) --libdir=bin
 +meson install -C builddir
 +meson test --verbose --no-rebuild -C builddir
 +
 +# install modflow6
 +mkdir ~/usr/local/bin
 +cp -a bin/mf6 ~/usr/local/bin
 +if ! echo $PATH | grep -q $HOME/usr/local/bin; then
 +  echo 'export PATH="$HOME/usr/local/bin:$PATH"' > ~/.bash_profile
 +  . ~/.bash_profile
 +fi
 </code> </code>
howtos/how_to_compile_modflow_6_on_slackware.1724163130.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki