

TUTORIALTARGETS += build-embeddedErrorEstimation-tutorial
TUTORIALRUNTARGETS += run-embeddedErrorEstimation-tutorial
DEPENDSRC += tutorial/Embedded_errorEstimation/peaksource.cpp

.PHONY: build-embeddedErrorEstimation-tutorial
build-embeddedErrorEstimation-tutorial: tutorial/Embedded_errorEstimation/heat tutorial/Embedded_errorEstimation/heat3d

.PHONY: run-embeddedErrorEstimation-tutorial
run-embeddedErrorEstimation-tutorial: tutorial/Embedded_errorEstimation/heat tutorial/Embedded_errorEstimation/heat3d
	mkdir -p tutorial/Embedded_errorEstimation/graph
	cd tutorial/Embedded_errorEstimation; ./heat; ./heat3d


tutorial/Embedded_errorEstimation/heat: tutorial/Embedded_errorEstimation/peaksource.cpp tutorial/Embedded_errorEstimation/Makefile
	$(CXX) $(FLAGS) $(INCLUDE) $< $(KASKADE7)/libs/*.o $(KASKADELIB) \
	$(DUNELIB) \
	$(UGLIB) \
	$(BOOSTLIB) \
	$(DIRECTSOLVERLIB) \
	$(ITSOLLIB) \
	$(HYPRELIB) \
	$(BLASLIB) $(FTNLIB) $(NUMALIB) $(LINKFLAGS) -o $@  2> gccerr.txt

tutorial/Embedded_errorEstimation/heat3d: tutorial/Embedded_errorEstimation/peaksource.cpp tutorial/Embedded_errorEstimation/Makefile
	$(CXX) $(FLAGS) $(INCLUDE) -DSPACEDIM=3 $< $(KASKADE7)/libs/*.o $(KASKADELIB) \
	$(DUNELIB) \
	$(UGLIB) \
	$(BOOSTLIB) \
	$(DIRECTSOLVERLIB) \
	$(ITSOLLIB) \
	$(HYPRELIB) \
	$(BLASLIB) $(FTNLIB) $(NUMALIB) $(LINKFLAGS) -o $@  2> gccerr.txt


