Skip to content

Merge develop into release/MAPL-v3 (2026-11-13) - #119

Merged
pchakraborty merged 19 commits into
release/MAPL-v3from
merge/pchakrab/develop-into-mapl3-2026Nov13
Nov 13, 2026
Merged

pchakraborty merged 19 commits into
release/MAPL-v3from
merge/pchakrab/develop-into-mapl3-2026Nov13

Conversation

@pchakraborty

Copy link
Copy Markdown
Contributor

Brings release/MAPL-v3 up to date with develop's history. The resulting tree is identical to release/MAPL-v3: this PR changes no files.

The code changes from develop are already on the MAPL3 line:

All conflicts (AGENTS.md, docs/ARCHITECTURE.md, GEOS_IrradGridComp.F90, Irrad_StateSpecs.rc, GEOS_SolarGridComp.F90) are resolved to the MAPL3 version.

Develop's MAPL2-line agent documents (docs/decisions.md and the GEOSirrad_GridComp and GEOSsolar_GridComp ARCHITECTURE.md files) are not taken; the MAPL3 line keeps its own AGENTS.md and docs/ARCHITECTURE.md.

mathomp4 and others added 19 commits May 27, 2026 10:24
GitFlow: Merge develop (v12) into main
…style

Purely mechanical formatting pass over the original (MAPL2) source, no
functional changes.

- Reindent all code to a consistent 3-space block indent. Use a flat
  5-space continuation-line indent throughout.
- Strip purely decorative dash-only/equals-only comment dividers
- Collapse `RC=STATUS` / `VERIFY_(STATUS)` pairs - two-line, same-line
  (`; VERIFY_(STATUS)`), and extra-whitespace (`RC=STATUS  )`) forms -
  into the single-line `_RC` macro. Pairs that can't be safely
  collapsed (if-condition usage, NotFoundOK calls, dynamic RATS
  pointers explicitly marked "Don't verify.", multi-branch calls
  sharing one trailing VERIFY_ after an if/elseif chain) are left as
  RC=STATUS/VERIFY_(STATUS).
- Rename `__RC__` -> `_RC` and `__STAT__` -> `_STAT` throughout.

4574 -> 4425 lines.
Purely mechanical follow-up to the earlier formatting pass, no functional
changes. Replaces SetServices's hand-written MAPL_AddImportSpec/
AddExportSpec/AddInternalSpec calls with a single Irrad_StateSpecs.rc file
and three generated #include's (Irrad_Import___.h / Irrad_Export___.h /
Irrad_Internal___.h), driven by mapl_acg() in CMakeLists.txt. This matches
how the MAPL3 port already declares its state specs, so the two versions
stay easier to diff and maintain side by side. SetServices drops from ~980
to ~310 lines.

- AERO (needs a state-item datatype the .rc schema can't express), the 3-D
  CO2 import (config-driven, needs a local variable in scope), and the
  RATS-diagnostics block (fully dynamic - names and count depend on a
  runtime config list) don't fit the static .rc model and are left
  hand-written, same as the MAPL3 port does for the same reasons.

- Extracted the OLRB{bb}RG/TBRB{bb}RG band exports/internals out of a
  runtime do-loop (checking a band_output_supported(ibnd) array) into 8
  static, conditional .rc rows (COND = USE_RRTMG .or. USE_RRTMGP) instead
  of a straight syntax swap. Verified these are the exact same 8 bands the
  array marked true, so this is behavior-preserving. Removed the loop
  variables (ibnd, bb) and the _ASSERT(NB_RRTMG == nbndlw, ...) checks that
  only existed to support that loop, since they're now dead code.

- CMakeLists.txt's mapl_acg() call also generates Irrad_GetPointer___.h and
  Irrad_DeclarePointer___.h, though SetServices doesn't #include them yet -
  harmless to generate now, ready for a later round that converts Run's/
  LW_Driver's manual MAPL_GetPointer calls.
Pull compute_lw_aer_optics, compute_lw_cloud_optics_mcica,
compute_lw_gas_optics, compute_lw_rte, and PROCESS_RRTMGP_LW_BLOCK
out of Run/LW_Driver's nested scope into standalone module-level
subroutines.

Clean up remaining protex double-bang (! !) comment headers to
single-bang throughout.
Pull the RADIATIVELY_ACTIVE_AEROSOLS block out of LW_Driver into a
standalone module-level compute_provider_aerosol_optics routine,
mirroring the MAPL3 port's structure and call site. LW_Driver now
just fetches the AERO state and calls the new routine; the
AS_FIELD_NAME/AS_PTR_3D/AEROSOL_EXT/AEROSOL_SSA/AEROSOL_ASY/band/
SSA_MAX/ASY_MAX locals move with it and are dropped from
LW_Driver's own declarations.
…-restructure

Reformat GEOS_IrradGridComp.F90: consistent indentation and RC-macro style
PR #100 dropped this comment when replacing hand-written
MAPL_AddExportSpec calls with ACG state specs. Restore it above the
CLDTTLW row per review feedback.
Documentation only. Claims cite source files; readings are marked Inferred, unchecked statements Unverified. Observed oddities are noted, not fixed.

Plan-Task: I-ArchDocs
Links to files outside this repository are dead on GitHub; they are now
code paths relative to the fixture checkout.

Plan-Task: I-ArchDocs
…re-docs

Add agent-oriented architecture documentation
Bring release/MAPL-v3 up to date with develop's history. The code changes from develop are already on the MAPL3 line: the IRRAD restructuring (5241d6a, 79993dc, 9e9a12c, 7491648, ac953d6) mirrors the MAPL3 port, and the Solar OX-to-O3 import change (b9292d3) came in with #112. All conflicts (AGENTS.md, docs/ARCHITECTURE.md, GEOS_IrradGridComp.F90, Irrad_StateSpecs.rc, GEOS_SolarGridComp.F90) are resolved to the MAPL3 version.

Develop's MAPL2-line agent documents (docs/decisions.md and the GEOSirrad_GridComp and GEOSsolar_GridComp ARCHITECTURE.md files) are not taken; the MAPL3 line keeps its own AGENTS.md and docs/ARCHITECTURE.md.
@pchakraborty pchakraborty added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Nov 13, 2026
@pchakraborty
pchakraborty merged commit 9ad107e into release/MAPL-v3 Nov 13, 2026
5 of 7 checks passed
@pchakraborty
pchakraborty deleted the merge/pchakrab/develop-into-mapl3-2026Nov13 branch November 13, 2026 12:36
pchakraborty added a commit that referenced this pull request Nov 16, 2026
* changes to the PCHEM H2O relaxation that may/maynot help the 300mb summer pole biases

* Reformat GEOS_IrradGridComp.F90: consistent indentation and RC-macro style

Purely mechanical formatting pass over the original (MAPL2) source, no
functional changes.

- Reindent all code to a consistent 3-space block indent. Use a flat
  5-space continuation-line indent throughout.
- Strip purely decorative dash-only/equals-only comment dividers
- Collapse `RC=STATUS` / `VERIFY_(STATUS)` pairs - two-line, same-line
  (`; VERIFY_(STATUS)`), and extra-whitespace (`RC=STATUS  )`) forms -
  into the single-line `_RC` macro. Pairs that can't be safely
  collapsed (if-condition usage, NotFoundOK calls, dynamic RATS
  pointers explicitly marked "Don't verify.", multi-branch calls
  sharing one trailing VERIFY_ after an if/elseif chain) are left as
  RC=STATUS/VERIFY_(STATUS).
- Rename `__RC__` -> `_RC` and `__STAT__` -> `_STAT` throughout.

4574 -> 4425 lines.

* ACG-fy SetServices state specs

Purely mechanical follow-up to the earlier formatting pass, no functional
changes. Replaces SetServices's hand-written MAPL_AddImportSpec/
AddExportSpec/AddInternalSpec calls with a single Irrad_StateSpecs.rc file
and three generated #include's (Irrad_Import___.h / Irrad_Export___.h /
Irrad_Internal___.h), driven by mapl_acg() in CMakeLists.txt. This matches
how the MAPL3 port already declares its state specs, so the two versions
stay easier to diff and maintain side by side. SetServices drops from ~980
to ~310 lines.

- AERO (needs a state-item datatype the .rc schema can't express), the 3-D
  CO2 import (config-driven, needs a local variable in scope), and the
  RATS-diagnostics block (fully dynamic - names and count depend on a
  runtime config list) don't fit the static .rc model and are left
  hand-written, same as the MAPL3 port does for the same reasons.

- Extracted the OLRB{bb}RG/TBRB{bb}RG band exports/internals out of a
  runtime do-loop (checking a band_output_supported(ibnd) array) into 8
  static, conditional .rc rows (COND = USE_RRTMG .or. USE_RRTMGP) instead
  of a straight syntax swap. Verified these are the exact same 8 bands the
  array marked true, so this is behavior-preserving. Removed the loop
  variables (ibnd, bb) and the _ASSERT(NB_RRTMG == nbndlw, ...) checks that
  only existed to support that loop, since they're now dead code.

- CMakeLists.txt's mapl_acg() call also generates Irrad_GetPointer___.h and
  Irrad_DeclarePointer___.h, though SetServices doesn't #include them yet -
  harmless to generate now, ready for a later round that converts Run's/
  LW_Driver's manual MAPL_GetPointer calls.

* Extract RRTMGP compute_*/PROCESS_* routines to module level

Pull compute_lw_aer_optics, compute_lw_cloud_optics_mcica,
compute_lw_gas_optics, compute_lw_rte, and PROCESS_RRTMGP_LW_BLOCK
out of Run/LW_Driver's nested scope into standalone module-level
subroutines.

Clean up remaining protex double-bang (! !) comment headers to
single-bang throughout.

* Extract compute_provider_aerosol_optics from LW_Driver

Pull the RADIATIVELY_ACTIVE_AEROSOLS block out of LW_Driver into a
standalone module-level compute_provider_aerosol_optics routine,
mirroring the MAPL3 port's structure and call site. LW_Driver now
just fetches the AERO state and calls the new routine; the
AS_FIELD_NAME/AS_PTR_3D/AEROSOL_EXT/AEROSOL_SSA/AEROSOL_ASY/band/
SSA_MAX/ASY_MAX locals move with it and are dropped from
LW_Driver's own declarations.

* Preserve CLDxxLW super-layer cloud comment in Irrad_StateSpecs.rc

PR #100 dropped this comment when replacing hand-written
MAPL_AddExportSpec calls with ACG state specs. Restore it above the
CLDTTLW row per review feedback.

* Add agent-oriented architecture documentation

Documentation only. Claims cite source files; readings are marked Inferred, unchecked statements Unverified. Observed oddities are noted, not fixed.

Plan-Task: I-ArchDocs

* Write cross-repository references as paths

Links to files outside this repository are dead on GitHub; they are now
code paths relative to the fixture checkout.

Plan-Task: I-ArchDocs

---------

Co-authored-by: Matt Thompson <matthew.thompson@nasa.gov>
Co-authored-by: William Putman <William.M.Putman@nasa.gov>
Co-authored-by: Scott Rabenhorst <scott.d.rabenhorst@nasa.gov>
Co-authored-by: Scott Rabenhorst <53346946+sdrabenh@users.noreply.github.com>
Co-authored-by: Tom Clune <thomas.l.clune@nasa.gov>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants