tchange terminal and fix fprintf calls - lbm-d3q19 - 3D lattice-Boltzmann code … | |
git clone git://src.adamsgaard.dk/lbm-d3q19 | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit cf5511226d5583fc4d83435119d9f0f5c1915c52 | |
parent b76cc7f8ed01abbed03e020b96b72e66c6407ecc | |
Author: Anders Damsgaard Christensen <[email protected]> | |
Date: Thu, 20 Oct 2016 12:25:28 -0700 | |
change terminal and fix fprintf calls | |
Diffstat: | |
M lbm.c | 4 ++-- | |
M out/plotmatrix.gp | 2 +- | |
2 files changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/lbm.c b/lbm.c | |
t@@ -653,7 +653,7 @@ int main(int argc, char** argv) | |
fclose(frho); | |
} else { | |
fprintf(stderr, "Error: Could not open output file "); | |
- fprintf(stderr, filename); | |
+ fprintf(stderr, "%s", filename); | |
fprintf(stderr, "\n"); | |
exit(EXIT_FAILURE); | |
} | |
t@@ -681,7 +681,7 @@ int main(int argc, char** argv) | |
fclose(frho); | |
} else { | |
fprintf(stderr, "Error: Could not open output file "); | |
- fprintf(stderr, filename); | |
+ fprintf(stderr, "%s", filename); | |
fprintf(stderr, "\n"); | |
exit(EXIT_FAILURE); | |
} | |
diff --git a/out/plotmatrix.gp b/out/plotmatrix.gp | |
t@@ -3,7 +3,7 @@ | |
# plot matrix file. Invoke with: | |
# $ gnuplot -e "matrixfile='file.txt'" plotmatrix.gp | |
-set terminal pngcairo | |
+set terminal png | |
set output matrixfile.".png" | |
set size ratio -1 |