head	1.1;
access;
symbols
	charm6_1:1.1
	charm_6_0_1:1.1
	charm6_0_1:1.1
	charm6_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2007.03.03.00.06.51;	author skumar2;	state Exp;
branches;
next	;
commitid	60ad45e8bbe44567;


desc
@@


1.1
log
@
Checking in the tests for the pencil based fft library. The current software needs access to an fft library.
I will soon remove the fft dependence by making it just call transposes.
@
text
@FFTW_HOME=/bgl/local/fftw-2.1.5/
OPTS=-g -O3 

CHARMC=../../../bin/charmc $(OPTS)
INCLUDES=-I$(FFTW_HOME)/include -I$(CHARMBASE)/include/fftlib \
	 -DFFTW_ENABLE_FLOAT=1

LIBS=-module PencilFFT -L$(FFTW_HOME)/lib -language charm++ -lsfftw -lsrfftw

OBJS = testpme.o patch.o

all:	cifiles testpme

testpme: $(OBJS)
	$(CHARMC) -language charm++ -o testpme $(OBJS) ${LIBS}

cifiles: testpme.ci
	$(CHARMC)  testpme.ci

clean:
	rm -f *~ *.decl.h *.def.h conv-host *.o testpme charmrun

testpme.o: testpme.C
	$(CHARMC) -c testpme.C ${INCLUDES}

patch.o: patch.C
	$(CHARMC) -c patch.C ${INCLUDES}

test: all
	@@echo "Intra-processor TestPME.."
	./charmrun ./testpme +p1
	@@echo "Inter-processor TestPME.."
	./charmrun ./testpme +p2

bgtest: all
	@@echo "Intra-processor TestPME.."
	./charmrun ./testpme +p1 +x1 +y1 +z1
	@@echo "Inter-processor TestPME.."
	./charmrun ./testpme +p2 +x2 +y1 +z1

@
