forked from pseudotensor/grmonty
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakefile
66 lines (57 loc) · 2.61 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
#/***********************************************************************************
# Copyright 2013 Joshua C. Dolence, Charles F. Gammie, Monika Mo\'scibrodzka,
# and Po Kin Leung
#
# GRMONTY version 1.0 (released February 1, 2013)
#
# This file is part of GRMONTY. GRMONTY v1.0 is a program that calculates the
# emergent spectrum from a model using a Monte Carlo technique.
#
# This version of GRMONTY is configured to use input files from the HARM code
# available on the same site. It assumes that the source is a plasma near a
# black hole described by Kerr-Schild coordinates that radiates via thermal
# synchrotron and inverse compton scattering.
#
# You are morally obligated to cite the following paper in any
# scientific literature that results from use of any part of GRMONTY:
#
# Dolence, J.C., Gammie, C.F., Mo\'scibrodzka, M., \& Leung, P.-K. 2009,
# Astrophysical Journal Supplement, 184, 387
#
# Further, we strongly encourage you to obtain the latest version of
# GRMONTY directly from our distribution website:
# http://rainman.astro.illinois.edu/codelib/
#
# GRMONTY is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# GRMONTY is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRMONTY; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#***********************************************************************************/
#
# requires an openmp-enabled version of gcc
#
CC = gcc
CFLAGS = -Wall -O2 -fopenmp
LDFLAGS = -lm -lgsl -lgslcblas -fopenmp
SRCS = grmonty.c compton.c init_geometry.c tetrads.c geodesics.c \
radiation.c jnu_mixed.c hotcross.c track_super_photon.c \
scatter_super_photon.c harm_model.c harm_utils.c init_harm_data.c
OBJS = grmonty.o compton.o init_geometry.o tetrads.o geodesics.o \
radiation.o jnu_mixed.o hotcross.o track_super_photon.o \
scatter_super_photon.o harm_model.o harm_utils.o init_harm_data.o
INCS = decs.h constants.h harm_model.h
grmonty : $(OBJS) $(INCS) makefile
$(CC) $(CFLAGS) -o grmonty $(OBJS) $(LDFLAGS)
$(OBJS) : $(INCS) makefile
clean:
/bin/rm *.o