forked from sanjayg0/feappv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.in
executable file
·111 lines (78 loc) · 3.36 KB
/
makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#------------------------------------------------------------------------
# To use this makefile the path for "$(FEAPPVHOME5_1)" must be set using
# setenv FEAPPVHOME5_1=/.... (in .chrc or .tchrc) or
# export FEAPPVHOME5_1=/.... (in .bashrc or .bash_rc used)
# N.B. Information after the slash defines to FEAPPV directories.
#------------------------------------------------------------------------
#
# N.B. If a compiler option is used that sets ALL integers to be
# integer*8, it is necessary to reset the parameter 'ipr = 1'
# in file 'feappv.f' located in the 'main' directory.
#------------------------------------------------------------------------
# Location of feappv include files (integer4 is no longer in the distribution
# as of version 5.1)
FINCLUDE = $(FEAPPVHOME5_1)/include
# Location of C-compiler include files (depends where compiler installed)
CINCLUDE = /usr/X11/include -I$(FEAPPVHOME5_1)/include
# CINCLUDE = /opt/local/include -I$(FEAPPVHOME5_1)/include
# IgA (Isogeometric)
NINCLUDE = $(FEAPPVHOME5_1)/iga/include
#------------------------------------------------------------------------
# Which compilers to use (Set compiler names available on your computer)
# Parallel FE2 Build
# FFE2 = /opt/local/bin/mpif90
# CCE2 = /opt/local/bin/mpicc
FFE2 = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpif90
CCE2 = $(PETSC_DIR)/$(PETSC_ARCH)/bin/mpicc
# Serial Build
FF = gfortran
CC = gcc
#------------------------------------------------------------------------
# What optimization level to use
# Gnu: gfortran/gcc compilers
# FFOPTFLAG = -O3 -ftree-vectorize -Wall
# CCOPTFLAG = -O3 -ftree-vectorize -Wall
# FFOPTFLAG = -g -Wall
# CCOPTFLAG = -g -Wall
FFOPTFLAG = -g -O3 -ftree-vectorize -Wall
CCOPTFLAG = -g -O3 -ftree-vectorize -Wall
# FFOPTFLAG = -O2 -Wall
# CCOPTFLAG = -O2 -Wall
#------------------------------------------------------------------------
# Source Types (generally this is blank)
FSOURCE =
CSOURCE =
F90SOURCE =
#------------------------------------------------------------------------
# Source Extender
FEXT = f
CEXT = c
F90EXT = f90
#------------------------------------------------------------------------
# Other options to be used by the compiler (generally this is blank)
FOPTIONS =
COPTIONS =
#------------------------------------------------------------------------
# What options to be used by the loader
# gfortran
# LDOPTIONS = -L/opt/local/lib -lX11 -lm
LDOPTIONS = -L/usr/X11/lib -lX11 -lm
# Loader options for FE2 build
# LDOPTIONSFE2 = -L/opt/local/lib/openmpi $(LDOPTIONS)
LDOPTIONSFE2 = -L$(PETSC_DIR)/$(PETSC_ARCH)/lib/openmpi $(LDOPTIONS)
#------------------------------------------------------------------------
# What archiving to use
AR = ar rv
#------------------------------------------------------------------------
# Archive name
ARFEAPPV = $(FEAPPVHOME5_1)/Feappv_g.a
#------------------------------------------------------------------------
# Archive name FE2
ARFE2FEAPPV = $(FEAPPVHOME5_1)/libfeappvfe2_g.a
#------------------------------------------------------------------------
# Archive name IgA
ARIFEAPPV = $(FEAPPVHOME5_1)/iga/libfeappviga_g.a
#------------------------------------------------------------------------
# Archive name VEM
ARVFEAPPV = $(FEAPPVHOME5_1)/vem/libfeappvvem_g.a
#------------------------------------------------------------------------