petsc-3.6.1 2015-08-06
#requirespackage 'PETSC_HAVE_MOAB'
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/dm/impls/moab/examples/tests/
EXAMPLESC = ex1.cxx ex2.cxx
EXAMPLESF =
MANSEC = DM
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
ex1: ex1.o chkopts
-${CLINKER} -o ex1 ex1.o ${PETSC_DM_LIB}
${RM} -f ex1.o
ex2: ex2.o chkopts
-${CLINKER} -o ex2 ex2.o ${PETSC_DM_LIB}
${RM} -f ex2.o
#--------------------------------------------------------------------------
runex1:
-@${MPIEXEC} -n 1 ./ex1 > ex1_1.tmp 2>&1;\
if (${DIFF} output/ex1_1.out ex1_1.tmp) then true ; \
else printf "${PWD}\nPossible problem with runex1, diffs above\n=========================================\n"; fi ;\
${RM} -f ex1_1.tmp
runex2:
-@${MPIEXEC} -n 1 ./ex2 -debug -fields v1,v2,v3 > ex2_1.tmp 2>&1;\
if (${DIFF} output/ex2_1.out ex2_1.tmp) then true ; \
else echo ${PWD} ; echo "Possible problem with runex2, diffs above \n========================================="; fi ;\
${RM} -f ex2_1.tmp
TESTEXAMPLES_MOAB = ex1.PETSc runex1 ex1.rm ex2.PETSc runex2 ex2.rm
include ${PETSC_DIR}/lib/petsc/conf/test