# Type "make check" to run the regression tests
# NOTE: The file tests contains the list of test cases

common = ../../common

check:  buildGrids
	ln -sf $(common)/src/check.p .
	check.p -solver=cgins

check-quiet:  buildGrids
	ln -sf $(common)/src/check.p .
	check.p -solver=cgins -verbose=0

cgins:
	@cd ..;      $(MAKE) -$(MAKEFLAGS) cgins


shortHalfCylinder.hdf:
	${Overture}/bin/ogen noplot ${Overture}/sampleGrids/halfCylinder -name="shortHalfCylinder" -xa=-2.5 -xb=2.5 -factor=.5 -stretch=2.

slideri1.order2.hdf:
	${Overture}/bin/ogen noplot ${Overture}/sampleGrids/slider -factor=1

square10.order4.hdf:
	${Overture}/bin/ogen noplot ${Overture}/sampleGrids/squareArg -order=4 -nx=10 

box10.order4.hdf:
	${Overture}/bin/ogen noplot ${Overture}/sampleGrids/box -order=4 -nx=10 

square.cmd: 
	ln -s ${Overture}/sampleGrids/square.cmd $@

annulus.cmd: 
	ln -s ${Overture}/sampleGrids/annulus.cmd $@

box.cmd:
	ln -s ${Overture}/sampleGrids/box.cmd $@

cylinder.cmd: 
	ln -s ${Overture}/sampleGrids/cylinder.cmd $@

# build grids that are used by the regression tests (and not already in Overture/sampleGrids)
buildGrids: shortHalfCylinder.hdf slideri1.order2.hdf box.cmd square.cmd annulus.cmd cylinder.cmd \
            square10.order4.hdf box10.order4.hdf


