Skip to content

What kind of error "‘class LAMMPS_NS::Force’ has no member named ‘numeric’" in compiling amp_compatible branch with gcc? #20

Description

@hopefulp

I have compiled openmpi-4.0.5 and fftw-3.3.9 with gcc 10.2.1 (debian).
In compiling PROPhet, amp-compatible branch, I found the errors like this,

NF_node.h: In member function ‘std::complex Network_function_node::dout_din(const std::vector&, double&)’:
NF_node.h:66:72: warning: no return statement in function returning non-void [-Wreturn-type]
66 | inline complex dout_din(const vector &in, REAL &deriv) { }
| ^
In file included from NN.h:47,
from pair_nn.cpp:63:
NN_node.h: In member function ‘double Neural_network_node::dout_din(const std::vector&, double&)’:
NN_node.h:83:63: warning: no return statement in function returning non-void [-Wreturn-type]
83 | inline REAL dout_din(const vector &in, REAL &deriv) { }
| ^
NN_node.h: In member function ‘int Neural_network_node::set_index(int)’:
NN_node.h:106:3: warning: no return statement in function returning non-void [-Wreturn-type]
106 | }
| ^
pair_nn.cpp: In member function ‘virtual void LAMMPS_NS::PairNN::coeff(int, char**)’:
pair_nn.cpp:230:26: error: ‘class LAMMPS_NS::Force’ has no member named ‘numeric’
230 | int this_type = force->numeric(FLERR, arg[0]);
| ^~~~~~~
pair_nn.cpp:233:23: error: ‘class LAMMPS_NS::Force’ has no member named ‘numeric’
233 | this_cut = force->numeric(FLERR,arg[2]);
| ^~~~~~~
pair_nn.cpp: In member function ‘virtual void LAMMPS_NS::PairNN::settings(int, char**)’:
pair_nn.cpp:506:24: error: ‘class LAMMPS_NS::Force’ has no member named ‘numeric’
506 | params.Rcut(force->numeric(FLERR,argv[0]));
| ^~~~~~~
make[1]: *** [Makefile:56: libPROPhet_lammps.a] Error 1

Main error seems to come from
force->numeric

How can I fix this errors?

Joonho

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions