From 4c891e3f614e606e340c335b5bf6c41858c24196 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 26 Feb 2008 14:51:11 +0000 Subject: [PATCH] Also do what I just did in step-20 git-svn-id: https://svn.dealii.org/trunk@15784 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-22/Makefile | 18 +++++++++++++++--- deal.II/examples/step-22/step-22.cc | 2 -- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/deal.II/examples/step-22/Makefile b/deal.II/examples/step-22/Makefile index 4aee8cd9cc..1f628a29fb 100644 --- a/deal.II/examples/step-22/Makefile +++ b/deal.II/examples/step-22/Makefile @@ -14,7 +14,7 @@ target = $(basename $(shell echo step-*.cc)) # run-time checking of parameters and internal states is performed, so # you should set this value to `on' while you develop your program, # and to `off' when running production computations. -debug-mode = on +debug-mode = off # As third field, we need to give the path to the top-level deal.II @@ -96,11 +96,12 @@ $(target) : $(libraries) # useful if you want to call the executable with arguments which do # not change frequently. You may then want to add them to the # following rule: -run: $(target) +run: $(target) UMFPACK-check @echo ============================ Running $< @./$(target)$(EXEEXT) + # As a last rule to the `make' program, we define what to do when # cleaning up a directory. This usually involves deleting object files # and other automatically created files such as the executable itself, @@ -123,10 +124,21 @@ clean: @$(CXX) $(CXXFLAGS.o) -c $< -o $@ +# A rule made to ensure that UMFPACK is indeed configured +ifeq ($(USE_CONTRIB_UMFPACK),yes) +UMFPACK-check: +else +UMFPACK-check: + @echo "This program can only be run if deal.II is configured with UMFPACK support" + @false +endif + + + # The following statement tells make that the rules `run' and `clean' # are not expected to produce files of the same name as Makefile rules # usually do. -.PHONY: run clean +.PHONY: run clean UMFPACK-check # Finally there is a rule which you normally need not care much about: diff --git a/deal.II/examples/step-22/step-22.cc b/deal.II/examples/step-22/step-22.cc index c19973e269..f2cb34e5b2 100644 --- a/deal.II/examples/step-22/step-22.cc +++ b/deal.II/examples/step-22/step-22.cc @@ -244,8 +244,6 @@ class InverseMatrix : public Subscriptor private: const SmartPointer matrix; const Preconditioner &preconditioner; - - mutable GrowingVectorMemory<> vector_memory; }; -- 2.39.5