From f7514ce35876dab8f92bb1aaacf1445d7dee28e2 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 2 Mar 2022 19:06:08 -0500 Subject: [PATCH] make friends for access to instance_me member --- src/compute.h | 2 ++ src/fix.h | 2 ++ src/pair.h | 1 + 3 files changed, 5 insertions(+) diff --git a/src/compute.h b/src/compute.h index ef57754b18..3d6323b3d1 100644 --- a/src/compute.h +++ b/src/compute.h @@ -19,6 +19,8 @@ namespace LAMMPS_NS { class Compute : protected Pointers { + friend class Neighbor; + public: // clang-format off enum { diff --git a/src/fix.h b/src/fix.h index a83b032172..34ef32207d 100644 --- a/src/fix.h +++ b/src/fix.h @@ -19,6 +19,8 @@ namespace LAMMPS_NS { class Fix : protected Pointers { + friend class Neighbor; + public: static int instance_total; // # of Fix classes ever instantiated diff --git a/src/pair.h b/src/pair.h index a61af0c1da..f4aa82a586 100644 --- a/src/pair.h +++ b/src/pair.h @@ -33,6 +33,7 @@ class Pair : protected Pointers { friend class PairHybridScaled; friend class ThrOMP; friend class Info; + friend class Neighbor; public: static int instance_total; // # of Pair classes ever instantiated