Commit c39d1777 authored by incardon's avatar incardon

Fixing testing for the examples

parent 05dba23f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment