tMakefile - lbm-d3q19 - 3D lattice-Boltzmann code to approximate Navier-Stokes incompressible flow
HTML git clone git://src.adamsgaard.dk/lbm-d3q19
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
tMakefile (420B)
---
1 CFLAGS=-Wall -O2 -fopenmp -march=native -funroll-loops #-g -pg
2 LDLIBS=-lm
3 BIN=lbm
4
5 .PHONY: default plots data profile clean
6
7 default: plots
8
9 plots: data
10 @cd out && for f in *.txt; do gnuplot -e "matrixfile='$$f'" plotmatrix.gp; done
11
12 data: $(BIN)
13 @./$(BIN)
14
15 profile: clean $(BIN) data
16 @gprof $(BIN) > $(BIN)-profile.txt
17 @less $(BIN)-profile.txt
18
19 clean:
20 @$(RM) $(BIN)
21 @$(RM) *.o
22 @$(RM) out/*.txt
23 @$(RM) out/*.png