Skip to content

Commit 881bbea

Browse files
tclunemathomp4
andauthored
Feature/#4259 2nd attempt (#4263)
* Fixes #4259 - eliminating some legacy portions of MAPL Previous attempt was too aggressive. Now only deleting a few high level gridcomps. * Trivial update to trigger CI * Fix up link checker * Add mapl3 to MAPL.F90 (module MAPL) * Add mapl3g as dependency for MAPL * Add missing private * Fix some missing use * Don't run tutorials in CircleCI * move to gftl v2 * use renames to support both MAPL and mapl3 modules * Fix for NAG * One more item to mask. * oops * Fixes #4259. A small PR is required on GCM to build with this, and then can merge. * Update CHANGELOG.md Making trivial change to trigger CI. --------- Co-authored-by: Matthew Thompson <matthew.thompson@nasa.gov>
1 parent d166b3c commit 881bbea

File tree

119 files changed

+82
-23180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+82
-23180
lines changed

.circleci/config.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,31 @@ workflows:
4141
mepodevelop: false
4242
run_unit_tests: true
4343
ctest_options: "-L 'ESSENTIAL' --output-on-failure"
44-
persist_workspace: true # Needed for MAPL tutorials
44+
persist_workspace: false # Needed for MAPL tutorials
4545

46-
# Run MAPL Tutorials
47-
- ci/run_mapl_tutorial:
48-
name: run-<< matrix.tutorial_name >>-Tutorial-with-<< matrix.compiler >>-built-with-<< matrix.build_type >>
49-
context:
50-
- docker-hub-creds
51-
matrix:
52-
parameters:
53-
compiler: [ifort]
54-
build_type: ['Debug']
55-
tutorial_name:
56-
- hello_world
57-
- parent_no_children
58-
- parent_one_child_import_via_extdata
59-
- parent_one_child_no_imports
60-
- parent_two_siblings_connect_import_export
61-
# We will only run the tutorials with GNU make. No need to double up as Ninja is a build test only
62-
requires:
63-
- build-and-test-MAPL-as-<< matrix.build_type >>-on-<< matrix.compiler >>-using-Unix Makefiles
64-
baselibs_version: *baselibs_version
46+
# Tutorials have been removed (for now) from MAPL3
47+
# NOTE: When we restore tutorials, change persist_workspace to true above!!!
48+
###################################################################################################################
49+
# # Run MAPL Tutorials #
50+
# - ci/run_mapl_tutorial: #
51+
# name: run-<< matrix.tutorial_name >>-Tutorial-with-<< matrix.compiler >>-built-with-<< matrix.build_type >> #
52+
# context: #
53+
# - docker-hub-creds #
54+
# matrix: #
55+
# parameters: #
56+
# compiler: [ifort] #
57+
# build_type: ['Debug'] #
58+
# tutorial_name: #
59+
# - hello_world #
60+
# - parent_no_children #
61+
# - parent_one_child_import_via_extdata #
62+
# - parent_one_child_no_imports #
63+
# - parent_two_siblings_connect_import_export #
64+
# # We will only run the tutorials with GNU make. No need to double up as Ninja is a build test only #
65+
# requires: #
66+
# - build-and-test-MAPL-as-<< matrix.build_type >>-on-<< matrix.compiler >>-using-Unix Makefiles #
67+
# baselibs_version: *baselibs_version #
68+
###################################################################################################################
6569

6670
# Builds MAPL without pFlogger and fargparse and pFUnit
6771
- ci/build:

Apps/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ ecbuild_add_executable (TARGET time_ave_util.x SOURCES time_ave_util.F90)
3737
target_link_libraries (time_ave_util.x PRIVATE MAPL MPI::MPI_Fortran ESMF::ESMF OpenMP::OpenMP_Fortran)
3838
target_include_directories (time_ave_util.x PRIVATE $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
3939

40-
ecbuild_add_executable (TARGET Comp_Testing_Driver.x SOURCES Component_Testing/Comp_Testing_Driver.F90)
41-
target_link_libraries (Comp_Testing_Driver.x PRIVATE MAPL MPI::MPI_Fortran ESMF::ESMF OpenMP::OpenMP_Fortran)
42-
target_include_directories (Comp_Testing_Driver.x PRIVATE $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
43-
4440
if (PFUNIT_FOUND)
4541
add_subdirectory(tests EXCLUDE_FROM_ALL)
4642
endif ()

Apps/Component_Testing/Comp_Testing_Driver.F90

Lines changed: 0 additions & 140 deletions
This file was deleted.

Apps/Component_Testing/README.md

Lines changed: 0 additions & 105 deletions
This file was deleted.

Apps/Regrid_Util/Regrid_Util.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module regrid_util_support_mod
44

55
use ESMF
66
use MAPL
7-
use gFTL_StringVector
7+
use gFTL2_StringVector
88

99
implicit NONE
1010

@@ -332,7 +332,7 @@ Program Regrid_Util
332332
use MAPL_ESMFFieldBundleRead
333333
use MAPL_ServerManager
334334
use MAPL_FileMetadataUtilsMod
335-
use gFTL_StringVector
335+
use gFTL2_StringVector
336336
use regrid_util_support_mod
337337
use mpi
338338

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog
1+
# Changelog
22

33
All notable changes to this project will be documented in this file.
44

@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Removed
1111

12-
- Removes backward compatibility for MAPL_FargparseCLI functions. Only accepts function usage in which the result is of
12+
- Removes backward compatibility for `MAPL_FargparseCLI` functions. Only accepts function usage in which the result is of
1313
MAPL_CapOptions type.
1414
- Remove FLAP support.
1515
- Remove `BUILD_SHARED_MAPL` CMake option. MAPL3 is now always built as a shared library.

MAPL/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ esma_set_this()
33

44
esma_add_library (${this}
55
SRCS MAPL.F90
6-
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio MAPL.field ${EXTDATA_TARGET}
6+
DEPENDENCIES mapl3g MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio MAPL.field ${EXTDATA_TARGET}
77
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran
88
TYPE SHARED
99
)

MAPL/MAPL.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module MAPL
1414
use MAPL_OpenMP_Support, only : MAPL_get_num_threads => get_num_threads
1515
use MAPL_OpenMP_Support, only : MAPL_find_bounds => find_bounds
1616
use MAPL_OpenMP_Support, only : MAPL_Interval => Interval
17-
use MAPL_Profiler, initialize_profiler =>initialize, finalize_profiler =>finalize
17+
use MAPL_Profiler, initialize_profiler => initialize, finalize_profiler => finalize
1818
use MAPL_FieldUtils
1919
use MAPL_StateUtils
2020
implicit none
@@ -23,4 +23,4 @@ end module MAPL
2323
module MAPL_Mod
2424
use MAPL
2525
end module MAPL_Mod
26-
26+

0 commit comments

Comments
 (0)