1-include ../../../../petscdir.mk
2CFLAGS           =
3FFLAGS           =
4CPPFLAGS         =
5FPPFLAGS         =
6LOCDIR           = src/ksp/ksp/tutorials/
7DIRS             = network
8EXAMPLESC        = ex1.c ex2.c ex3.c ex4.c ex5.c ex6.c ex7.c ex8.c ex9.c \
9                   ex10.c ex11.c ex12.c ex13.c ex15.c ex16.c ex18.c ex21.c ex23.c \
10                   ex25.c ex27.c ex28.c ex29.c ex32.c ex34.c \
11                   ex41.c ex42.c ex43.c \
12                   ex45.c ex46.c  ex49.c ex50.c ex51.c ex52.c ex53.c \
13                   ex54.c ex55.c ex56.c ex59.c ex62.c ex64.c ex65.c ex66.c \
14                   ex67.c ex68.c ex69.c ex70.c ex71.c ex72.c ex73.c ex74.c ex75.c ex76.c ex77.c ex78.c ex79.c ex100.c
15EXAMPLESF        = ex1f.F90 ex2f.F90 ex6f.F90 ex11f.F90 ex13f90.F90 ex14f.F90 ex15f.F90 ex22f.F90 ex44f.F90 ex45f.F90 \
16                   ex5f.F90 ex52f.F90 ex54f.F90 ex61f.F90 ex7f.F90 ex100f.F90 ex75f.F90 ex76f.F90 ex77f.F90
17MANSEC           = KSP
18CLEANFILES       = rhs.vtk solution.vtk
19NP               = 1
20DIRS             = amrex
21
22include ${PETSC_DIR}/lib/petsc/conf/variables
23include ${PETSC_DIR}/lib/petsc/conf/rules
24
25testex100: ex100.PETSc
26	-@if [ "${PETSC_WITH_BATCH}" != "" ]; then \
27           echo "Running with batch filesystem; to test run src/ksp/ksp/tutorials/ex100 with" ; \
28           echo "your systems batch system"; \
29        elif [ "${MPIEXEC}" = "/bin/false" ]; then \
30           echo "*mpiexec not found*. Please run src/ksp/ksp/tutorials/ex100 manually"; \
31	elif [ -f ex100 ]; then \
32           ${MPIEXEC} -n 1 ./ex100 -test  > ex100_1.tmp 2>&1; \
33	   if (${DIFF} output/ex100_1.testout ex100_1.tmp > /dev/null 2>&1) then \
34           echo "C/C++ Python example src/ksp/ksp/tutorials/ex100 run successfully with 1 MPI process"; \
35	   else echo "Possible error running C/C++ Python src/ksp/ksp/tutorials/ex100 with 1 MPI process"; \
36           echo "See http://www.mcs.anl.gov/petsc/documentation/faq.html";\
37           cat ex100_1.tmp; fi; \
38        ${RM} -f ex100_1.tmp; fi
39
40include ${PETSC_DIR}/lib/petsc/conf/test
41