43 "Mismatch dimensions on species and VMR inputs");
46 "Mismatch dimensions on internal matrices of xsec and frequency");
49 if (dpropmat_clearsky_dx.
nelem()) {
51 dpropmat_clearsky_dx.
nelem() not_eq jacobian_quantities.
nelem(),
52 "Mismatch dimensions on xsec derivatives and Jacobian grids");
54 std::any_of(dpropmat_clearsky_dx.cbegin(),
55 dpropmat_clearsky_dx.cend(),
57 return x.NumberOfFrequencies() not_eq f_grid.nelem();
59 "Mismatch dimensions on internal matrices of xsec derivatives and frequency");
63 for (
auto& tag_groups : abs_species) {
64 for (
auto& tag : tag_groups) {
This can be used to make arrays out of anything.
Index nelem() const ARTS_NOEXCEPT
Number of elements.
Index nelem() const noexcept
Returns the number of elements.
Index NumberOfFrequencies() const
The number of frequencies of the propagation matrix.
Helper macros for debugging.
#define ARTS_USER_ERROR_IF(condition,...)
void propmat_clearskyAddPredefined(PropagationMatrix &propmat_clearsky, ArrayOfPropagationMatrix &dpropmat_clearsky_dx, const ArrayOfArrayOfSpeciesTag &abs_species, const ArrayOfRetrievalQuantity &jacobian_quantities, const Vector &f_grid, const Numeric &rtp_pressure, const Numeric &rtp_temperature, const Vector &rtp_vmr, const Verbosity &)
WORKSPACE METHOD: propmat_clearskyAddPredefined.
NUMERIC Numeric
The type to use for all floating point numbers.
void compute(PropagationMatrix &propmat_clearsky, ArrayOfPropagationMatrix &dpropmat_clearsky_dx, const SpeciesIsotopeRecord &model, const Vector &f_grid, const Numeric &rtp_pressure, const Numeric &rtp_temperature, const VMRS &vmr, const ArrayOfRetrievalQuantity &jacobian_quantities)
Compute the predefined model.
Contains known required VMR values.