medyan-dev / medyan-public

Repo for issue tracking, documents and release. Learn more about MEDYAN at medyan.org.
https://medyan.org
Other
0 stars 0 forks source link

LAMMPS compilation error when including AWSEM src files #16

Closed rlindsa2 closed 1 year ago

rlindsa2 commented 1 year ago

Hello,

I am attempting to compile LAMMPS with AWSEM-MD by following the instructions on the 'Getting Started' Github page (https://github.com/adavtyan/awsemmd/wiki) and am getting a compilation error involving some of the AWESEM source files. Part of the error output is below; the primary error is "error: 'int LAMMPS_NS::NeighRequest::id' is protected within this context":


....... ./compute_property_local.cpp g++ -g -O3 -std=c++11 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -I../STUBS -c ../fix_backbone.cpp ../fix_backbone.cpp: In member function 'virtual void LAMMPS_NS::FixBackbone::init()': ../fix_backbone.cpp:1618:33: error: 'int LAMMPS_NS::NeighRequest::id' is protected within this context 1618 | neighbor->requests[irequest]->id = 1; | ^~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:35:7: note: declared protected here 35 | int id; // ID of request as stored by requestor | ^~ ../fix_backbone.cpp:1619:33: error: 'int LAMMPS_NS::NeighRequest::pair' is protected within this context 1619 | neighbor->requests[irequest]->pair = 0; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:46:7: note: declared protected here 46 | int pair; // pair is set by default | ^~~~ ../fix_backbone.cpp:1620:33: error: 'int LAMMPS_NS::NeighRequest::fix' is protected within this context 1620 | neighbor->requests[irequest]->fix = 1; | ^~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:47:7: note: declared protected here 47 | int fix; | ^~~ ../fix_backbone.cpp:1621:33: error: 'int LAMMPS_NS::NeighRequest::half' is protected within this context 1621 | neighbor->requests[irequest]->half = 1; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:55:7: note: declared protected here 55 | int half; // half neigh list (set by default) | ^~~~ ../fix_backbone.cpp:1622:33: error: 'int LAMMPS_NS::NeighRequest::full' is protected within this context 1622 | neighbor->requests[irequest]->full = 0; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:56:7: note: declared protected here 56 | int full; // full neigh list | ^~~~ ../fix_backbone.cpp:1626:38: error: 'int LAMMPS_NS::NeighRequest::id' is protected within this context 1626 | neighbor->requests[irequest_full]->id = 2; | ^~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:35:7: note: declared protected here 35 | int id; // ID of request as stored by requestor | ^~ ../fix_backbone.cpp:1627:38: error: 'int LAMMPS_NS::NeighRequest::pair' is protected within this context 1627 | neighbor->requests[irequest_full]->pair = 0; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:46:7: note: declared protected here 46 | int pair; // pair is set by default | ^~~~ ../fix_backbone.cpp:1628:38: error: 'int LAMMPS_NS::NeighRequest::fix' is protected within this context 1628 | neighbor->requests[irequest_full]->fix = 1; | ^~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:47:7: note: declared protected here 47 | int fix; | ^~~ ../fix_backbone.cpp:1629:38: error: 'int LAMMPS_NS::NeighRequest::half' is protected within this context 1629 | neighbor->requests[irequest_full]->half = 0; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:55:7: note: declared protected here 55 | int half; // half neigh list (set by default) | ^~~~ ../fix_backbone.cpp:1630:38: error: 'int LAMMPS_NS::NeighRequest::full' is protected within this context 1630 | neighbor->requests[irequest_full]->full = 1; | ^~~~ In file included from ../fix_backbone.cpp:25: ../neigh_request.h:56:7: note: declared protected here 56 | int full; // full neigh list | ^~~~ ../fix_backbone.cpp: In function 'double atan2(double, double)': ../fix_backbone.cpp:1732:17: warning: converting to non-pointer type 'double' from NULL [-Wconversion-null] 1732 | else return NULL; | ^~~~ ../fix_backbone.cpp: In member function 'double LAMMPS_NS::FixBackbone::compute_native_ixn(double, int, int, int, int, double, double)': ../fix_backbone.cpp:5050:1: warning: control reaches end of non-void function [-Wreturn-type] 5050 | } | ^ make[1]: [Makefile:114: fix_backbone.o] Error 1 make[1]: Leaving directory '/mnt/home/jlindsay/programs/LAMMPS/lammps-23Jun2022/src/Obj_serial' make: [Makefile:393: serial] Error 2


Thanks, Justin Lindsay

drelatgithub commented 1 year ago

Thanks for your report. However, this is the repository for the documents of a different software MEDYAN. Could you migrate this ticket to https://github.com/adavtyan/awsemmd/issues?

rlindsa2 commented 1 year ago

Yes, so sorry for the mixup.

Thank you, Justin

On Thu, Mar 2, 2023 at 12:16 PM Haoran Ni @.***> wrote:

Thanks for your report. However, this is the repository for the documents of a different software MEDYAN https://medyan.org. Could you migrate this ticket to https://github.com/adavtyan/awsemmd/issues?

— Reply to this email directly, view it on GitHub https://github.com/medyan-dev/medyan-public/issues/16#issuecomment-1452231505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXYR54TEABWYCBRDQPD63VTW2DIXTANCNFSM6AAAAAAVNUYHLE . You are receiving this because you authored the thread.Message ID: @.***>

rlindsa2 commented 1 year ago

Posted in wrong place.