User:Ppomorsk: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
mNo edit summary
(make hdf5 explicit)
Line 8: Line 8:
   |lang="sh"
   |lang="sh"
   |contents=
   |contents=
module load boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6
module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6


mkdir fenics && cd fenics
mkdir fenics && cd fenics
Line 27: Line 27:
pip3 install ply
pip3 install ply
cd dolfin   
cd dolfin   
mkdir build && cd build && cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin && nice make -j install && cd -
mkdir build && cd build && cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include -DHDF5_ROOT=$EBROOTHDF5 -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin && nice make -j install && cd -


}}
}}
Line 36: Line 36:
   |lang="sh"
   |lang="sh"
   |contents=
   |contents=
module load boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6
module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6
source ~/software/dolfin/share/dolfin/dolfin.conf
source ~/software/dolfin/share/dolfin/dolfin.conf
source ~/fenics/bin/activate
source ~/fenics/bin/activate
}}
}}

Revision as of 17:03, 17 July 2017

Pawel Pomorski works for SHARCNET at the University of Waterloo.

Fenics

Compile

File : fenics_install.sh

module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6

mkdir fenics && cd fenics
git clone https://bitbucket.org/fenics-project/fiat.git
git clone https://bitbucket.org/fenics-project/instant.git
git clone https://bitbucket.org/fenics-project/dijitso.git
git clone https://bitbucket.org/fenics-project/ufl.git
git clone https://bitbucket.org/fenics-project/ffc.git
git clone https://bitbucket.org/fenics-project/dolfin.git

pyvenv ~/fenics
source ~/fenics/bin/activate
cd fiat    && pip3 install . && cd -
cd instant && pip3 install . && cd -
cd dijitso && pip3 install . && cd - 
cd ufl     && pip3 install . && cd - 
cd ffc     && pip3 install . && cd - 
pip3 install ply
cd dolfin  
mkdir build && cd build && cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include  -DHDF5_ROOT=$EBROOTHDF5 -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin && nice make -j install && cd -


Run

File : fenics_run.sh

module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6
source ~/software/dolfin/share/dolfin/dolfin.conf
source ~/fenics/bin/activate