MAKE_DEPEND=yes
include ${SEPINC}/SEP.top

LATOPTS  = style=html
#LATOPTS = option=web 'style=jfc,makeidx,html,amsmath'
#LATOPTS=class=geophysics
OLEVEL=2
UF90FLAGS =-openmp -openmp_report2 -check bounds -O3
MAINLIBS=-lsep2df90 -lsep3df90 -lsep3d -lsepf90 -lsep -L${LIBDIR}  -lsepgeef90
UF77LIBS = ${BEILIB}
UF90DEFINES = -DSEP_OMP
DIPLIBS = -lvplotf90 -lvplot -lsepdipf90 -lsepfilterf90 -lsepvectorf90  

WHEREFFTW = /opt/FFTW/lib/lib
UF90LIBS=${MPILIBS} ${MAINLIBS} ${DIPLIBS} -lsepparf90 -static-libcxa -lguide -lseppar  -lsuperset -lsupersetf90 -lsuperset -lsepauxf90 -lsepmathf90 $(WHEREFFTW)fftw3f.a # -lseppar_mpi

F90=/opt/intel/fce/10.0.023/bin/ifort

#COLOR=y

##########################
#
# Progs
#
owkill: integrate.x
	rm -f integrate.x; make integrate.x

##########################################

#   OPTIONS
# =======================

dip_opt= coh=coh-$@ res=res-$@ dip=dip-$@ xres=xres-$@ gmov=gmov-$@ rmov=rmov-$@ niter=30 eps1=0.0002 eps2=0.00002
x=./integrate.x method='xgrad'
p=integrate.x method='xsergey'
intx= niter=100 eps=5.9
intp= niter=80 eps=10.0
grey=Grey newclip=1 color=j bpclip=0 epclip=100 gainpanel=e wantscalebar=1 | Tube &
folder=/net/koko/claudio/Research/Prst_ExpRefl/ELF

# Velocity as input (Ref. in aux.)
# ------------------------------
g2.H:
	${p} < ${folder}/v1.H  aux=${folder}/r1.H  > ${folder}/$@ ${dip_opt}  ${intp} lo_aux=0 
	Cat ${folder}/v1.H ${folder}/$@ | ${grey}







regclean_%:
	@-touch $*; Rm $*; touch $*; \rm $*

clean : texclean 
	@-touch j.o j.mod j.x *.fix.f90; \rm *.o *.mod *.x *.fix.f90

include ${SEPINC}/SEP.bottom
