MAKE_DEPEND=yes
include ${SEPINC}/SEP.top
################# To run in gomorrah  ####################
#include /usr/local/share/make/SEP.top
##########################################################
#################   To run in glad    ####################
#include /opt/SEP/SEP6.4.6_INTEL/include/SEP.top

LATOPTS  = style=html
#LATOPTS = option=web 'style=jfc,makeidx,html,amsmath'
#LATOPTS=class=geophysics
SIGDIR = /data/sigsbee_multiple
OLEVEL=2
#UF90FLAGS =-mp -check bounds -O3
UF90FLAGS =-g -openmp -openmp_report2  -O3 -axT -vec_report3 -C #-check bounds 
#UF90FLAGS = -C #-check bounds 
#UF90FLAGS =-parallel -openmp -openmp_report2  -O3 -axW -vec_report3
#UF90FLAGS =-parallel -openmp -openmp_report2 -axW -vec_report3
MAINLIBS=-lsep2df90 -lsep3df90 -lsep3d -lsepf90 -lsep -L${LIBDIR}  -lsepgeef90
UF77LIBS = ${BEILIB}
UF90DEFINES = -DSEP_OMP

# WHEREFFTW = /usr/local/FFTW/FFT3_INTEL/lib/libfftw3f.a
# WHEREFFTW = /net/koko/linux_local/FFTW/FFTW2/lib/
#UF90LIBS=${MPILIBS} ${MAINLIBS} -lsepparf90 -lsepgeef90 -lseppar_mpi -lsep2df90 -static-libcxa -lguide -lseppar  -lsuperset -lsupersetf90 -lsuperset #-lsepauxf90 -lsepmathf90 -lsep3df90 -lsep3d -lsepf90 -lsep $(WHEREFFTW)libfftw.a $(WHEREFFTW)librfftw.a #-Bstatic 
#
# 64bit
#
WHEREFFTW = /opt/FFTW/lib/lib
UF90LIBS=${MPILIBS} ${MAINLIBS} -lsepparf90 -lsepgeef90 -lsep2df90 -static-libcxa -lguide -lseppar  -lsuperset -lsupersetf90 -lsuperset -lsepauxf90 -lsepmathf90 -lsep3df90 -lsep3d -lsepf90 -lsep $(WHEREFFTW)fftw3f.a # -lseppar_mpi

F90=ifort

COLOR=y

RESULTSER = 
RESULTSNR = 

#BIN=./bin
#PAR=./par
#RESDIR=./fig
#FIG=./fig
#DATA=./data
#SRCDIR=./src

BIN=. 
PAR=. 
RESDIR=.
FIG=.
DATA=.
SRCDIR=.

##########################################
#
# CIG Rotation
#
# Input Data organized in z,x,h
#
#	RotCig_v3.x tag_cig_hdip=**input** tag_cig_hdip_transf= **input FFtransfed** \
#		    tag_off_ddcig=**output** tag_off_ddcig_transf= **output FFtransfed** par=Cig-rot.P 
sigsbee:
	< /net/koko/claudio/Research/Prst_ExpRefl/OneWay/04sig_mig_brad.H Window3d min1=20000 max1=50000 max5=20000 \
	| Transp plane=12 reshape=2,3 > sigsbee.H

vconst:
#	< /net/koko/claudio/Research/Prst_ExpRefl/2Wpar/6425_mig_brad.H Window3d min1=-1 max1=5 | Transp plane=12 reshape=2,3 > 1000_mig_brad.H
	RotCig_v3.x tag_cig_hx=1000_mig_brad.H Cig_tilt=1001_rot_sig_pos.H par=Cig-rot.P 

sigsrot:
	RotCig_v3.x tag_cig_hdip=sigsbee.H tag_cig_hdip_transf= **input FFtransfed** tag_cig_hx=sigsbee_rot.H\
		    tag_off_ddcig=sigsbee_rot.H tag_off_ddcig_transf= **output FFtransfed** Cig_tilt=rot_sig.H par=Cig-rot.P 

miglorot:
	< rot1_miglo.H Window3d max1=12000 \
	| Transp plane=12 reshape=2,3 > miglo.H
	RotCig_v3.x tag_cig_hdip=miglo.H tag_cig_hdip_transf= **input FFtransfed** \
		    tag_off_ddcig=miglo_rot.H tag_off_ddcig_transf= **output FFtransfed** par=Cig-rot.P 

mighirot:
	< rot1_mighi.H Window3d max1=12000 \
	| Transp plane=12 reshape=2,3 > mighi.H
	RotCig_v3.x tag_cig_hdip=mighi.H tag_cig_hdip_transf= **input FFtransfed** \
		    tag_off_ddcig=mighi_rot.H tag_off_ddcig_transf= **output FFtransfed** par=Cig-rot.P 

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
#include /usr/local/share/make/SEP.bottom
#include /opt/SEP/SEP6.4.6_INTEL/include/SEP.bottom
