
# Since using Dune 2.7, running the tutorial example fails after a number of
# time steps on an assertion deep within the UG grid interface. We therefore
# skip running the example for now and just build it. MW 2021-02-22.
# TUTORIALTARGETS += run-cardio-tutorial
TUTORIALTARGETS += build-cardio-tutorial
TUTORIALRUNTARGETS +=

DEPENDSRC += tutorial/cardio/aliev.cpp
CLEAN += tutorial/cardio/graph/*

.PHONY: build-cardio-tutorial
build-cardio-tutorial: tutorial/cardio/aliev

.PHONY: run-cardio-tutorial
run-cardio-tutorial: tutorial/cardio/aliev
	mkdir -p tutorial/cardio/graph
	cd tutorial/cardio; ./aliev

tutorial/cardio/aliev: tutorial/cardio/aliev.o
	$(CXX) $(FLAGS) $< $(KASKADE7)/libs/*.o $(KASKADELIB) \
	$(DUNELIB) \
	$(UGLIB) \
	$(BOOSTLIB) \
	$(DIRECTSOLVERLIB) \
	$(ITSOLLIB) \
	$(HYPRELIB) \
	$(BLASLIB) $(FTNLIB) $(NUMALIB) $(LINKFLAGS) -o $@















# include ../../Makefile.Local
# include ../../Makefile.Rules
#
# INCLUDE = $(DUNEINC) $(UGINC) $(BOOSTINC) $(AMIRAINC) $(KASKADEINC) $(ITSOLINC) $(HYPREINC) $(TRILINOSINC) $(UMFPACKINC) $(MUMPSINC) $(PSURFACEINC)
# FLAGS = $(WFLAGS) $(OPTFLAGS)
#
# aliev: aliev.o Makefile $(KASKADE7)/libs/libkaskade.a
# 	$(CXX) $(FLAGS) $< $(KASKADE7)/libs/*.o $(KASKADELIB) \
#  $(DUNELIB) \
#  $(UGLIB) \
#  $(BOOSTLIB) \
#  $(UMFPACKLIB) \
#  $(MUMPSLIB) \
#  $(ITSOLLIB) \
#  $(HYPRELIB) \
#  $(AMIRALIB) \
#  $(BLASLIB) $(FTNLIB) $(NUMALIB) -o $@
#
# depend:
# 	../../tools/gccmakedep -f Makefile $(INCLUDE) $(MAKEDEPENDFLAGS) aliev.cpp
# 	../../tools/remove_install_deps Makefile $(KASKADE7)
#
# clean:
# 	rm -f gccerr.txt aliev  aliev.o  graph/* *.bak
#
