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

"Singular value encountered" error in reactive transport with ats-master #54

Closed
zexuanxu opened this issue Aug 19, 2020 · 1 comment
Closed

Comments

@zexuanxu
Copy link
Contributor

Hi ATS developers,

I'm just trying to bring this on the Github so everyone can keep track of the issue of chemistry merge in ats-master. I encountered the issue below when I was trying to run either my reactive transport case (3D Copper Creek), or the 13_reactive_transport in ats-demos (trans_chem_tests branch)

ERROR: Singular value encountered in ludcmp() on processor: 1 aamax = 0.0000000000000000 row = 1
Jacobian: 1 1 0.0000000000000000 2 0.0000000000000000
Jacobian: 2 1 0.0000000000000000 2 0.0000000000000000

From Ahmad: it's an issue with the order of initialization. Should State go first or PKs? We have been talking about this. Typically ATS initializes PK variables and then State variables. But in reactive transport runs, the primary variables are initialized through State, so State needs to be initialized first otherwise we see this Singular Jacobian issues because things are not properly initialized. And also a few updates in Alquimia_PK.cc break the code.

Thanks
Zexuan

@ecoon
Copy link
Collaborator

ecoon commented Sep 4, 2020

fixed in refactor of reactive transport.

@ecoon ecoon closed this as completed Sep 4, 2020
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