Skip to content

Conversation

@falconstryker
Copy link
Collaborator

if the pstd dimension values are not in decreasing order (e.g., bottom to top of atmosphere), then the MSF calculation gets wonky. MarsInterp ensures the pstd dimension is decreasing, but if pressure interpolation is done outside CAP (e.g., with runpinterp.csh released with the NASA Ames Mars GCM) and the pstd dimension values are in increasing order, the MSF calculation is wrong. This bug fix checks the pstd order in mass_stream, calculates MSF properly, then puts the pstd back in the order it started with. In other words, this fix preserves the original order of values in pstd, only reversing it for the math.

@rurata rurata merged commit e41cb27 into NASA-Planetary-Science:devel Sep 19, 2025
27 checks passed
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