Commit 78945f24 authored by kbk's avatar kbk
Browse files

parallel support

parent a9453527
#$Id: Makefile,v 1.3 2003-04-07 11:27:30 gotm Exp $
#$Id: Makefile,v 1.4 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the 2D specific library - libm2d.a
#
......@@ -10,7 +10,7 @@ LIB = $(LIBDIR)/lib2d${buildtype}.a
MODSRC = m2d.F90 variables_2d.F90
LIBSRC = cfl_check.F90 have_bdy.F90 bottom_friction.F90 depth_update.F90 momentum.F90 uv_advect.F90 uv_diffusion.F90 sealevel.F90 uv_depths.F90 init_2d_bdy.F90 update_2d_bdy.F90 divergence.F90 residual.F90
LIBSRC = cfl_check.F90 have_bdy.F90 bottom_friction.F90 depth_update.F90 momentum.F90 uv_advect.F90 uv_diffusion.F90 coriolis.F90 sealevel.F90 uv_depths.F90 update_2d_bdy.F90 divergence.F90 residual.F90
SRC = $(MODSRC) $(LIBSRC)
......@@ -21,6 +21,7 @@ ${LIB}(m2d.o)
OBJ = \
${LIB}(cfl_check.o) \
${LIB}(bottom_friction.o) \
${LIB}(coriolis.o) \
${LIB}(depth_update.o) \
${LIB}(momentum.o) \
${LIB}(sealevel.o) \
......
#$Id: Makefile,v 1.2 2002-05-29 13:37:49 gotm Exp $
#$Id: Makefile,v 1.3 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the 3D specific library - libm3d.a
#
......@@ -15,18 +15,25 @@ LIBSRC = start_macro.F90 bdy_3d.F90 coordinates.F90 bottom_friction_3d.F90 inter
SRC = $(MODSRC) $(LIBSRC)
MOD = \
MOD = \
$(LIB)(variables_3d.o) \
$(LIB)(advection_3d.o) \
$(LIB)(advection_3d.o)
ifneq ($(GETM_NO_BAROCLINIC),true)
MOD += \
$(LIB)(temperature.o) \
$(LIB)(salinity.o) \
$(LIB)(eqstate.o) \
$(LIB)(spm.o) \
$(LIB)(eqstate.o)
endif
ifneq ($(GETM_NO_SUSP_MATTER),true)
MOD += \
$(LIB)(spm.o)
endif
MOD += \
$(LIB)(bdy_3d.o) \
$(LIB)(m3d.o) \
$(LIB)(rivers.o)
OBJ = \
OBJ = \
$(LIB)(start_macro.o) \
$(LIB)(coordinates.o) \
$(LIB)(bottom_friction_3d.o) \
......@@ -34,8 +41,12 @@ $(LIB)(uu_momentum_3d.o) \
$(LIB)(vv_momentum_3d.o) \
$(LIB)(ww_momentum_3d.o) \
$(LIB)(uv_advect_3d.o) \
$(LIB)(uv_diffusion_3d.o) \
$(LIB)(internal_pressure.o) \
$(LIB)(uv_diffusion_3d.o)
ifneq ($(GETM_NO_BAROCLINIC),true)
OBJ += \
$(LIB)(internal_pressure.o)
endif
OBJ += \
$(LIB)(eddyviscosity.o) \
$(LIB)(slow_bottom_friction.o) \
$(LIB)(slow_advection.o) \
......
#$Id: Makefile,v 1.2 2002-05-02 15:04:41 gotm Exp $
#$Id: Makefile,v 1.3 2003-04-07 16:44:48 kbk Exp $
#
# Master Makefile for making the 'getm' executable.
#
include Rules.make
#$(GETMDIR)/src/halos \
# Set the subdirectories with Makefiles
SUBDIRS = \
$(GETMDIR)/src/futils \
$(GETMDIR)/src/halos \
$(GETMDIR)/src/domain \
$(GETMDIR)/src/meteo \
$(GETMDIR)/src/2d \
$(GETMDIR)/src/3d \
$(GETMDIR)/src/2d
ifneq ($(GETM_NO_3D),true)
SUBDIRS += \
$(GETMDIR)/src/3d
endif
SUBDIRS += \
$(GETMDIR)/src/output \
$(GETMDIR)/src/ncdf \
$(GETMDIR)/src/input \
......@@ -21,30 +26,34 @@ ifneq ($(turbulence),gotm)
SUBDIRS += $(GETMDIR)/src/turb
endif
CORE_LIBS = \
-lgetm${buildtype} \
-lhalo${buildtype} \
-loutput${buildtype} \
-ldomain${buildtype} \
-lmeteo${buildtype} \
-l2d${buildtype} \
-l3d${buildtype} \
-l2d${buildtype}
ifneq ($(GETM_NO_3D),true)
CORE_LIBS += \
-l3d${buildtype}
endif
CORE_LIBS += \
-ldomain${buildtype} \
-linput${buildtype} \
-lncdfio${buildtype} \
-lfutils${buildtype}
# -lhalo${buildtype} \
LIBS = $(CORE_LIBS) $(EXTRA_LIBS)
all: model$(buildtype)_$(FORTRAN_COMPILER) install
all: getm$(buildtype)_$(FORTRAN_COMPILER) install
model$(buildtype)_$(FORTRAN_COMPILER): makedirs subdirs
getm$(buildtype)_$(FORTRAN_COMPILER): makedirs subdirs
$(FC) -o $@ $(LDFLAGS) $(LIBS)
install: model$(buildtype)_$(FORTRAN_COMPILER)
install: getm$(buildtype)_$(FORTRAN_COMPILER)
mkdir -p $(BINDIR)
mv model$(buildtype)_$(FORTRAN_COMPILER) $(BINDIR)
mv getm$(buildtype)_$(FORTRAN_COMPILER) $(BINDIR)
.PHONY: subdirs $(SUBDIRS)
......@@ -77,7 +86,7 @@ realclean: clean
distclean: realclean
$(RM) ../lib/*/lib*.a
$(RM) ../modules/*/*
$(RM) ../bin/model_*
$(RM) ../bin/getm_*
#-----------------------------------------------------------------------
# Copyright (C) 2001 - Hans Burchard and Karsten Bolding (BBH) !
......
#$Id: Makefile,v 1.1 2002-05-02 14:01:11 gotm Exp $
#$Id: Makefile,v 1.2 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the domain library - libdomain.a
#
include ../Rules.make
INCS = static_domain.h dynamic_declarations_domain.h \
dynamic_allocations_domain.h
LIB = $(LIBDIR)/libdomain${buildtype}.a
MODSRC = domain.F90
LIBSRC = bdy_spec.F90 print_bdy.F90
LIBSRC = part_domain.F90 bdy_spec.F90 mirror_bdy_2d.F90 print_bdy.F90
SRC = $(MODSRC) $(LIBSRC)
......@@ -17,8 +19,11 @@ MOD = \
${LIB}(domain.o)
OBJ = \
${LIB}(part_domain.o) \
${LIB}(bdy_spec.o) \
${LIB}(print_bdy.o)
${LIB}(print_bdy.o) \
${LIB}(mirror_bdy_2d.o) \
${LIB}(mirror_bdy_3d.o)
all: modules objects
......@@ -26,6 +31,10 @@ modules: $(MOD)
objects: $(OBJ)
$(MOD): $(INCS)
$(OBJ): $(INCS)
doc:
$(PROTEX) $(SRC) > $(DOCDIR)/domain.tex
......
#$Id: Makefile,v 1.1 2002-05-02 14:01:17 gotm Exp $
#$Id: Makefile,v 1.2 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build utilities written in Fortran90 - libfutils.a
#
......@@ -7,7 +7,7 @@ include ../Rules.make
LIB = $(LIBDIR)/libfutils${buildtype}.a
MODSRC = parameters.F90 time.F90 grid_interpol.F90
MODSRC = parallel.F90 parameters.F90 time.F90 grid_interpol.F90
LIBSRC = ver_interpol.F90 kbk_interpol.F90 tridiagonal.F90 pos.F90 \
cnv_2d.F90 cnv_3d.F90 eta_mask.F90 \
......@@ -15,8 +15,16 @@ LIBSRC = ver_interpol.F90 kbk_interpol.F90 tridiagonal.F90 pos.F90 \
SRC = $(MODSRC) $(LIBSRC)
MOD = \
ifeq ($(parallel),false)
MOD =
else
MOD = ${LIB}(halo_mpi.o) ${LIB}(read_par_setup.o)
endif
MOD += \
${LIB}(parallel.o) \
${LIB}(parameters.o) \
${LIB}(halo_zones.o) \
${LIB}(time.o) \
${LIB}(grid_interpol.o)
......
#$Id: Makefile,v 1.1 2002-05-02 14:01:25 gotm Exp $
#$Id: Makefile,v 1.2 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the main getm library - libmgetm.a
#
......@@ -33,6 +33,7 @@ realclean: clean
$(RM) *.o
distclean: realclean
$(RM) work.pc *.d
#-----------------------------------------------------------------------
# Copyright (C) 2001 - Hans Burchard and Karsten Bolding (BBH) !
......
#$Id: Makefile,v 1.1 2002-05-02 14:01:32 gotm Exp $
#$Id: Makefile,v 1.2 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the ncdf module - ncdfio.o
#
......@@ -21,13 +21,17 @@ ${LIB}(input.o)
OBJ = \
${LIB}(init_2d_bdy.o) \
${LIB}(get_2d_bdy.o) \
${LIB}(get_2d_bdy.o)
ifneq ($(GETM_NO_3D),true)
OBJ += \
${LIB}(init_3d_bdy.o) \
${LIB}(get_3d_bdy.o) \
${LIB}(init_river_input.o) \
${LIB}(get_river_data.o)
endif
OBJ += \
${LIB}(init_meteo_input.o) \
${LIB}(get_meteo_data.o) \
${LIB}(init_river_input.o) \
${LIB}(get_river_data.o) \
${LIB}(get_field.o) \
${LIB}(read_profile.o)
......
#$Id: Makefile,v 1.1 2002-05-02 14:01:46 gotm Exp $
#$Id: Makefile,v 1.2 2003-04-07 16:45:07 kbk Exp $
#
# Makefile to build the ncdf module - ncdfio.o and the libncdfio.a library
#
......@@ -17,22 +17,30 @@ SRC = $(MODSRC) $(LIBSRC)
MOD = \
${LIB}(ncdf_common.o) \
${LIB}(ncdf_2d.o) \
${LIB}(ncdf_2d_bdy.o)
ifneq ($(GETM_NO_3D),true)
MOD += \
${LIB}(ncdf_3d.o) \
${LIB}(ncdf_meteo.o) \
${LIB}(ncdf_rivers.o) \
${LIB}(ncdf_2d_bdy.o) \
${LIB}(ncdf_3d_bdy.o) \
${LIB}(ncdf_rivers.o)
endif
MOD += \
${LIB}(ncdf_meteo.o) \
${LIB}(ncdf_in.o)
OBJ = \
${LIB}(ncdf_topo.o) \
${LIB}(set_attributes.o) \
${LIB}(init_2d_ncdf.o) \
${LIB}(save_2d_ncdf.o) \
${LIB}(save_2d_ncdf.o)
ifneq ($(GETM_NO_3D),true)
OBJ += \
${LIB}(init_3d_ncdf.o) \
${LIB}(save_3d_ncdf.o) \
${LIB}(get_field_ncdf.o) \
${LIB}(read_field_ncdf.o) \
${LIB}(read_field_ncdf.o)
endif
OBJ += \
${LIB}(ncdf_close.o)
all: modules objects
......
Markdown is supported
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