Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove vmr divmul #378

Merged
merged 4 commits into from
Oct 22, 2021
Merged

Remove vmr divmul #378

merged 4 commits into from
Oct 22, 2021

Conversation

riclarsson
Copy link
Contributor

This changes the behavior of the propagation matrix agenda in two ways.

The Jacobian::Special::ArrayOfSpeciesTagVMR derivatives are now output in units of VMR instead of as full absorption coefficients.

There is physical output of the derivative even with 0-VMR input.

This is in preparation for removing the cross-section agenda and adapting the lookup table calculations for use of the propagation matrix agenda.

…rrayOfSpeciesTagVMR

This means that derivatives should now work for 0-VMR

The problem was that there used to be an adaptation in
adapt_stepwise_partial_derivatives so that these derivatives were rescaled by VMR.

This means that they had used to have to be output of the propagation matrix agenda
first multiplied by the VMR, so that the adaptation's divide by VMR would not
mess up the values.  This behavior was kept to keep the behavior to pre-analytical
Jacobian calculations identical to how they were back then.

Since we want to use the propagation matrix agenda to compute the lookup table,
it is now desired that the 0-VMR test case works.  This means that the old
behavior can no longer be kept.
The Jacobian::Special::ArrayOfSpeciesTagVMR are now computed inside the
line shape compute function.  So the duplication of code to take it into
account has been removed.

Also applied relevant clang-tidy comments in the files I had to open to
get this code updated
@olemke
Copy link
Member

olemke commented Oct 11, 2021

@erikssonpatrick This makes the VMR jacobian compatible with 0 VMR which we need for the lookup table. You're okay with this change?

@olemke olemke merged commit 9ee3ac6 into atmtools:master Oct 22, 2021
@riclarsson riclarsson deleted the remove_vmr_divmul branch October 27, 2021 06:34
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