Skip to content

Commit

Permalink
Moved libFMS.F90 to top level, changed naming convention on remaps, r…
Browse files Browse the repository at this point in the history
…emoved drifters_comm_mod
  • Loading branch information
rem1776 authored and rem1776 committed Mar 10, 2021
1 parent 056a29f commit c267040
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 52 deletions.
14 changes: 13 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ SUBDIRS = \
sat_vapor_pres \
random_numbers \
libFMS \
libFMS_mod \
test_fms \
${DOCS}

Expand All @@ -74,6 +73,19 @@ include_HEADERS = include/file_version.h include/fms_platform.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = FMS.pc

## Build libFMS module
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/mpp/include
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)

noinst_LTLIBRARIES = libFMS_mod.la
libFMS_mod_la_SOURCES = libFMS.F90

fms.$(FC_MODEXT): .mods/*_mod.$(FC_MODEXT)

nodist_include_HEADERS = libFMS_mod.la

include $(top_srcdir)/mkmods.mk

# Prepare CMake files for installation. This is to help
# packages build using CMake to more easily use the libFMS
# library.
Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ AC_CONFIG_FILES([
sat_vapor_pres/Makefile
random_numbers/Makefile
libFMS/Makefile
libFMS_mod/Makefile
docs/Makefile
test_fms/test_common.sh
test_fms/Makefile
Expand Down
17 changes: 6 additions & 11 deletions libFMS_mod/libFMS.F90 → libFMS.F90
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
!! (ie. `use fms, only: OPERATOR(*)` includes any defined '*' operators within FMS).
!!
!! Remappings due to conflicts:
!! get_mosaic_tile_grid from mosaic2(fms2_io) => get_mosaic_tile_grid_2
!! read_data from interpolator_mod(fms2_io) => read_data_interp
!! ZERO from interpolator_mod(mpp_parameter) => ZERO_INTERP
!! get_mosaic_tile_grid from mosaic2(fms2_io) => mosaic2_get_mosaic_tile_grid
!! read_data from interpolator_mod(fms2_io) => interpolator_read_data
!! ZERO from interpolator_mod(mpp_parameter) => INTERPOLATOR_ZERO
!!
!! Not in this module: axis_utils_mod, fms_io_mod, time_interp_external_mod
!! get_grid_version_mpp_mod, mpp_io_mod, mosaic_mod,
Expand Down Expand Up @@ -58,7 +58,6 @@ module fms
use axis_utils2_mod, only: get_axis_cart, get_axis_modulo, lon_in_range, &
tranlon, frac_index, nearest_index, interp_1d, &
get_axis_modulo_times, axis_edges
!use axis_utils_mod, only: get_axis_bounds !! not in 2

!>block_control
use block_control_mod, only: block_control_type, define_blocks, &
Expand Down Expand Up @@ -156,10 +155,6 @@ module fms
drifters_set_v_axes, drifters_set_domain_bounds, &
drifters_positions2lonlat, drifters_print_checksums, &
drifters_save, drifters_write_restart, drifters_distribute
use drifters_comm_mod, only: drifters_comm_Type, drifters_comm_new, &
drifters_comm_del, drifters_comm_set_pe_neighbors, &
drifters_comm_set_domain, drifters_comm_update, &
drifters_comm_gather
use drifters_core_mod, only: drifters_core_type, drifters_core_new, drifters_core_del, &
drifters_core_set_ids, drifters_core_remove_and_add, &
drifters_core_set_positions, assignment(=), &
Expand Down Expand Up @@ -266,8 +261,8 @@ module fms
interpolator_end, init_clim_diag, query_interpolator, &
interpolate_type, CONSTANT, &
INTERP_WEIGHTED_P, INTERP_LINEAR_P, INTERP_LOG_P, &
ZERO_INTERP=>ZERO, & !! conflicts with mpp_parameter's ZERO
read_data_interp=>read_data !! conflicts with fms2_io interface
INTERPOLATOR_ZERO=>ZERO, & !! conflicts with mpp_parameter's ZERO
interpolator_read_data=>read_data !! conflicts with fms2_io interface

!> memutils
use memutils_mod, only: memutils_init, print_memuse_stats
Expand All @@ -287,7 +282,7 @@ module fms
get_mosaic_xgrid_size, get_mosaic_xgrid, &
calc_mosaic_grid_area, calc_mosaic_grid_great_circle_area, &
is_inside_polygon, &
get_mosaic_tile_grid_2 => get_mosaic_tile_grid !overloaded in fms2_io
mosaic2_get_mosaic_tile_grid => get_mosaic_tile_grid !overloaded in fms2_io
use grid_mod, only: get_grid_ntiles, get_grid_size, get_grid_cell_centers, &
get_grid_cell_vertices, get_grid_cell_Area, get_grid_comp_area, &
define_cube_mosaic
Expand Down
39 changes: 0 additions & 39 deletions libFMS_mod/Makefile.am

This file was deleted.

0 comments on commit c267040

Please sign in to comment.