You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because par->doSolveRTE is not set in this case, leading to the call to calcGridMolSpecNumDens() in run_new.c trying to read gp[gi].mol[ispec].pops values, but gp[gi].mol[ispec].pops is never malloc'd.
The text was updated successfully, but these errors were encountered:
Two changes have been made.
- In run.c:parseInput(), a warning is generated if (!par->lte_only && par->nSolveIters<=par->nSolveItersDone && !allBitsSet(par->dataFlags, DS_mask_populations)). I.e. if the user has neither set pops values via a submitted grid file, nor requested any solver iterations.
- In run.c:run(), gp[gi].mol[si].pops is malloc'd and filled with zeros whether par->doSolveRTE is set or not.
Upshot of the changes are that, where previous the code would seg fault if the user left par->nSolveIters at default, now it will proceed, with a warning message. Any output images will contain zero contribution from line emission.
An additional change: in run.c:run(), formerly the decision to set par->doSolveRTE depended on (par->nSolveIters>0 || par->lte_only), now it depends on (par->nSolveIters>par->nSolveItersDone || par->lte_only).
This happens because
par->doSolveRTE
is not set in this case, leading to the call tocalcGridMolSpecNumDens()
inrun_new.c
trying to readgp[gi].mol[ispec].pops
values, butgp[gi].mol[ispec].pops
is never malloc'd.The text was updated successfully, but these errors were encountered: