include ${SEPINC}/SEP.top
-include ../paper/graphics.mf 

RESULTOLD =  nseaFoltTotLap
RESULTSER =  lapGeneral zeroFoltLap consFoltLap gulfFoltTotLap

${RESDIR}/consFoltLap.v : ${DAT}/consFoltRaw.HH 
	${JAVAX} rsf.util.LapGeneral bigFilt=3,3,3 smlFilt=1,1,1            > filt.H
	< $<     ${JX}.FilterAndNorm norm=n filter=filt.H                   > lapn.H
	< $<     ${TMA}                                                     > junk.A
	< junk.A ${CPLT} ${PFRAME} title="Amplitude edge volume" out=iput.v > junk.V
	< lapn.H ${TMA}                                                     > junk.A
	< junk.A ${CPLT} ${PFRAME} title="Laplace operator"      out=oput.v > junk.V
	vp_SideBySideAniso iput.v oput.v                                    > $@ 

${RESDIR}/zeroFoltLap.v : ${DAT}/zeroFoltRaw.HH 
	${JAVAX} rsf.util.LapGeneral bigFilt=3,3,3 smlFilt=1,1,1   > filt.H
	< $<     ${JX}.FilterAndNorm norm=n filter=filt.H          > lapn.H
	< lapn.H ${TMA}                                            > junk.A 
	< junk.A ${CPLT} ${PFRAME} title="Laplace operator" out=$@ > junk.V

.PRECIOUS: gulfFoltTotLap.H nseaFoltTotLap.H 
%TotLap.H : ${DAT}/%TotRaw.HH 
	${JAVAX} rsf.util.LapGeneral bigFilt=3,3,3 smlFilt=1,1,1 > filt.H
	< $<     ${JX}.FilterAndNorm norm=n filter=filt.H        > $@
laparg = 'title="Laplace operator"'
${RESDIR}/%TotLap.v : %TotLap.H 
	< $< ${ZPLT}  > junk.V  out=zplt.v 
	< $< ${XPLT}  > junk.V  out=xplt.v 
	< $< ${YPLT}  > junk.V  out=yplt.v 
	vppen erase=n vpstyle=n zplt.v xplt.v yplt.v > $@
	< $< ${TRAN}                                 > tran.H
	< tran.H ${GMA} ${TOPGREY} ${laparg} out=$@3 > junk.V

${RESDIR}/lapGeneral.v : makefile
	${JAVAX} rsf.util.LapGeneral bigFilt=9 smlFilt=1             > filt.H 
	< filt.H Dots     title="1-D Laplace operator" out=one.v     > junk.V
	${JAVAX} rsf.util.LapGeneral bigFilt=3,4 smlFilt=1,1         > filt.H 
	< filt.H Taplot pclip=90                                     > junk.A 
	< junk.A Ta2vplot title="2-D Laplace operator" out=two.v     > junk.V
	vp_SideBySideAniso one.v two.v                               > $@

clean : jclean

include ${SEPINC}/SEP.bottom


