# $Id: makefile,v 1.45 2001/08/22 18:00:07 balay Exp $
#
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
MANSEC = Mesh
LOCDIR = src/mesh/examples/tutorials/
EXAMPLESC = unstructured_1d.c unstructured_2d.c
EXAMPLESF =
unstructured_1d: unstructured_1d.o chkopts
-${CLINKER} -o $@ $@.o ${PETSC_MESH_LIB}
${RM} -f $@.o $@.lo
unstructured_2d: unstructured_2d.o chkopts
-${CLINKER} -o $@ $@.o ${PETSC_MESH_LIB}
${RM} -f $@.o $@.lo
#-------------------------------------------------------------------------------------------
# This section is used for testing examples and can be ignored
#-------------------------------------------------------------------------------------------
run_unstructured_1d:
-@${MPIRUN} -np 1 unstructured_1d > unstructured_1d_1.tmp 2>&1; \
if (${DIFF} output/unstructured_1d_1.out unstructured_1d_1.tmp) then true; \
else echo "Possible problem with unstructured_1d_1, diffs above"; fi; \
${RM} -f unstructured_1d_1.tmp
run_unstructured_2d:
-@${MPIRUN} -np 1 unstructured_2d > unstructured_2d_1.tmp 2>&1; \
if (${DIFF} output/unstructured_2d_1.out unstructured_2d_1.tmp) then true; \
else echo "Possible problem with unstructured_2d_1, diffs above"; fi; \
${RM} -f unstructured_2d_1.tmp
TESTEXAMPLES_MATT_SPECIAL = unstructured_2d.PETSc run_unstructured_2d unstructured_2d.rm
include ${PETSC_DIR}/bmake/common/base
include ${PETSC_DIR}/bmake/common/test