Browse Source

Added scipy in install

master
r.a.arostica.barrera@rug.nl 7 months ago
parent
commit
e5c84a2bbd
  1. 2
      intel/build_all.sh
  2. 6
      intel/build_petsc.sh
  3. 2
      intel/build_python_modules.sh
  4. 4
      intel/poisson_simple.py
  5. 11
      intel/setup_virtualenv.sh

2
intel/build_all.sh

@ -19,7 +19,7 @@ export FENICS_VERSION="2019.1.0.post0"
# TAG that specifies the name of the build directories and the virtualenv
export TAG="${FENICS_VERSION}-intel2018a"
export BUILD_THREADS=4
export BUILD_THREADS=1
export PREFIX=${HOME}/dev/fenics-${TAG}
export BUILD_DIR=${HOME}/dev/build/fenics-${TAG}
mkdir -p ${PREFIX}

6
intel/build_petsc.sh

@ -2,6 +2,7 @@
#source env_build.sh
## COMMENT THIS SECTION WHEN ./build_all.sh works without errors ##
# TODO: build PETSc with --download-hypre to get hypre preconditioners
export FENICS_VERSION="2019.1.0.post0"
export TAG="${FENICS_VERSION}-intel2018a"
@ -24,8 +25,8 @@ echo "Downloading and building PETSc ${VERSION}"
mkdir -p $BUILD_DIR/tar
cd ${BUILD_DIR} && \
# wget --quiet --read-timeout=10 -nc -P tar/ http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VERSION}.tar.gz && \
# tar -xzf tar/petsc-lite-${VERSION}.tar.gz && \
wget --quiet --read-timeout=10 -nc -P tar/ http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VERSION}.tar.gz && \
tar -xzf tar/petsc-lite-${VERSION}.tar.gz && \
cd petsc-${VERSION} && \
python2 ./configure \
--with-cxx=$MPICXX \
@ -38,6 +39,7 @@ cd ${BUILD_DIR} && \
--with-shared-libraries \
--with-debugging=0 \
--with-blaslapack-dir=${MKLROOT} \
--download-hypre \
--download-mumps \
--download-scalapack \
--download-parmetis \

2
intel/build_python_modules.sh

@ -25,7 +25,7 @@ PETSC4PY_VERSION=3.11.0
# pip3 install -I --no-cache-dir https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-${MPI4PY_VERSION}.tar.gz && \
pew in fenics-${TAG} \
pip3 install -I --no-cache-dir https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-${PETSC4PY_VERSION}.tar.gz && \
pew in fenics-${TAG} pip3 install -I ruamel.yaml gitpython sympy==1.1.1 ipython mpi4py
pew in fenics-${TAG} pip3 install -I ruamel.yaml gitpython sympy==1.1.1 ipython mpi4py scipy
# pew in fenics-${TAG} \
# pip3 install -I --no-cache-dir https://bitbucket.org/slepc/slepc4py/downloads/slepc4py-${SLEPC4PY_VERSION}.tar.gz && \

4
intel/poisson_simple.py

@ -1,6 +1,6 @@
from dolfin import *
set_log_level(15)
mesh = UnitCubeMesh(64, 64, 64)
mesh = UnitCubeMesh(8, 8, 8)
V = FunctionSpace(mesh, 'CG', 1)
u = TrialFunction(V)
v = TestFunction(V)
@ -10,5 +10,5 @@ bc = DirichletBC(V, Constant(0), 'on_boundary')
A, b = assemble_system(a, L, bc)
u = Function(V)
solve(A, u.vector(), b, 'cg', 'amg')
solve(A, u.vector(), b, 'cg')
print(norm(u))

11
intel/setup_virtualenv.sh

@ -1,11 +1,10 @@
#!/bin/bash
## COMMENT THIS SECTION WHEN ./build_all.sh works without errors ##
source env_build.sh
export FENICS_VERSION="2019.1.0.post0"
export TAG="${FENICS_VERSION}-intel2018a"
#
#source env_build.sh
#export FENICS_VERSION="2019.1.0.post0"
#export TAG="${FENICS_VERSION}-intel2018a"
#
## ------------------------------------------------------------- ##
pew new -d fenics-${TAG} -i ply

Loading…
Cancel
Save