BINPREFIX = ${fluidity}/bin/
SCHEMAS = ${fluidity}/schemas


diamond:
	diamond -s ${SCHEMAS}/fluidity_options.rng 2d_rotate.flml &

preprocess: 
	@echo **********Generating the mesh using gmsh in 2d:
	gmsh -2 -v 0 2d_rotating.geo
	@echo **********Converting the gmsh mesh to triangle format:
	gmsh2triangle -2 2d_rotating.msh 

run:
	@echo **********Calling fluidity with least verbose log output enabled:
	${BINPREFIX}fluidity -v0 -l 2d_rotate.flml &


clean:
	@echo **********Cleaning the output from previous fluidity runs:
	rm -rf *.pdf *.png *.stat *.vtu *checkpoint* *convergence* *.log-* *.err-* matrixdump* *.vtu
