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

Inconsistent / strange results on Ubuntu 18.04 #30

Open
keflavich opened this issue Jun 24, 2020 · 3 comments
Open

Inconsistent / strange results on Ubuntu 18.04 #30

keflavich opened this issue Jun 24, 2020 · 3 comments

Comments

@keflavich
Copy link
Owner

cc @low-sky

We have an issue where RADEX is producing nonsense results and crashing on ubuntu, but not on mac, for identical inputs.

import pyradex
R = pyradex.Radex(collider_densities={'oH2':0,'pH2':10000}, column=1e14, species='p-nh3', temperature=15, escapeProbGeom='lvg')
R(collider_densities={'oH2':0,'pH2':10000}, column=1e14, species='p-nh3', temperature=15, )

results in

 ***MESSAGE FROM ROUTINE SGEIR IN LIBRARY SLATEC.
 ***POTENTIALLY RECOVERABLE ERROR, PROG ABORTED, TRACEBACK REQUESTED
 *  SINGULAR MATRIX A - NO SOLUTION
 *  ERROR NUMBER = -4
 *
 ***END OF MESSAGE

 ***JOB ABORT DUE TO UNRECOVERED ERROR.
0          ERROR MESSAGE SUMMARY
 LIBRARY    SUBROUTINE MESSAGE START             NERR     LEVEL     COUNT
 SLATEC     SGEIR      SINGULAR MATRIX A -         -4         1         1
@dkvieira
Copy link

I have been having this same issue running Ubuntu 16.04. Is there a workaround available?

@keflavich
Copy link
Owner Author

No, we couldn't figure out what was causing it! Any insights you can offer would be very welcome. Maybe try different compilers?

@dkvieira
Copy link

I did manage to avoid the singular matrix error by editing line 952 of core.py:

frac_level_diff = level_diff/self.level_population

Here there was a divide by zero problem as self.level_population had a number of elements equal to zero (which may be part of the original problem). I removed the elements equal to zero and got some output but it did not match the example output provided on this site for the following input:

R = pyradex.Radex(collider_densities={'oH2':900,'pH2':100}, column=1e16, species='co', temperature=20)
Tlvg = R(escapeProbGeom='lvg')

So in short I am still having major problems with it.

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

No branches or pull requests

2 participants