Repository navigation
Fixes for restarts, FTA HP norm, etc - #121
Merged
Merged
Conversation
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!
These terms are only used in the outputs, no change in physics expected Just aligning the energies in these terms to what is used in the terms which are used for physics
aaronjridley
approved these changes
Oct 15, 2026
aaronjridley
left a comment
Contributor
There was a problem hiding this comment.
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.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[FIX] Some bug fixes, doc updates, etc
Issues:
#USESECONDSINFILENAME Tis ignored: the handler resets the flag toF#117Vibration(iCO2_)is never set now that CO2 is a main species (negative CO2 contribution to cp and gamma) #118Other things not in issues:
ifxcompiler support in template MakefilesIEReferenceAltitudesets a common grid for auroral deposition & HP integration (not dynamo)DiffNum.pyinstead ofDiffNum.pl. Same results, every time. Just easier to useChanges to GITM outputs
ChemicalHeatingSubI->ChemicalHeatingSubchange lowers density ~10%.MSIS21is not set (to F).doNormalizeAuroratoHP, FTA changes slightlyNotes
Documentation is updated!
This supersedes #111, which was merged in ca3125b