tadd parantheses to avoid warning - slidergrid - grid of elastic sliders on a frictional surface
(HTM) git clone git://src.adamsgaard.dk/slidergrid
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0f0bccee849d4eb219805af002c0877ab961c8d6
(DIR) parent 56d818be2914d596c94e0b4968a04f37ca20a759
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 5 Apr 2016 13:57:43 -0700
add parantheses to avoid warning
Diffstat:
M slidergrid/main.c | 4 ++--
M tests/elasticity/Makefile | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/slidergrid/main.c b/slidergrid/main.c
t@@ -217,8 +217,8 @@ int main(int argc, char** argv)
time_since_file = 0.0;
}
- if (verbose && time_since_status > sim.dt*100. ||
- time_since_status >= sim.file_interval) {
+ if (verbose && (time_since_status > sim.dt*100. ||
+ time_since_status >= sim.file_interval)) {
print_status(sim);
time_since_status = 0.;
}
(DIR) diff --git a/tests/elasticity/Makefile b/tests/elasticity/Makefile
t@@ -16,7 +16,7 @@ default: run-test
run-test: normal
./$< --verbose
python $(ROOT)postprocessing.py --plot-kinetic-energy $<-output
- python $(ROOT)postprocessing.py --plot-sliders $<-output
+ #python $(ROOT)postprocessing.py --plot-sliders $<-output
normal: normal.o $(ESSENTIALOBJS)
$(CC) $(LDLIBS) $^ -o $@