Skip to content

Lower bcs + lots of tuning - #113

Merged
aaronjridley merged 137 commits into
developfrom
lower_bcs
Sep 16, 2026
Merged

aaronjridley merged 137 commits into
developfrom
lower_bcs

Conversation

@abukowski21

@abukowski21 abukowski21 commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator

[BUG/FEAT] Tuning & CO2 cooling & lower boundary conditions

Changes to GITM's lower boundary conditions

Summary:

  • Tides are applied differently
  • MSIS21 is no longer default (no PRE was generated), default to MSIS00 with OBC (6-month [O] shift) and oblate=-0.1
  • Change how altitude is initialized (allow dHFactor to be shrunk)
  • Add [He] auroral ionization
  • Some chemistry & EUV bugs fixed
  • Add EUVBlend option (off by default)
  • Add EUVFactor (on by default on Earth) to multiply FISM EUV to be approx flat in F107
  • Approx one month of tuning
  • Changes to test verification script (perl -> python)
  • Make Dynamo=T in default UAM file
  • add CO2 cooling (off by default)

aaronjridley and others added 24 commits September 5, 2026 15:45
UseImprovedIonAdvection, UseNighttimeIonBCs and MinTEC were settable from
UAM.in but appeared nowhere in run_information.txt
He's weight of 0.14 is the ratio of its peak electron-impact ionization
cross-section to O2's near 100 eV. Its share goes to He+ in the chemistry
and into the auroral electron heating rate sum.
- AltMax was read from #ALTITUDE and then ignored on a stretched grid; only
  the uniform grid used it. It is now a ceiling: dHFactor is reduced until
  the top physical level fits under AltMax, and is never raised, so a grid
  that cannot reach AltMax stops short of it.
- A negative AltMax asks for no ceiling, leaving AltMaxLimit (1100 km) as
  the only one. Setting AltMax and #DHFACTOR together skips the search and
  uses both as given, which is how to run above AltMaxLimit or coarser than
  0.3 without recompiling.
- Decks under srcData are raised to 1000 km to keep the grids they had.
- init_altitude records the spacing and top that were used, so those go to
  run_information.txt instead of the requested values, and write_restart
  emits #ALTITUDE and #DHFACTOR so a restart rebuilds the same grid.
- Remove init_altitude_old, which nothing called, and an if/else in
  get_temperature whose two branches were the same expression.
- silence EUV_blend notice
- turn off scaling when *not* using FISM.
- Doc everything
…change logic for pole location to match APEX
@abukowski21
abukowski21 marked this pull request as ready for review September 16, 2026 19:14

@aaronjridley aaronjridley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So much! So much stuff!

@aaronjridley
aaronjridley merged commit b3f497c into develop Sep 16, 2026
4 checks passed
@aaronjridley
aaronjridley deleted the lower_bcs branch September 16, 2026 21:18
abukowski21 added a commit that referenced this pull request Nov 14, 2026
Catch-up of the output refactor with 181 develop commits (PR #113
lower_bcs through PR #121 bugs/restarts_etc).

Conflict resolutions:
- src/output_common.f90: ours. develop's changes to the old per-type
  writers are re-expressed in the container fills in the commits that
  follow: 1DEMI/3DEMI as new types, CO2 cooling + the He ionization rate
  in 3DTHM, CO2 cooling in 1DTHM. develop's 2DMEL change (Altitude =
  AltIERef, replacing an out-of-bounds Altitude_GB read) needs no port:
  the branch's 2DMEL schema has no Altitude variable. develop's removal
  of chapman_integrals() from output() (b21de66) is applied here: it
  changed the solver between dtEUV updates, so the logs would not match
  develop's references.
- src/ModSources.f90: develop's CO2Cooling array added; the dead
  EddyCond/EddyCondAdia arrays removed in eedca7a stay removed.
- srcDoc/outputs.md: ours (regenerated from a sweep in a later commit).
- ref_solns/log.UAM.in.09.ApexAndDynamo.test: develop's.
- run_all_tests.sh: ours, plus develop's DiffNum.py switch (-a=1e-2) and
  its on-failure DiffNum hint, pointed at where this script keeps a
  failed run's outputs.
- .github/workflows/Format-and-Test.yml: netCDF4 added to the pip line
  (the backend tests' validate_outputs.py, compare_backends.py and the
  append check import it).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants