Added Makefile for Jaguar runs.

This commit is contained in:
Paul Romano 2011-07-15 19:19:32 -04:00
parent 435778ec67
commit 5784392f26
2 changed files with 78 additions and 3 deletions

View file

@ -27,7 +27,7 @@ test_objects = $(modules:.f90=.o) $(test:.f90=.o)
#--------------------------------------------------------------------
# Compiler Options
F90 = ifort
F90FLAGS = -g -fpp -traceback
F90FLAGS = -fpp -g -traceback
USE_MPI = no
@ -41,13 +41,13 @@ endif
# Targets
all: $(program)
$(program): $(main_objects)
$(F90) $(F90FLAGS) $(main_objects) -o $@
$(F90) $(main_objects) -o $@
clean:
@rm -f *.o *.mod $(program)
neat:
@rm -f *.o *.mod
unittest: $(test_objects)
$(F90) $(F90FLAGS) $(test_objects) -o $@
$(F90) $(test_objects) -o $@
#--------------------------------------------------------------------
# Rules & misc

75
src/Makefile.jaguar Normal file
View file

@ -0,0 +1,75 @@
program = openmc
main = main.f90
test = unittest.f90
modules = ace.f90 \
cross_section.f90 \
data_structures.f90 \
endf.f90 \
energy_grid.f90 \
fileio.f90 \
geometry.f90 \
global.f90 \
logging.f90 \
mcnp_random.f90 \
mpi_routines.f90 \
output.f90 \
physics.f90 \
search.f90 \
source.f90 \
string.f90 \
score.f90 \
types.f90
main_objects = $(modules:.f90=.o) $(main:.f90=.o)
test_objects = $(modules:.f90=.o) $(test:.f90=.o)
#--------------------------------------------------------------------
# Compiler Options
F90 = ftn
F90FLAGS = -fpp -O3 -DMPI
#--------------------------------------------------------------------
# Targets
all: $(program)
$(program): $(main_objects)
$(F90) $(main_objects) -o $@
clean:
@rm -f *.o *.mod $(program)
neat:
@rm -f *.o *.mod
unittest: $(test_objects)
$(F90) $(test_objects) -o $@
#--------------------------------------------------------------------
# Rules & misc
.SUFFIXES: .f90 .o
.PHONY: all clean neat
%.o: %.f90
$(F90) -c $(F90FLAGS) $<
#--------------------------------------------------------------------
# Dependencies
ace.o: global.o output.o string.o fileio.o string.o endf.o
cross_section.o: global.o string.o data_structures.o output.o
data_structures.o: global.o
endf.o: global.o
energy_grid.o: global.o output.o data_structures.o
fileio.o: types.o global.o string.o output.o data_structures.o
geometry.o: types.o global.o output.o string.o data_structures.o
global.o: types.o
logging.o: global.o
main.o: global.o fileio.o output.o geometry.o mcnp_random.o \
source.o physics.o cross_section.o data_structures.o \
ace.o energy_grid.o score.o logging.o
mpi_routines.o: global.o output.o types.o mcnp_random.o source.o
output.o: global.o types.o data_structures.o endf.o
physics.o: types.o global.o mcnp_random.o geometry.o output.o \
search.o endf.o score.o
score.o: global.o output.o ace.o
search.o: output.o
source.o: global.o mcnp_random.o output.o physics.o
string.o: global.o output.o
types.o:
unittest.o: global.o energy_grid.o mpi_routines.o