I built the Reax under /lib and remade LAMMPS with Reax patch file, and get the lmp_g++_reax, and give it a go with the example input script'in.reax.rdx',
then got an Error:'Invalid pair style'
Here is my modified make file, is there something I missed here or elsewhere? Thanks
I built the Reax under /lib and remade LAMMPS with Reax patch file, and
get the lmp_g++_reax, and give it a go with the example input
script'in.reax.rdx',
then got an Error:'Invalid pair style'
Here is my modified make file, is there something I missed here or
elsewhere? Thanks
Hi, Alex, thank you for you advice, I already 'make yes-all', and reax is been installed. There are some new errors like
'reax_poten.F:(.text+0x1bda): undefined reference to '_gfortran_st_write', etc. What is the prolem again? Thank you in advance.
Hi, Alex, thank you for you advice, I already 'make yes-all', and reax is
been installed. There are some new errors like
'reax_poten.F:(.text+0x1bda): undefined reference to '_gfortran_st_write',
etc. What is the prolem again? Thank you in advance.
libreax.a is written in fortran, so you have to link the fortran
runtime library. if you link your executable with the fortran
compiler, this is done automatically. but lammps is written in c++
and thus linked with the c++ compiler (and c++ runtime), so you have
to add the fortran runtime library to the USRLIB, in your case
add -lgfortran after -lreax