Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitFlow: Merge develop into main for 2.19.0 release #1446

Merged
merged 90 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
3de41e5
New generic set_services is now in place with the legacy interface being
tclune Feb 9, 2022
365691b
Update gridcomps/History/MAPL_HistoryGridComp.F90
tclune Feb 14, 2022
497e007
Added new gauge for memory profiling.
tclune Feb 15, 2022
4eeaeeb
Removed unused block of code.
tclune Feb 15, 2022
6528960
Merge branch 'develop' into feature/tclune/new-generic-set-services
mathomp4 Feb 16, 2022
683349b
Merge branch 'develop' into feature/mem-profile
mathomp4 Feb 16, 2022
eaa2bc0
Fix up changelog
mathomp4 Feb 16, 2022
af13518
Increased format width of the last column of memory use report
aoloso Feb 17, 2022
b41e09a
Merge pull request #1359 from GEOS-ESM/feature/tclune/new-generic-set…
mathomp4 Feb 17, 2022
5ebd375
Merge branch 'develop' into feature/mem-profile
tclune Feb 17, 2022
c71ea01
Merge pull request #1362 from GEOS-ESM/feature/mem-profile
tclune Feb 17, 2022
b0de8ca
Fixes 1379. Limited the duration of the clock
atrayano Feb 17, 2022
d7abf08
Fixes #1382. Update NRL solar table read code
mathomp4 Feb 18, 2022
5235820
close is not a subroutine but a function
mathomp4 Feb 18, 2022
e85cff3
Bcast on all processes
mathomp4 Feb 18, 2022
2428a99
Add Asserts suggested by Peter Norris
mathomp4 Feb 18, 2022
a26183d
Merge branch 'develop' into bugfix/atrayano/#1379_wrong_duration
mathomp4 Feb 18, 2022
b5f8014
Merge pull request #1381 from GEOS-ESM/bugfix/atrayano/#1379_wrong_du…
atrayano Feb 18, 2022
24e5499
Merge branch 'develop' into feature/mathomp4/#1382-fix-up-solar-table
mathomp4 Feb 18, 2022
f9c36ce
Last asserts were in wrong place. Remove for now
mathomp4 Feb 18, 2022
9c54e21
Update base/MAPL_sun_uc.F90
mathomp4 Feb 18, 2022
b6cefa5
Reloop code per Peter Norris
mathomp4 Feb 22, 2022
9a5bbf6
Merge branch 'develop'
mathomp4 Feb 23, 2022
e17363d
Merge branch 'main' into develop
mathomp4 Feb 23, 2022
c97f2df
Merge pull request #1390 from GEOS-ESM/merge/mathomp4/handmerge-main-…
mathomp4 Feb 23, 2022
fa50695
Merge branch 'develop' into feature/mathomp4/#1382-fix-up-solar-table
mathomp4 Feb 23, 2022
32d5900
Revert "Added new gauge for memory profiling."
mathomp4 Feb 25, 2022
0e1b66b
Merge pull request #1392 from GEOS-ESM/revert-1362-feature/mem-profile
tclune Feb 25, 2022
32f1bc8
Reverts the changes from PR #1359
mathomp4 Feb 25, 2022
a740c06
Merge branch 'develop' into feature/mathomp4/#1382-fix-up-solar-table
mathomp4 Feb 25, 2022
eb7bd13
Merge pull request #1394 from GEOS-ESM/revert/mathomp4/revert-PR1359
mathomp4 Feb 25, 2022
d846221
Merge branch 'develop' into feature/mathomp4/#1382-fix-up-solar-table
mathomp4 Feb 25, 2022
791d434
Merge pull request #1383 from GEOS-ESM/feature/mathomp4/#1382-fix-up-…
tclune Feb 25, 2022
774b18b
exposes new MAPL field bundle methods when doing use MAPL
bena-nasa Feb 25, 2022
faa1339
updated changelog
bena-nasa Feb 25, 2022
7b8507d
Merge branch 'develop' into feature/bmauer/expose_fieldbundle_io
bena-nasa Feb 25, 2022
627892f
Merge pull request #1398 from GEOS-ESM/feature/bmauer/expose_fieldbun…
tclune Feb 25, 2022
5adc011
Improve error handling to catch missing untemplated files
lizziel Feb 16, 2022
98af4c9
Move call to CreateTimeInterval
mathomp4 Feb 28, 2022
9f13db4
Update CHANGELOG.md
mathomp4 Feb 28, 2022
7291cfe
add ExtData2G with a USE_EXTDATA2G argument to cmake for user request
bena-nasa Feb 28, 2022
1ae16a6
update changelog
bena-nasa Feb 28, 2022
39e3582
more updates for optional use of gocart2g at runtime
bena-nasa Feb 28, 2022
f5ae872
more flexible mingled names
weiyuan-jiang Mar 1, 2022
48c77a1
Update gridcomps/Cap/MAPL_CapGridComp.F90
tclune Mar 1, 2022
314dccd
change CHANGELOG.md
weiyuan-jiang Mar 1, 2022
6b4dd64
Add voting interpolation method as optional argument to SimpleBundle …
Mar 1, 2022
96b09a9
restore original names so as to not make this non-backwards compatible
bena-nasa Mar 1, 2022
abfa8ed
Merge branch 'feature/bmauer/extdata_2g' of github.com:GEOS-ESM/MAPL …
bena-nasa Mar 1, 2022
d8fc8f0
Merge pull request #18 from mathomp4/patch-1
lizziel Mar 1, 2022
c227975
removing "*" for pointer declaration
weiyuan-jiang Mar 1, 2022
e081ccb
more bug fixes...
bena-nasa Mar 1, 2022
eb2a67c
Update gridcomps/ExtData2G/ExtDataDerived.F90
tclune Mar 1, 2022
b9c994b
Merge branch 'develop' into feature/cakelle2/simplebundle_regrid_voting
tclune Mar 1, 2022
a0a6746
Update base/MAPL_SimpleBundleMod.F90
tclune Mar 1, 2022
7f07563
Update base/MAPL_SimpleBundleMod.F90
tclune Mar 1, 2022
20a9b3d
Merge pull request #1377 from geoschem/feature/improve_missing_file_e…
mathomp4 Mar 1, 2022
19a2518
Merge branch 'develop' into feature/cakelle2/simplebundle_regrid_voting
mathomp4 Mar 1, 2022
5e603f1
Update base/MAPL_SimpleBundleMod.F90
tclune Mar 1, 2022
8b5178d
Update base/MAPL_SimpleBundleMod.F90
tclune Mar 1, 2022
c8eb526
cleanup cmake file
bena-nasa Mar 2, 2022
6d15be3
Merge branch 'feature/bmauer/extdata_2g' of github.com:GEOS-ESM/MAPL …
bena-nasa Mar 2, 2022
a67a4d1
just get rid of ExtData target
bena-nasa Mar 2, 2022
a4093bf
Merge branch 'develop' into feature/bmauer/extdata_2g
tclune Mar 2, 2022
9f47b91
more changes
bena-nasa Mar 2, 2022
6b5220d
Merge branch 'feature/bmauer/extdata_2g' of github.com:GEOS-ESM/MAPL …
bena-nasa Mar 2, 2022
0d3d16a
Update CHANGELOG.md
mathomp4 Mar 3, 2022
a008147
Merge pull request #1402 from GEOS-ESM/feature/cakelle2/simplebundle_…
mathomp4 Mar 3, 2022
4e88247
Merge branch 'develop' into feature/bmauer/extdata_2g
mathomp4 Mar 4, 2022
563fb41
Merge branch 'develop'
mathomp4 Mar 7, 2022
50d5a90
Merge branch 'main' into develop
mathomp4 Mar 7, 2022
d29d4eb
fix duplicate module name, renamed a bunch of variables for clarify w…
bena-nasa Mar 7, 2022
5e883d0
Merge branch 'feature/bmauer/extdata_2g' of github.com:GEOS-ESM/MAPL …
bena-nasa Mar 7, 2022
a922047
remove a print
bena-nasa Mar 7, 2022
8a609ef
Merge pull request #1414 from GEOS-ESM/merge/mathomp4/handmerge-main-…
mathomp4 Mar 7, 2022
c6fa500
more bug fixes exposed by gcc and cleanup
bena-nasa Mar 8, 2022
0063555
Merge branch 'develop' into feature/bmauer/extdata_2g
bena-nasa Mar 8, 2022
1734aee
Add Yafyaml explicit need to ExtData2G Cmake
mathomp4 Mar 9, 2022
85be3ea
Merge pull request #1400 from GEOS-ESM/feature/bmauer/extdata_2g
tclune Mar 9, 2022
5ab20b3
Merge branch 'develop'
mathomp4 Mar 11, 2022
d68fcdf
Merge branch 'main' into develop
mathomp4 Mar 11, 2022
2b25092
Merge branch 'develop'
mathomp4 Mar 15, 2022
502f873
Merge branch 'main' into develop
mathomp4 Mar 15, 2022
24e25bd
Merge pull request #1435 from GEOS-ESM/main
mathomp4 Mar 15, 2022
7d44437
Fixes from M1 work
mathomp4 Mar 17, 2022
95b0906
Merge pull request #1439 from GEOS-ESM/feature/mathomp4/m1-fixes-for-…
mathomp4 Mar 17, 2022
7631796
Merge branch 'develop' into feature/wjiang/mingled_name
tclune Mar 17, 2022
857ff5e
Merge pull request #1401 from GEOS-ESM/feature/wjiang/mingled_name
mathomp4 Mar 17, 2022
03091fd
Prepare for 2.19.0 Release
mathomp4 Mar 18, 2022
ebee177
Merge pull request #1444 from GEOS-ESM/feature/mathomp4/prepare-for-m…
tclune Mar 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions Apps/MAPL_GridCompSpecs_ACG.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,11 @@ def get_rank(self):

@staticmethod
def internal_name(name):
if name[-1] == '*':
return name[:-1]
else:
return name
return name.replace('*','')

@staticmethod
def mangled_name(name):
if name[-1] == '*':
return "'" + name[:-1] + "'//trim(comp_name)"
else:
return "'" + name + "'"
return "'" + name.replace("*","'//trim(comp_name)//'") + "'"

# Pointers must be declared regardless of COND status. Deactivated
# pointers should not be _referenced_ but such sections should still
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Deprecated

## [2.19.0] - 2022-03-18

### Fixed

- Fixed duration of the clock to be the smaller of the user specified duration and (END_DATE - currTime)
- Fixes for compiling on M1 Macs (remove REAL128)
- Fix for CMake when `esmf` is already a target

### Added

- New cmake option USE_EXTDATA2G to enable the next generation of ExtData for development, by default uses 1st generation ExtData
- MAPL_ESMFFieldBundleRead/Write modules are now available in when using MAPL

### Changed

- Replaced a wild card "*" in any position of a string in MAPL_GridCompSpecs_ACG.py
- Updated `MAPL_SunGetSolarConstantFromNRLFile` to open NRL Solar Table file only on root and broadcast the tables to all processes. Now all processes do interpolation.
- Add voting interpolation method as optional argument to SimpleBundleRead method

## [2.18.3] - 2022-03-15

### Fixed
Expand Down Expand Up @@ -54,6 +73,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updates to CircleCI
- Added GEOSadas CI ifort build test
- Add "like-UFS" build to CI. This is no FLAP and pFlogger, and static build
- Added new `_STAT` and `_IOSTAT` macros a la `_RC`

### Changed

Expand All @@ -66,6 +86,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated `components.yaml`. These changes are to support using Spack to build MAPL
- ESMA_cmake v3.10.0 (add `FindESMF.cmake` from NOAA-EMC)
- ecbuild geos/v1.2.0 (updat `FindNetCDF.cmake` to that from NOAA-EMC)
- Improved file-not-found error handling in ExtData for non-templated filenames

## [2.17.2] - 2022-02-16

Expand Down
18 changes: 14 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_policy (SET CMP0054 NEW)

project (
MAPL
VERSION 2.18.3
VERSION 2.19.0
LANGUAGES Fortran CXX C) # Note - CXX is required for ESMF

# Set the default build type to release
Expand Down Expand Up @@ -84,8 +84,16 @@ endif()
if(NOT TARGET FARGPARSE::fargparse)
find_package(FARGPARSE QUIET)
endif()
if(NOT TARGET YAFYAML::yafyaml)
find_package(YAFYAML QUIET)

option(USE_EXTDATA2G "Use ExtData2G" ON)
if(USE_EXTDATA2G)
set (EXTDATA2G_TARGET "MAPL.ExtData2G" CACHE STRING "ExtData2G Target")
if(NOT TARGET YAFYAML::yafyaml)
find_package(YAFYAML REQUIRED)
endif()
message (STATUS "Building with ExtData2G")
else()
set (EXTDATA2G_TARGET "" CACHE STRING "ExtData2G Target")
endif()

option(BUILD_WITH_PFLOGGER "Build MAPL with pFlogger library support" ON)
Expand Down Expand Up @@ -114,7 +122,9 @@ if (NOT Baselibs_FOUND)
add_definitions(-DH5_HAVE_PARALLEL)
endif()

find_package(ESMF MODULE REQUIRED)
if (NOT TARGET esmf)
find_package(ESMF MODULE REQUIRED)
endif ()
endif ()

if (BUILD_WITH_PFLOGGER)
Expand Down
4 changes: 3 additions & 1 deletion MAPL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ esma_set_this()

esma_add_library (${this}
SRCS MAPL.F90
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio ${EXTDATA_TARGET}
esmf NetCDF::NetCDF_Fortran MPI::MPI_Fortran
$<$<BOOL:${BUILD_WITH_FLAP}>:FLAP::FLAP>
TYPE ${MAPL_LIBRARY_TYPE}
)

target_compile_definitions (${this} PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>)

target_include_directories (${this} PUBLIC
$<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
3 changes: 2 additions & 1 deletion MAPL/MAPL.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ module MAPL
use MAPLBase_mod
use MAPL_GenericMod
use MAPL_VarSpecMiscMod
use MAPL_ExtDataGridCompMod, only: T_EXTDATA_STATE, EXTDATA_WRAP
use ESMF_CFIOMod
use pFIO
use MAPL_GridCompsMod
use mapl_StubComponent
use MAPL_ESMFFieldBundleRead
use MAPL_ESMFFieldBundleWrite
implicit none
end module MAPL

Expand Down
1 change: 1 addition & 0 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if (BUILD_WITH_FLAP)
target_link_libraries(ExtDataDriver.x PRIVATE OpenMP::OpenMP_Fortran)
endif ()
set_target_properties(ExtDataDriver.x PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY})
target_compile_definitions (ExtDataDriver.x PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>)

ecbuild_add_executable (TARGET pfio_MAPL_demo.x SOURCES pfio_MAPL_demo.F90)
target_link_libraries (pfio_MAPL_demo.x PRIVATE MAPL FLAP::FLAP esmf)
Expand Down
21 changes: 16 additions & 5 deletions Tests/ExtDataDriverGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
module ExtData_DriverGridCompMod
use ESMF
use MAPL
use MAPL_ExtDataGridCompMod, only : ExtData_SetServices => SetServices
#if defined(BUILD_WITH_EXTDATA2G)
use MAPL_ExtDataGridComp2G, only : ExtData2G_SetServices => SetServices
#endif
use MAPL_ExtDataGridCompMod, only : ExtData1G_SetServices => SetServices
use MAPL_HistoryGridCompMod, only : Hist_SetServices => SetServices
use MAPL_Profiler, only : get_global_time_profiler, BaseProfiler

Expand Down Expand Up @@ -140,6 +143,7 @@ subroutine initialize_gc(gc, import_state, export_state, clock, rc)
procedure(), pointer :: root_set_services
type(ExtData_DriverGridComp), pointer :: cap
class(BaseProfiler), pointer :: t_p
logical :: use_extdata2g

_UNUSED_DUMMY(import_state)
_UNUSED_DUMMY(export_state)
Expand Down Expand Up @@ -212,6 +216,7 @@ subroutine initialize_gc(gc, import_state, export_state, clock, rc)
!EOR
enableTimers = ESMF_UtilStringUpperCase(enableTimers, rc = status)
_VERIFY(status)
call MAPL_GetResource(maplobj,use_extdata2g,"USE_EXTDATA2G:",default=.false.,_RC)

if (enableTimers /= 'YES') then
call MAPL_ProfDisable(rc = status)
Expand Down Expand Up @@ -319,10 +324,16 @@ subroutine initialize_gc(gc, import_state, export_state, clock, rc)

call MAPL_Set(MAPLOBJ, CF=CAP%CF_EXT, RC=STATUS)
_VERIFY(STATUS)

cap%extdata_id = MAPL_AddChild (MAPLOBJ, name = 'EXTDATA', SS = ExtData_SetServices, rc = status)
_VERIFY(status)

if (use_extdata2g) then
#if defined(BUILD_WITH_EXTDATA2G)
cap%extdata_id = MAPL_AddChild (MAPLOBJ, name = 'EXTDATA', SS = ExtData2G_SetServices, _RC)
#else
_FAIL('ExtData2G requested but not built')
#endif
else
cap%extdata_id = MAPL_AddChild (MAPLOBJ, name = 'EXTDATA', SS = ExtData1G_SetServices, _RC)
end if

end if

! Query MAPL for the the children's for GCS, IMPORTS, EXPORTS
Expand Down
2 changes: 2 additions & 0 deletions base/FileMetadataUtilities.F90
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ subroutine get_time_info(this,startTime,startyear,startmonth,startday,starthour,
allocate(timeVector,source=tVec,stat=status)
_VERIFY(status)
end if
_RETURN(_SUCCESS)

end subroutine get_time_info

Expand Down Expand Up @@ -516,6 +517,7 @@ subroutine get_coordinate_info(this,coordinate_name,coordSize,coordUnits,coords,
_ASSERT(.false.,"unsupported coordel variable type")
end select
end if
_RETURN(_SUCCESS)

end subroutine get_coordinate_info

Expand Down
7 changes: 5 additions & 2 deletions base/MAPL_SimpleBundleMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ end subroutine MAPL_SimpleBundleDestroy
!

Function MAPL_SimpleBundleRead (filename, bundle_name, grid, time, verbose, &
only_vars, expid, rc ) result (self)
only_vars, expid, voting, unusable, rc ) result (self)
use mapl_KeywordEnforcerMod

! !ARGUMENTS:

Expand All @@ -762,6 +763,8 @@ Function MAPL_SimpleBundleRead (filename, bundle_name, grid, time, verbose, &
logical, OPTIONAL, intent(in) :: verbose
character(len=*), optional, intent(IN) :: only_vars
character(len=*), optional, intent(IN) :: expid
class(KeywordEnforcer), optional, intent(in) :: unusable
logical, optional, intent(in) :: voting
integer, OPTIONAL, intent(out) :: rc

! !DESCRIPTION:
Expand All @@ -781,7 +784,7 @@ Function MAPL_SimpleBundleRead (filename, bundle_name, grid, time, verbose, &
Bundle = ESMF_FieldBundleCreate ( name=bundle_name, __RC__ )
call ESMF_FieldBundleSet ( bundle, grid=Grid, __RC__ )
call MAPL_CFIORead ( filename, Time, Bundle, verbose=verbose, &
ONLY_VARS=only_vars, expid=expid, __RC__ )
ONLY_VARS=only_vars, expid=expid, voting=voting, __RC__ )
self = MAPL_SimpleBundleCreate ( Bundle, __RC__ )
self%bundleAlloc = .true.

Expand Down
Loading