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

Compatibility with LAMMPS after 2Jun2022 #41

Closed
xyttyxy opened this issue Jul 18, 2023 · 7 comments
Closed

Compatibility with LAMMPS after 2Jun2022 #41

xyttyxy opened this issue Jul 18, 2023 · 7 comments

Comments

@xyttyxy
Copy link

xyttyxy commented Jul 18, 2023

In lammps/lammps#3199 a change was made to neighbor list request API, making full, half, and ghost not directly accessible to third-party code. This is used here

neighbor->requests[irequest]->half = 0;
neighbor->requests[irequest]->full = 1;
// TODO: probably also
neighbor->requests[irequest]->ghost = 0;

Hence pair_nequip will not compile with LAMMPS after 2Jun2022. A simple fix is by replacing the 3 lines cited by the new API:

neighbor->add_request(this, NeighConst::REQ_FULL);
@Linux-cpp-lisp
Copy link
Collaborator

Hi @xyttyxy ,

Thanks for your interest in our codes!

I think @anjohan fixed this in pair_allegro, but maybe the fix never made it here into pair_nequip. Thanks for letting us know!

@JunsuAndrewLee
Copy link

Hi @xyttyxy and @Linux-cpp-lisp ,

Thank you for your comments.

I was trying to integrate NequIP into LAMMPS 23Jun2022 version,
With your modification cmake and make commands build the executable lmp without an error, however the executable does not recognize pair style nequip at the beginning of a LAMMPS run as follows. Would you let me know any further modifications I need to modify?

ERROR: Unrecognized pair style 'nequip' (src/force.cpp:279)
Last command: pair_style	nequip

@Akram-Ibrahim
Copy link

Akram-Ibrahim commented May 7, 2024

Yeah, I've the same issue as @JunsuAndrewLee .. Exception: ERROR: Unrecognized pair style 'nequip' (src/force.cpp:279) .. with LAMMPS (23 Jun 2022 - Update 1). @Linux-cpp-lisp

Thanks in advance.

@JunsuAndrewLee
Copy link

@Akram-Ibrahim Recently I managed to integrate nequip to LAMMPS 23Jun2022 stable version, though slightly different version from what you have tried. Did you make sure patch_lammps.sh is properly executed? You can check /src/pair_nequip.cpp and pair_nequip.h

@Akram-Ibrahim
Copy link

Thanks @JunsuAndrewLee for the update. I will try to use the LAMMPS 23Jun2022 stable version. Yeah, patch_lammps.sh was properly executed and I can see the pair_nequip .cpp and .h files copied in lammps/src.

@JunsuAndrewLee
Copy link

I also removed 96th line, though not sure this changes anything. Plus, you can easily check available pair styles in your compiled executable with ./lmp -h command.

@Linux-cpp-lisp
Copy link
Collaborator

Should be closed by #52.

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

4 participants