Commit 271e9d41 authored by dingwell's avatar dingwell
Browse files

Some tweaks in makefile to make parallell compilation more reliable.

parent 3c104703
......@@ -126,18 +126,40 @@ endif
#.f90.o:
# $(FC) -c $(FCFLAGS) $*.f90
# In order to improve performance with parallel compilation, order modules by
# dependency. (This is a sloppy way of doing it, but reduces the number of failed
# dependencies, so that fewer attempts are needed to complete compilation)
# Using this configuration we can typically complete the build by running
# make -j7 -f makefile.mom
# twice. This is _much_ faster than running a serial job, even if a serial job
# make would finish without any dependency issues on the first attempt.
#
# No dependency:
# flux_mod.o hanna_mod.o kftable_mod.o mt_kind_defs.o oh_mod.o outg_mod.o par_mod.o point_mod.o ran_mod.o read_ncwrfout.o unc_mod.o wrf_map_utils_mod.o xmass_mod.o
#
# First order dependency (i.e. depends on one or more of the above):
# cmapf_mod.o com_mod.o conv_mod.o interpol_mod.o mpi_mod.o mt_stream.o
#
# Second order dependency:
# netcdf_output_mod.o
MODOBJS = \
par_mod.o com_mod.o \
conv_mod.o hanna_mod.o \
interpol_mod.o cmapf_mod.o \
unc_mod.o oh_mod.o \
xmass_mod.o flux_mod.o \
point_mod.o outg_mod.o \
kftable_mod.o wrf_map_utils_mod.o \
ran_mod.o mpi_mod.o \
netcdf_output_mod.o \
mt_kind_defs.o mt_stream.o \
read_ncwrfout.o
flux_mod.o hanna_mod.o kftable_mod.o mt_kind_defs.o oh_mod.o outg_mod.o par_mod.o point_mod.o ran_mod.o read_ncwrfout.o unc_mod.o wrf_map_utils_mod.o xmass_mod.o \
cmapf_mod.o com_mod.o conv_mod.o interpol_mod.o mpi_mod.o mt_stream.o \
netcdf_output_mod.o
#mt_kind_defs.o ran_mod.o \
#par_mod.o com_mod.o \
#conv_mod.o hanna_mod.o \
#interpol_mod.o cmapf_mod.o \
#unc_mod.o oh_mod.o \
#xmass_mod.o flux_mod.o \
#point_mod.o outg_mod.o \
#kftable_mod.o wrf_map_utils_mod.o \
# mpi_mod.o \
#netcdf_output_mod.o \
# mt_stream.o \
#read_ncwrfout.o
#
OBJECTS = \
assignland.o writeheader.o \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment