view test/Makefile @ 21:676a42510364

Test for classes create. Solve the Laplace equation with fem-fenics and dolfin * test_expr.m: script for the test * test_expr.cpp: DLD function. It uses both fem-fenics and dolfin objects * Makefile: compile the test. We assume fenics is available
author gedeone-octave <marco.vassallo@outlook.com>
date Fri, 12 Jul 2013 13:57:20 +0200
parents
children aaf7644c7f89
line wrap: on
line source

MKOCTFILE ?= mkoctfile

OCTFILES=test_expr.oct


CPPFLAGS += -DHAVE_DOLFIN_H
LIBS += -ldolfin

all: $(OCTFILES)

test_expr.oct: test_expr.o
	$(MKOCTFILE) $(CPPFLAGS) -s ../src/fem_init_env.o test_expr.o -o $@ $(LDFLAGS) $(LIBS)

test_expr.o:  test_expr.cpp laplace
	$(MKOCTFILE) $(CPPFLAGS) -c test_expr.cpp $(LDFLAGS) -o $@ -I../src/

laplace:  Laplace.ufl
	ffc -l dolfin Laplace.ufl

clean:
	-rm -f *.o core octave-core *.oct *~ *.xml *.pvd *.vtu

cleanall:
	-rm -f *.o core octave-core *.oct *~ *.xml *.status *.log octave-workspace configure
	-rm -r autom4te.cache
	-rm -f Makefile