From c39d17771dd29f3a3264e59500d3b4d4776f1529 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Mon, 18 Nov 2019 14:21:39 +0100
Subject: [PATCH] Fixing testing for the examples

---
 example/Numerics/Vortex_in_cell/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/example/Numerics/Vortex_in_cell/Makefile b/example/Numerics/Vortex_in_cell/Makefile
index a381c6e55..0bebd2fc1 100644
--- a/example/Numerics/Vortex_in_cell/Makefile
+++ b/example/Numerics/Vortex_in_cell/Makefile
@@ -11,7 +11,7 @@ OBJ_VIC_PETSC_OPT = main_vic_petsc_opt.o
 all: vic_petsc vic_petsc_opt
 
 vic_petsc_test: OPT += -DTEST_RUN
-vic_petsc_test: vic_petsc
+vic_petsc_test: vic_petsc vic_petsc_opt
 
 %.o: %.cpp
 	$(CC) -O3 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
@@ -23,7 +23,7 @@ vic_petsc: $(OBJ_VIC_PETSC)
 	$(CC) -o $@ $^ $(LIBS_PATH) $(LIBS)
 	
 run: vic_petsc_test
-	mpirun -np 4 ./vic_petsc
+	mpirun -np 4 ./vic_petsc && mpirun -np 4 ./vic_petsc_opt
 	
 .PHONY: clean all
 
-- 
GitLab