Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fluidparticles
MigFlow
Commits
a5f7adf7
Commit
a5f7adf7
authored
Jun 08, 2018
by
Jonathan Lambrechts
Browse files
compile with petsc+mpi
parent
7f50552a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
a5f7adf7
...
@@ -21,17 +21,21 @@
...
@@ -21,17 +21,21 @@
ALL
:
libmbfluid3.so libmbfluid2.so libscontact2.so libscontact3.so
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
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_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
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)
ifeq
($(USE_PETSC),1)
FLUID_C
+=
hxt/hxt_linear_system_petsc.c
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
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
endif
SCONTACT_C
=
scontact/quadtree.c scontact/scontact.c src/mbxml.c src/yxml.c
SCONTACT_C
=
scontact/quadtree.c scontact/scontact.c src/mbxml.c src/yxml.c
...
...
docker/Dockerfile
0 → 100644
View file @
a5f7adf7
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment