#/*********************************************************************************** # Copyright 2008 Charles F. Gammie and Xiaoyue Guan # # HAM version 1.0 (released Jan 15, 2008) # # This file is part of HAM. HAM is a program that solves non-relativistic # hyperbolic partial differential equation in conservative form using # high-resolution shock-capturing techniques. This version of HAM has been # configured to solve the magnetohydrodynamic equations of motion in # axisymmetry to evolve a shearing box model. # # You are morally obligated to cite the following paper in his/her # scientific literature that results from use of any part of HAM: # # [1] Guan, X. \& Gammie, C.F. \ 2008, Astrophysical Journal, Supplement, # 174, 145 # # # The latest version of the HAM is available on our code distribution # website: # http://rainman.astro.uiuc.edu/codelib/ # # HAM 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. # # HAM 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 HAM; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # #***********************************************************************************/ CC = gcc CCFLAGS = -g SRCS = \ bounds.c diag.c dump.c fixup.c image.c init.c main.c set_arrays.c \ step_ch.c phys.c ranc.c slope_lim.c flux_ct.c OBJS = \ bounds.o diag.o dump.o fixup.c image.o init.o main.o set_arrays.o \ step_ch.o phys.o ranc.o slope_lim.o flux_ct.o twod: $(OBJS) makefile $(CC) $(CFLAGS) -o twod $(OBJS) -lm $(OBJS) : defs.h decs.h makefile clean: /bin/rm -f *.o *.il