-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
75 lines (67 loc) · 1.77 KB
/
Makefile
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
FC = gfortran
OPTS ?= -J OBJS -g -fbacktrace -ffpe-trap=zero,overflow,invalid -fbounds-check -fopenmp
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
NCINC ?= -I/usr/local/include -I/opt/homebrew/include
NCLIB ?= -L/usr/local/lib -L/opt/homebrew/lib -lnetcdff -lnetcdf -llapack
else
NCINC ?= -I/usr/include
NCLIB ?= -lnetcdff -lnetcdf -llapack
endif
SOURCES = SetWorkingPrecision.f90\
Polynomial234RootSolvers.f90 \
constants_mod.f90 \
tetra_grid_settings_mod.f90 \
gorilla_settings_mod.f90 \
various_functions_mod.f90 \
gorilla_diag_mod.f90 \
canonical_coordinates_mod.f90 \
nctools_module.f90 \
rkf45.f90 \
odeint_rkf45.f90 \
runge_kutta_mod.f90 \
magfie.f90 \
chamb_m.f90 \
vmecinm_m.f90 \
spl_three_to_five_mod.f90 \
spline_vmec_data.f90 \
new_vmec_allocation_stuff.f90 \
binsrc.f90 \
field_divB0.f90 \
scaling_r_theta.f90\
field_line_integration_for_SYNCH.f90 \
preload_for_SYNCH.f90 \
plag_coeff.f90 \
magdata_in_symfluxcoord.f90 \
points_2d.f90\
circular_mesh.f90\
circular_mesh_SOLEDGE3X_EIRENE.f90\
tetra_grid_mod.f90 \
make_grid_rect.f90 \
bdivfree.f90 \
strong_electric_field_mod.f90 \
tetra_physics_mod.f90 \
tetra_physics_poly_precomp_mod.f90 \
differentiate.f90 \
spline5_RZ.f90 \
supporting_functions_mod.f90 \
pusher_tetra_func_mod.f90 \
pusher_tetra_poly.f90 \
pusher_tetra_rk.f90 \
find_tetra_mod.f90 \
get_canonical_coordinates.f90 \
orbit_timestep_gorilla.f90 \
gorilla_plot_mod.f90 \
test_gorilla_main.f90
OBJS = $(patsubst %.f90,OBJS/%.o,$(SOURCES))
test_gorilla_main.x: $(OBJS_CONTRIB) $(OBJS)
$(FC) $(OPTS) -o $@ $^ $(NCLIB)
OBJS/%.o: SRC/contrib/%.f90
$(FC) $(OPTS) -c $^ -o $@ $(NCINC)
OBJS/%.o: SRC/%.f90
$(FC) $(OPTS) -c $^ -o $@ $(NCINC)
.PHONY: clean
clean:
rm -f OBJS/*
rm -f SRC/*.mod
rm -f test_gorilla_main.x