tUpdate README and clean up Makefile - lbm-d3q19 - 3D lattice-Boltzmann code to… | |
git clone git://src.adamsgaard.dk/lbm-d3q19 | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 7686c38cd9015de88f6cf34e01451cfe5884d341 | |
parent c8db853c706d13e47fd0022b74df694f3008d803 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sat, 7 Sep 2019 06:50:36 +0200 | |
Update README and clean up Makefile | |
Diffstat: | |
M Makefile | 6 +----- | |
M README.rst | 3 ++- | |
2 files changed, 3 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -1,4 +1,4 @@ | |
-CFLAGS=-g -Wall -pg -O2 | |
+CFLAGS=-g -Wall -pg -O2 -fopenmp | |
LDLIBS=-lm | |
BIN=lbm | |
t@@ -7,20 +7,16 @@ BIN=lbm | |
default: plots | |
plots: data | |
- # Plotting data | |
@cd out && for f in *.txt; do gnuplot -e "matrixfile='$$f'" plotmatrix… | |
data: $(BIN) | |
- # Running program | |
@./$(BIN) | |
profile: clean $(BIN) data | |
- # Profiling program | |
@gprof $(BIN) > $(BIN)-profile.txt | |
@less $(BIN)-profile.txt | |
clean: | |
- # Removing autogenerated files | |
@$(RM) $(BIN) | |
@$(RM) *.o | |
@$(RM) out/*.txt | |
diff --git a/README.rst b/README.rst | |
t@@ -12,6 +12,7 @@ Requirements | |
The build requirements are: | |
* A C compiler, from e.g. the `GNU Compiler Collection | |
<http://gcc.gnu.org/>`_ (GCC) | |
+ * Gnuplot for result visualization | |
Obtaining lbm-d3q19 | |
------------------- | |
t@@ -19,7 +20,7 @@ The best way to keep up to date with subsequent updates, bug… | |
development, is to use the Git version control system. To obtain a local | |
copy, execute:: | |
- git clone https://github.com/anders-dc/lbm-d3q19.git | |
+ git clone git://src.adamsgaard.dk/lbm-d3q19 | |
Build and run instructions | |
-------------------------- |