From 5784392f260d4e71626c15bfdedf7fb94907abda Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 15 Jul 2011 19:19:32 -0400 Subject: [PATCH] Added Makefile for Jaguar runs. --- src/Makefile | 6 ++-- src/Makefile.jaguar | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 src/Makefile.jaguar diff --git a/src/Makefile b/src/Makefile index eb93e7d8a..95260434c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/src/Makefile.jaguar b/src/Makefile.jaguar new file mode 100644 index 000000000..615e59375 --- /dev/null +++ b/src/Makefile.jaguar @@ -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