run_sparselizard.sh 575 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # THIS SCRIPT RUNS THE SPARSELIZARD EXECUTABLE
  3. if [ "$(uname)" == "Linux" ]; then
  4. # With or without the GMSH API:
  5. if [ -d ~/SLlibs/gmsh ]; then
  6. LD_LIBRARY_PATH="$HOME/SLlibs/petsc/arch-linux2-c-opt/lib":"$HOME/SLlibs/gmsh/lib":$LD_LIBRARY_PATH
  7. else
  8. LD_LIBRARY_PATH="$HOME/SLlibs/petsc/arch-linux2-c-opt/lib":$LD_LIBRARY_PATH
  9. fi
  10. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
  11. elif [ "$(uname)" == "Darwin" ]; then
  12. DYLD_LIBRARY_PATH="$HOME/SLlibs/petsc/arch-darwin-c-opt/lib":$DYLD_LIBRARY_PATH
  13. export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
  14. fi
  15. ./sparselizard;