Skip to content

Fixes for restarts, FTA HP norm, etc - #121

Merged
aaronjridley merged 38 commits into
developfrom
bugs/restarts_etc
Oct 15, 2026
Merged

aaronjridley merged 38 commits into
developfrom
bugs/restarts_etc

Conversation

@abukowski21

Copy link
Copy Markdown
Collaborator

[FIX] Some bug fixes, doc updates, etc

Issues:

Other things not in issues:

  • Restarts are not very close to identical
  • Hemispheric power normalization with FTA is fixed
  • MSIS00 is now default (test solutions change)
  • ifx compiler support in template Makefiles
  • B107 added as a lookup table for F107
  • IEReferenceAltitude sets a common grid for auroral deposition & HP integration (not dynamo)
  • Move to a Python DiffNum.py instead of DiffNum.pl. Same results, every time. Just easier to use

Changes to GITM outputs

  • The ChemicalHeatingSubI -> ChemicalHeatingSub change lowers density ~10%.
  • MSIS00 being default instead of MSIS21 changes things a lot, only applies when MSIS21 is not set (to F).
  • With a very high hemispheric power & doNormalizeAuroratoHP, FTA changes slightly
  • Output format changes a bit, very little changes to physics other than what's mentioned here

Notes

Documentation is updated!

This supersedes #111, which was merged in ca3125b

Chen Wu and others added 30 commits September 11, 2026 16:54
checks to make sure the FTA model is in use before normalizing to HP with the FTA-specific stuff
… resets

Moving calc_rates & calc_collisions from initialize to calc_electrodynamics since that's where they're acutallly used
- co2Cooling = co2FomichevCooling (co2cooling did nothing)
- misspelling in aurora
- chemistry fixes not applied to all files
- incorrect defaults shown
- dynamo potential "notFound" grabbed from a non-existent point
- “bremsstrahlung” component of 10.7 cm emission
- Table courtesy of Tom Berger
- Keep B107 values local
- logfiles still  write F107, header says whether F107 or B107 were used. Logfiles still show F107 to not move the headers too much
- default=120km
- changed in set_inputs (#IEREFERENCEALT) & mapped to nearest grid cell
- GITM saves the index & converts alt to m
- not parsed + not needed
- move grid checks to read_restart
- ensure block layout is the same pre/post-restart
This sorts the defaults for Earth & all other planets. Hopefully we can keep track of what goes where in the future!

@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.

In calc_euv, we have not looked at the ridleyslopes stuff. In theory, this model was created with the raw f107 and f107a, so they may be better with the raw f107 and raw f107a. I don't know this for sure and I am not sure if this model still works. It used to work, but hasn't been used in many years, so it is probably not important.

There is a lot of stuff in here. Wow.

@aaronjridley
aaronjridley merged commit 2f70c33 into develop Oct 15, 2026
4 checks passed
@abukowski21
abukowski21 deleted the bugs/restarts_etc branch October 15, 2026 18:09
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