
CFLAGS	        =
FFLAGS	        =
CPPFLAGS        =
FPPFLAGS        =	 
LOCDIR          = src/dm/ao/examples/tests/ex3d
EXAMPLESC       = ex3.cpp
EXAMPLESF       = 
MANSEC          = AO

include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

ex3: ex3.o  chkopts 
	-${CLINKER} -o ex3 ex3.o ${PETSC_DM_LIB}
	${RM} -f ex3.o

#-------------------------------------------------------------------
runex3:
	-@${MPIEXEC} -n 12 ./ex3 > ex3.tmp 2>&1;   \
	   if (${DIFF} output/ex3_1.out ex3.tmp) then true; \
	   else echo "Possible problem with ex3_1, diffs above"; fi; \
	   ${RM} -f ex3.tmp
runex3_2:
	-@${MPIEXEC} -n 12 ./ex3 -ao_type basic > ex3.tmp 2>&1;   \
	   if (${DIFF} output/ex3_1.out ex3.tmp) then true; \
	   else echo "Possible problem with ex3_1, diffs above"; fi; \
	   ${RM} -f ex3.tmp
runex3_3:
	-@${MPIEXEC} -n 30 ./ex3 > ex3.tmp 2>&1;   \
	   if (${DIFF} output/ex3_3.out ex3.tmp) then true; \
	   else echo "Possible problem with ex3_3, diffs above"; fi; \
	   ${RM} -f ex3.tmp
runex3_4:
	-@${MPIEXEC} -n 30 ./ex3 -ao_type basic > ex3.tmp 2>&1;   \
	   if (${DIFF} output/ex3_3.out ex3.tmp) then true; \
	   else echo "Possible problem with ex3_4, diffs above"; fi; \
	   ${RM} -f ex3.tmp

TESTEXAMPLES_C		  =  ex3.PETSc runex3 runex3_2 runex3_3 runex3_4 ex3.rm
TESTEXAMPLES_C_X11	  = 
TESTEXAMPLES_FORTRAN	  = 
TESTEXAMPLES_C_X11_MPIUNI = 
TESTEXAMPLES_C3		  = 

include ${PETSC_DIR}/conf/test
