# $Id: makefile,v 1.26 2001/08/22 17:59:50 balay Exp $ CFLAGS = FFLAGS = CPPFLAGS = FPPFLAGS = LOCDIR = src/vec/is/examples/tutorials/ EXAMPLESC = ex1.c ex2.c ex3.c ex4.c EXAMPLESF = ex1f.F ex2f.F ex1f90.F ex3f90.F include ${PETSC_DIR}/bmake/common/base ex1: ex1.o chkopts -${CLINKER} -o ex1 ex1.o ${PETSC_VEC_LIB} ${RM} -f ex1.o ex1f: ex1f.o chkopts -${FLINKER} -o ex1f ex1f.o ${PETSC_FORTRAN_LIB} ${PETSC_VEC_LIB} ${RM} -f ex1f.o ex1f90: ex1f90.o chkopts -${FLINKER} -o ex1f90 ex1f90.o ${PETSC_FORTRAN_LIB} ${PETSC_VEC_LIB} ${RM} -f ex1f90.o ex2: ex2.o chkopts -${CLINKER} -o ex2 ex2.o ${PETSC_VEC_LIB} ${RM} -f ex2.o ex2f: ex2f.o chkopts -${FLINKER} -o ex2f ex2f.o ${PETSC_FORTRAN_LIB} ${PETSC_VEC_LIB} ${RM} -f ex2f.o ex3: ex3.o chkopts -${CLINKER} -o ex3 ex3.o ${PETSC_VEC_LIB} ${RM} -f ex3.o ex3f90: ex3f90.o chkopts -${FLINKER} -o ex3f90 ex3f90.o ${PETSC_FORTRAN_LIB} ${PETSC_VEC_LIB} ${RM} -f ex3f90.o ex4: ex4.o chkopts -${CLINKER} -o ex4 ex4.o ${PETSC_VEC_LIB} ${RM} -f ex4.o #------------------------------------------------------------------------ runex1: -@${MPIRUN} -np 1 ex1 > ex1.tmp 2>&1;\ if (${DIFF} output/ex1.out ex1.tmp) then true; \ else echo "Possible problem with ex1, diffs above"; fi ;\ ${RM} -f ex1.tmp runex1f: -@${MPIRUN} -np 1 ex1f | sort > ex1f.tmp 2>&1;\ if (${DIFF} output/ex1f.out ex1f.tmp) then true; \ else echo "Possible problem with ex1f, diffs above"; fi ;\ ${RM} -f ex1f.tmp runex1f90: -@${MPIRUN} -np 1 ex1f90 | sort > ex1f90.tmp 2>&1;\ if (${DIFF} output/ex1f90.out ex1f90.tmp) then true; \ else echo "Possible problem with ex1f90, diffs above"; fi ;\ ${RM} -f ex1f90.tmp runex2: -@${MPIRUN} -np 1 ex2 > ex2.tmp 2>&1;\ if (${DIFF} output/ex2.out ex2.tmp) then true; \ else echo "Possible problem with ex2, diffs above"; fi ;\ ${RM} -f ex2.tmp runex2f: -@${MPIRUN} -np 1 ex2f > ex2f.tmp 2>&1;\ if (${DIFF} output/ex2f.out ex2f.tmp) then true; \ else echo "Possible problem with ex2f, diffs above"; fi ;\ ${RM} -f ex2f.tmp runex3: -@${MPIRUN} -np 1 ex3 > ex3.tmp 2>&1;\ if (${DIFF} output/ex3.out ex3.tmp) then true; \ else echo "Possible problem with ex3, diffs above"; fi ;\ ${RM} -f ex3.tmp runex3f90: -@${MPIRUN} -np 1 ex3f90 |sort > ex3f90.tmp 2>&1;\ if (${DIFF} output/ex3f90.out ex3f90.tmp) then true; \ else echo "Possible problem with ex3f90, diffs above"; fi ;\ ${RM} -f ex3f90.tmp TESTEXAMPLES_1 = ex1.PETSc runex1 ex1.rm ex2.PETSc runex2 ex2.rm ex3.PETSc \ runex3 ex3.rm TESTEXAMPLES_2 = TESTEXAMPLES_3 = ex1f.PETSc runex1f ex1f.rm ex2f.PETSc runex2f ex2f.rm TESTEXAMPLES_9 = TESTEXAMPLES_4 = TESTEXAMPLES_12 = ex1f90.PETSc runex1f90 ex1f90.rm ex3f90.PETSc runex3f90 ex3f90.rm TESTEXAMPLES_13 = ex4.PETSc ex4.rm include ${PETSC_DIR}/bmake/common/test