LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Error while compilation of lammps package - user misc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Error while compilation of lammps package - user misc.


From: "R. Varsha" <varsharani.0909@...24...>
Date: Sun, 15 Oct 2017 21:37:25 +0530

I used open mpi also. The different error is coming.

On Sun, Oct 15, 2017 at 9:35 PM, R. Varsha <varsharani.0909@...24...> wrote:
Thanks for suggestions. But its my request that reply on mailing list, not personally.

On Sun, Oct 15, 2017 at 9:32 PM, Rajesh <creativeidleminds@...24...> wrote:
Try with other option or compile with open mpi.

On Oct 15, 2017 21:30, "R. Varsha" <varsharani.0909@...24...> wrote:
Sir,
After deleting of those files, still the error has occurred.

 mpiicc -g -O3   -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1    -c ../pair_list.cpp
../pair_list.cpp(88): error: expected a ";"
    const dbl3_t * _noalias const x = (dbl3_t *) atom->x[0];
                            ^

../pair_list.cpp(89): error: "restrict" has already been declared in the current scope
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
             ^

../pair_list.cpp(89): error: expected a ";"
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
                      ^

../pair_list.cpp(114): error: identifier "x" is undefined
      const double dx = x[i].x - x[j].x;
                        ^

../pair_list.cpp(160): error: identifier "f" is undefined
          f[i].x += dx*fpair;
          ^

../pair_list.cpp(166): error: identifier "f" is undefined
          f[j].x -= dx*fpair;
          ^

compilation aborted for ../pair_list.cpp (code 2)
make[1]: *** [pair_list.o] Error 2
make[1]: Leaving directory `/-----------------------------------/lammps-11Aug17/src/Obj_mpi'

make: *** [mpi] Error 2


On Sun, Oct 15, 2017 at 9:15 PM, Rajesh <creativeidleminds@...24...> wrote:
If you don't want to change the makefile, you need to delete the offending file(s) (e.g. pair_list.h and pair_list.cpp in this case).

On Sun, Oct 15, 2017 at 8:16 PM, R. Varsha <varsharani.0909@...24...> wrote:
Hello Rajesh,
Thanks for your kind response. I have visited the link which you sent. Can you tell me where I have to use "-restrict" flag.?



Thanks
R. Varsha

On Sun, Oct 15, 2017 at 8:02 PM, Rajesh <creativeidleminds@...24...> wrote:

On Sun, Oct 15, 2017 at 7:57 PM, R. Varsha <varsharani.0909@...33....24...> wrote:
Hello all,

To resolve the error regarding fix efield command, I was installing the user-misc package. During compilation of the package I found the following errors-


mpiicc -g -O3   -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1    -c ../pair_list.cpp
../pair_list.cpp(88): error: expected a ";"
    const dbl3_t * _noalias const x = (dbl3_t *) atom->x[0];
                            ^

../pair_list.cpp(89): error: "restrict" has already been declared in the current scope
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
             ^

../pair_list.cpp(89): error: expected a ";"
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
                      ^

../pair_list.cpp(114): error: identifier "x" is undefined
      const double dx = x[i].x - x[j].x;
                        ^

../pair_list.cpp(160): error: identifier "f" is undefined
          f[i].x += dx*fpair;
          ^

../pair_list.cpp(166): error: identifier "f" is undefined
          f[j].x -= dx*fpair;
          ^

compilation aborted for ../pair_list.cpp (code 2)
make[1]: *** [pair_list.o] Error 2
make[1]: Leaving directory `/--------------------------------------/lammps-11Aug17/src/Obj_mpi'
make: *** [mpi] Error 2

Can anyone help me out of this.?
I would be always thankful to you people.


Regards,
R. Varsha

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
lammps-users mailing list
lammps-users@...655....net
https://lists.sourceforge.net/lists/listinfo/lammps-users