f5360859eadb105aaf4b93ff4df52a4f61317b55
[charm.git] / tests / fem / femtest / Makefile
1 CHARMC=../../../bin/charmc $(OPTS) 
2
3 all: pgm 
4
5 pgm: pgm.o
6         $(CHARMC) -o pgm pgm.o -language fem
7
8 pgm.o: pgm.C
9         $(CHARMC) -c pgm.C
10
11 fpgm: fpgm.o
12         $(CHARMC) -o fpgm fpgm.o -language femf
13
14 fpgm.o: fpgm.f90
15         $(CHARMC) -c fpgm.f90
16
17 clean:
18         rm -f pgm fpgm *.o conv-host charmrun charmrun.exe pgm.exe pgm.pdb pgm.ilk
19
20 test: pgm
21         ./charmrun ./pgm +p1 +vp1 $(TESTOPTS)
22         ./charmrun ./pgm +p1 +vp2 $(TESTOPTS)
23         ./charmrun ./pgm +p2 +vp1 $(TESTOPTS)
24         ./charmrun ./pgm +p2 +vp2 $(TESTOPTS)
25         ./charmrun ./pgm +p2 +vp3 $(TESTOPTS)
26         ./charmrun ./pgm +p2 +vp4 $(TESTOPTS)
27         -@rm -f fem_mesh_vp3_*
28         ./charmrun ./pgm +vp3 -write $(TESTOPTS)
29         ./charmrun ./pgm +vp3 -read $(TESTOPTS)
30         rm -f fem_mesh_vp3_*
31         -make testf
32
33 testf: fpgm
34         ./charmrun ./fpgm +p1 +vp1 $(TESTOPTS)
35         ./charmrun ./fpgm +p1 +vp2 $(TESTOPTS)
36         ./charmrun ./fpgm +p2 +vp1 $(TESTOPTS)
37         ./charmrun ./fpgm +p2 +vp2 $(TESTOPTS)
38         ./charmrun ./fpgm +p2 +vp3 $(TESTOPTS)
39         ./charmrun ./fpgm +p2 +vp4 $(TESTOPTS)
40         -@rm -f fem_mesh_vp3_*
41         ./charmrun ./fpgm +vp3 -write $(TESTOPTS)
42         ./charmrun ./fpgm +vp3 -read $(TESTOPTS)
43         rm -f fem_mesh_vp3_*
44
45 bgtest: pgm
46         ./charmrun ./pgm +p1 +vp1 +x1 +y1 +z1 $(TESTOPTS)
47         ./charmrun ./pgm +p1 +vp2 +x1 +y1 +z1 $(TESTOPTS)
48         ./charmrun ./pgm +p2 +vp1 +x2 +y1 +z1 $(TESTOPTS)
49         ./charmrun ./pgm +p2 +vp2 +x2 +y1 +z1 $(TESTOPTS)
50         ./charmrun ./pgm +p2 +vp3 +x2 +y1 +z1 $(TESTOPTS)
51         ./charmrun ./pgm +p2 +vp4 +x2 +y1 +z1 $(TESTOPTS)
52         -@rm -f fem_mesh_vp3_*
53         ./charmrun ./pgm +vp3 -write +x3 +y1 +z1 $(TESTOPTS)
54         ./charmrun ./pgm +vp3 -read  +x3 +y1 +z1 $(TESTOPTS)
55         rm -f fem_mesh_vp3_*
56
57 test-mig:
58         rm -fr pgm pgm.o
59         $(MAKE) OPTS="-DENABLE_MIG=1 -memory isomalloc -balancer RandCentLB" pgm
60         ./charmrun ./pgm +p2 $(TESTOPTS)