commit cf5511226d5583fc4d83435119d9f0f5c1915c52
parent b76cc7f8ed01abbed03e020b96b72e66c6407ecc
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Thu, 20 Oct 2016 12:25:28 -0700
change terminal and fix fprintf calls
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lbm.c b/lbm.c
@@ -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);
}
@@ -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
@@ -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