Skip to content

Add TimeAccumulate with unit tests.#4869

Merged
tclune merged 15 commits into
release/MAPL-v3from
feature/wdboggs/add_time_accumulate
May 14, 2026
Merged

Add TimeAccumulate with unit tests.#4869
tclune merged 15 commits into
release/MAPL-v3from
feature/wdboggs/add_time_accumulate

Conversation

@darianboggs
Copy link
Copy Markdown
Contributor

Types of change(s)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Trivial change (affects only documentation or cleanup)
  • Refactor (no functional changes, no api changes)

Checklist

  • Tested this change with a run of GEOSgcm
  • Ran the Unit Tests (make tests)

Description

Statistic computations were implemented through FrequencyAspect and the associated transforms previously. Now the computations are handled with StatisticsGridComp. FrequencyAspect and the associated transforms were removed in a previous PR. One statistic handled by FrequencyAspect, accumulation (summation) in time, was not implemented with StatisticGridComp. This PR adds a new type derived from AbstractStatisticsGridComp called TimeAccumulate to calculate the missing accumulation statistic. The PR includes unit tests of the new type. Since the procedures are bound to TimeAccumulate type, the unit tests mirror the tests individually. An integration test requires creating a TimeAccumulate object, and it is out of the scope of this PR.

Related Issue

@darianboggs darianboggs requested review from bena-nasa and tclune May 12, 2026 18:15
@darianboggs darianboggs self-assigned this May 12, 2026
@darianboggs darianboggs requested a review from a team as a code owner May 12, 2026 18:15
@darianboggs darianboggs added 🎁 New Feature This is a new feature 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. 📈 MAPL3 MAPL 3 Related labels May 12, 2026
Comment thread gridcomps/StatisticsGridComp/tests/Test_TimeAccumulate.pf
Comment thread gridcomps/StatisticsGridComp/StatisticsGridComp.F90 Outdated
Comment thread gridcomps/StatisticsGridComp/TimeAccumulate.F90 Outdated
Copy link
Copy Markdown
Collaborator

@tclune tclune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change and one important question (inline comments)

@darianboggs darianboggs requested a review from tclune May 13, 2026 02:49
darianboggs and others added 10 commits May 13, 2026 09:38
…t through MAPL umbrella (#4882)

* Extend mapl3g_FileIO WRITE_PARALLEL with scalar/1d integer and real overloads (refs #4879)

* Move FileIOSharedMod and NCIOMod to base3g/, re-export through MAPL umbrella (refs #4874, #4879)

- Move FileIOShared.F90 and NCIO.F90 from base/ to base3g/ with
  temporary internal module names (mapl_FileIOShared, mapl_NCIO)
- Leave thin compatibility wrappers in base/ under original module
  names (FileIOSharedMod, NCIOMod) so existing callers are unaffected
- Copy write_parallel.H and read_parallel.H to base3g/include/
- Update base3g/CMakeLists.txt with new sources and dependencies
- Re-export ArrDescr, ArrDescrInit, ArrDescrSet, MAPL_VarRead,
  MAPL_VarWrite, MAPL_NCIOGetFileType, MAPL_IOGetNonDimVars,
  MAPL_IOCountNonDimVars, MAPL_IOChangeRes, MAPL_IOCountLevels
  through mapl_base3g so they are available via 'use MAPL'

* Move MAPL_LocStreamMod to base3g/ (module mapl_LocStreamMod_impl); leave thin wrapper in base/ (refs #4874)
…amMod (closes #4874) (#4883)

* Remove base/ thin wrappers for FileIOSharedMod, NCIOMod, MAPL_LocStreamMod; move c_mapl_locstream_F.c to base3g/ (closes #4874)

* Drop NCIOMod and MAPL_LocStreamMod from MAPL2 — symbols no longer needed there (refs #4874)

* Add mapl2-migration skill documenting iterative PR process for base/ to base3g/ migrations

* Update mapl2-migration skill: always rebase onto target branch before pushing/opening a PR

* Remove orphaned write_parallel.H and read_parallel.H from base/ (now live in base3g/include/) (refs #4874)

* Remove orphaned GetPointer.H from base/ — no longer used (refs #4874)

* Remove orphaned GetFieldArray.H from base/ — no longer used (refs #4874)
…-ESM/MAPL into feature/wdboggs/add_time_accumulate
tclune
tclune previously approved these changes May 14, 2026
@darianboggs darianboggs dismissed tclune’s stale review May 14, 2026 11:44

The merge-base changed after approval.

@tclune tclune merged commit a6d5ead into release/MAPL-v3 May 14, 2026
29 of 31 checks passed
@tclune tclune deleted the feature/wdboggs/add_time_accumulate branch May 14, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 Diff The changes in this pull request have verified to be zero-diff with the target branch. 📈 MAPL3 MAPL 3 Related 🎁 New Feature This is a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants