Repository navigation
Lower bcs + lots of tuning - #113
Merged
Merged
Conversation
This just makes changes to allow 1D simulations (and post processing) to work again. I think that there are some CO2 fixes in here too. Ugh.
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.
Change the defaults, fix some bugs
- silence EUV_blend notice - turn off scaling when *not* using FISM. - Doc everything
…change logic for pole location to match APEX
abukowski21
marked this pull request as ready for review
September 16, 2026 19:14
aaronjridley
approved these changes
Sep 16, 2026
aaronjridley
left a comment
Contributor
There was a problem hiding this comment.
So much! So much stuff!
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.
[BUG/FEAT] Tuning & CO2 cooling & lower boundary conditions
Changes to GITM's lower boundary conditions
Summary:
EUVBlendoption (off by default)EUVFactor(on by default on Earth) to multiply FISM EUV to be approx flat in F107