-
Notifications
You must be signed in to change notification settings - Fork 30
/
makefile
executable file
·59 lines (58 loc) · 1.76 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
PROGR_DIR_PATH = $(PWD)/code
all:
make install_open-mpi;
install_open-mpi:
make libs;
killall python; killall mpi_mlfma; rm -rf tmp*;
./run.sh;
killall python; killall mpi_mlfma; rm -rf tmp*;
package:
make clean;
python $(PROGR_DIR_PATH)/makePackage.py;
libs:
cd $(PROGR_DIR_PATH)/MoM; make libs; \
make communicateZnearBlocks; \
make mpi_mlfma; \
make mesh_functions_seb; \
make mesh_cubes; \
make distribute_Z_cubes; \
make RWGs_renumbering; \
make compute_Z_near; \
make compute_SAI_precond;
communicateZnearBlocks:
make - C $(PROGR_DIR_PATH)/MoM communicateZnearBlocks;
mpi_mlfma:
make - C $(PROGR_DIR_PATH)/MoM mpi_mlfma;
distribute_Z_cubes:
make - C $(PROGR_DIR_PATH)/MoM distribute_Z_cubes;
RWGs_renumbering:
make - C $(PROGR_DIR_PATH)/MoM RWGs_renumbering;
compute_Z_near:
make - C $(PROGR_DIR_PATH)/MoM compute_Z_near;
compute_SAI_precond:
make - C $(PROGR_DIR_PATH)/MoM compute_SAI_precond;
mesh_functions_seb:
make - C $(PROGR_DIR_PATH)/MoM mesh_functions_seb;
mesh_cubes:
make - C $(PROGR_DIR_PATH)/MoM mesh_cubes;
documentation:
make -C doc documentation;
clean:
rm -rf *~ *.pyc *.txt *.out *.tar *.gz *.tgz MPIcommand.sh GMSHcommand.sh __pycache__;
cd run_in_out; rm -rf *~ *.pyc __pycache__;
make - C $(PROGR_DIR_PATH) clean;
make -C geo clean;
make -C installScripts clean;
make -C doc clean;
rm -rf Puma-EM;
rm -rf tmp*;
rm -rf result* simuDir*;
docker_run:
if [ "${shell docker images -q pumaem 2> /dev/null}" = "" ]; then \
docker build . -t pumaem; \
fi
docker run --rm -u $(shell id -u ${USER} ):$(shell id -g ${USER} ) \
-v $(shell pwd):/opt/share -w /opt/share pumaem /bin/bash -c \
"make CFLAGS=\"-c -O3 -fPIC -pthread -march=native -mfpmath=both\""
documentation_from_docker:
make -C doc documentation_from_docker;