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

Reading Eam/alloy file with one extra value #26

Open
griessej opened this issue Nov 26, 2019 · 3 comments
Open

Reading Eam/alloy file with one extra value #26

griessej opened this issue Nov 26, 2019 · 3 comments
Assignees

Comments

@griessej
Copy link
Contributor

No description provided.

@pastewka pastewka self-assigned this Nov 26, 2019
@pastewka
Copy link
Collaborator

@griessej Can you give a bit more explanation on what this was? I forgot.

@wgnoehring
Copy link
Contributor

I have encountered this problem in the case of a CuZr and a NiCoCr potential. The header says that the functions are tabulated at N points, but in fact there are N+1 points. The additional value might be a zero at the end. The EAM reader fails due to this extra value. Interestingly, this is not a problem for Lammps. Maybe the Lammps reader ends the line when enough values are read. Anyway, failure is expected. Perhaps one could first check how many values are in the table and then raise an exception if there are too few / too many.

@pastewka
Copy link
Collaborator

Okay. That sounds like a bug. @griessej should still provide a more detailed explanation of what the original problem was. Can you do this please?

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

3 participants