Compile error: pair_hybrid.h

Dear Lammps users,

I would like to report a compile problem with the newest version of Lammps (28Jul15) built with USER-INTEL:

…/fix_intel.cpp(267): error #308: member “LAMMPS_NS::PairHybrid::nstyles” (declared at line 56 of “…/pair_hybrid.h”) is inaccessible
for (int i = 0; i < hybrid->nstyles; i++)

…/fix_intel.cpp(268): error #308: member “LAMMPS_NS::PairHybrid::keywords” (declared at line 58 of “…/pair_hybrid.h”) is inaccessible
for (int i = 0; i < hybrid->nstyles; i++)
^

…/fix_intel.cpp(273): error #308: member “LAMMPS_NS::PairHybrid::keywords” (declared at line 58 of “…/pair_hybrid.h”) is inaccessible
if (strstr(hybrid->keywords[i], “/intel”) != NULL)
^
compilation aborted for …/fix_intel.cpp (code 2)

Tried to build it without USER-INTEL, everything seems to work just fine.

Regards,

Vitaly

Dear Lammps users,

I would like to report a compile problem with the newest version of Lammps
(28Jul15) built with USER-INTEL:

../fix_intel.cpp(267): error #308: member "LAMMPS_NS::PairHybrid::nstyles"
(declared at line 56 of "../pair_hybrid.h") is inaccessible
for (int i = 0; i < hybrid->nstyles; i++)

../fix_intel.cpp(268): error #308: member "LAMMPS_NS::PairHybrid::keywords"
(declared at line 58 of "../pair_hybrid.h") is inaccessible
      for (int i = 0; i < hybrid->nstyles; i++)
                                  ^

../fix_intel.cpp(273): error #308: member "LAMMPS_NS::PairHybrid::keywords"
(declared at line 58 of "../pair_hybrid.h") is inaccessible
        if (strstr(hybrid->keywords[i], "/intel") != NULL)
                           ^
compilation aborted for ../fix_intel.cpp (code 2)

Tried to build it without USER-INTEL, everything seems to work just fine.

please try the following change:

diff --git a/src/pair_hybrid.h b/src/pair_hybrid.h
index bc41b99..27eaf47 100644
--- a/src/pair_hybrid.h
+++ b/src/pair_hybrid.h
@@ -27,6 +27,7 @@ namespace LAMMPS_NS {

class PairHybrid : public Pair {
   friend class FixGPU;
+ friend class FixIntel;
   friend class FixOMP;
   friend class Force;
   friend class Respa;

axel.

The problem is resolved now, many thanks!

–Vitaly

will be in next patch

Steve