Skip to content

Commit

Permalink
Merge pull request NOAA-GFDL#20 from GEOS-ESM/feature/mathomp4/use-ma…
Browse files Browse the repository at this point in the history
…pl-target-module

Use MAPL CMake target and Fortran module
  • Loading branch information
bena-nasa authored Dec 3, 2019
2 parents b1b1368 + 936fdde commit b29abe5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ endif ()

esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL_Base
DEPENDENCIES MAPL
INCLUDES ${extra_incs} ${INC_ESMF} ${INC_NETCDF})

if (FV_PRECISION STREQUAL R4)
Expand Down
12 changes: 1 addition & 11 deletions geos_utils/fv_regrid_c2c.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ module fv_regrid_c2c
use tracer_manager_mod, only: get_tracer_names, get_number_tracers, get_tracer_index
use field_manager_mod, only: MODEL_ATMOS

use MAPL_MOD, only: MAPL_PI_R8, MAPL_OMEGA, MAPL_GRAV, &
MAPL_KAPPA, MAPL_RGAS, MAPL_RVAP, &
MAPL_CP
use MAPL_GridManagerMod
use MAPL_RegridderManagerMod
use MAPL_CubedSphereGridFactoryMod
use MAPL_AbstractRegridderMod
use MAPL_RegridderSpecMod
use MAPL_IOMod
use MAPL_ShmemMod
use pFIO
use MAPL
use, intrinsic :: iso_fortran_env, only: REAL64, REAL32

use fv_arrays_mod, only: fv_atmos_type, fv_grid_type, fv_grid_bounds_type, FVPRC, REAL4, REAL8
Expand Down
5 changes: 1 addition & 4 deletions geos_utils/fv_regridding_utils.F90
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ module fv_regridding_utils
use fv_mp_mod, only: is_master, ng
use fv_mapz_mod, only: mappm
use mpp_mod, only: mpp_error, FATAL, NOTE, mpp_broadcast,mpp_npes
!use MAPL_MOD, only: MAPL_PI_R8, MAPL_OMEGA, MAPL_GRAV, &
!MAPL_KAPPA, MAPL_RGAS, MAPL_RVAP, &
!MAPL_CP
use MAPL_MOD
use MAPL

implicit none

Expand Down
4 changes: 1 addition & 3 deletions geos_utils/rs_scaleMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
module rs_scaleMod

use fv_arrays_mod
use MAPL_ConstantsMod, only: MAPL_PSDRY
use MAPL_Mod
use MAPL
use ESMF
use pFIO_StringIntegerMapMod
use, intrinsic :: iso_fortran_env, only: REAL64, REAL32
! bma added
implicit none
Expand Down
2 changes: 1 addition & 1 deletion model/mapz-driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ endif ()
ecbuild_add_executable(
TARGET mapz-driver
SOURCES ${srcs}
LIBS ${FMS} ${MAPL_BASE})
LIBS ${FMS} MAPL)
target_compile_definitions(mapz-driver PRIVATE MAPL_MODE SPMD TIMING)
target_compile_options(mapz-driver PRIVATE ${TRACEBACK})
set_target_properties(${this} PROPERTIES Fortran_MODULE_DIRECTORY ${esma_include}/${this})
4 changes: 1 addition & 3 deletions tools/external_ic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ module external_ic_mod

use constants_mod, only: pi=>pi_8, omega, grav, kappa, rdgas, rvgas, cp_air
#ifdef MAPL_MODE
use MAPL_IOMod
use MAPL_ShmemMod
use pFIO
use MAPL
#endif
use, intrinsic :: iso_fortran_env, only: REAL64, REAL32

Expand Down
2 changes: 1 addition & 1 deletion tools/fv_treat_da_inc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module fv_treat_da_inc_mod
use field_manager_mod, only: MODEL_ATMOS

#ifdef MAPL_MODE
use MAPL_MOD
use MAPL
#else
use constants_mod, only: pi=>pi_8, omega, grav, kappa, &
rdgas, rvgas, cp_air
Expand Down

0 comments on commit b29abe5

Please sign in to comment.