# Make for the cmd directory to make it easier to re-make things in the parent directory

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


# Here are targets to build grids for some of the examples. 

# grids for cyleigen.cmd: 
tube1.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/tube1.order4.cmd
tube2.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/tube2.order4.cmd


# grids for cic.planeWaveBC
cice3.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/cicArg -factor=3 -order=4 -interp=e 
cice16.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/cicArg -factor=16 -order=4 -interp=e 


# grids for dielectricCyl
innerOuter4.order2.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/innerOuter -factor=4 -order=2 -deltaRad=.5 -interp=e -name="innerOuter4.order2.hdf"
innerOuter4.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/innerOuter -factor=4 -order=4 -deltaRad=.5 -interp=e -name="innerOuter4.order4.hdf"
innerOuter8.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/innerOuter -factor=8 -order=4 -deltaRad=.5 -interp=e -name="innerOuter8.order4.hdf"
innerOuter16.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/innerOuter -factor=16 -order=4 -deltaRad=.5 -interp=e -name="innerOuter16.order4.hdf"

# grids for scat.cmd 
trianglee4.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/triangleArg -factor=4 -order=4 -interp=e
trianglee8.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/triangleArg -factor=8 -order=4 -interp=e

# grids for sib.planeWaveBC
sib1.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/sib1.order4.cmd
sib2.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/sib2.order4.cmd
sib4.order4.hdf:
	$(Overture)/bin/ogen noplot $(Overture)/sampleGrids/sib4.order4.cmd
