diff --git a/example/Numerics/Vortex_in_cell/Makefile b/example/Numerics/Vortex_in_cell/Makefile index a381c6e553607a10d714fa9c1ba66e97e1275ad5..0bebd2fc1a1d03617988ffba29ffec48ef2f0255 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