Commit a5f7adf7 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

compile with petsc+mpi

parent 7f50552a
......@@ -21,17 +21,21 @@
ALL: libmbfluid3.so libmbfluid2.so libscontact2.so libscontact3.so
CFLAGS=-Wno-unused-function -g -march=native -mtune=native -fPIC -std=gnu99 -Iscontact -Ihxt -Isrc
CFLAGS=-Wno-unused-function -g -O3 -march=native -mtune=native -fPIC -std=gnu99 -Iscontact -Ihxt -Isrc
LDFLAGS=-shared -lm
FLUID_C=src/fluid_problem.c src/mesh.c src/mesh_find.c scontact/quadtree.c hxt/hxt_linear_system.c hxt/hxt_linear_system_lu.c hxt/hxt_message.c src/mbxml.c src/yxml.c src/fluid_problem_io.c
FLUID_H=src/tools.h src/fluid_problem.h hxt/hxt_linear_system.h src/mesh_find.h src/mesh.h scontact/quadtree.h scontact/vector.h
USE_PETSC=1
USE_PETSC?=1
PETSC_MPIUNI?=1
ifeq ($(USE_PETSC),1)
FLUID_C += hxt/hxt_linear_system_petsc.c
CFLAGS += -I${PETSC_DIR}/${PETSC_ARCH}/include -I${PETSC_DIR}/include -I${PETSC_DIR}/include/petsc/mpiuni -DHXT_HAVE_PETSC
CFLAGS += -I${PETSC_DIR}/${PETSC_ARCH}/include -I${PETSC_DIR}/include -DHXT_HAVE_PETSC
LDFLAGS += -L${PETSC_DIR}/${PETSC_ARCH}/lib -Wl,-rpath=${PETSC_DIR}/${PETSC_ARCH}/lib -lpetsc
ifeq ($(PETSC_MPIUNI),1)
CFLAGS += -I${PETSC_DIR}/include/petsc/mpiuni
endif
endif
SCONTACT_C=scontact/quadtree.c scontact/scontact.c src/mbxml.c src/yxml.c
......
FROM ubuntu:17.10
RUN apt update
RUN apt install -y git python3 petsc-dev
RUN curl -O http://gmsh.info/bin/Linux/gmsh-3.0.6-Linux64.tgz && tar xf gmsh-3.0.6-Linux64.tgz && mv gmsh-3.0.6-Linux64/bin/gmsh /usr/local/bin
VOLUME ["/etc/gitlab-runner"]
RUN useradd -ms /bin/bash validator
USER validator
WORKDIR /home/validator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment