diff --git a/src/neighbor.cpp b/src/neighbor.cpp index 6363902541..3e6db59aa9 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -2978,6 +2978,14 @@ bigint Neighbor::get_nneigh_half() return nneighhalf; } +/* ---------------------------------------------------------------------- + return the pointer containing the last positions stored by the NL builder +------------------------------------------------------------------------- */ +double **Neighbor::get_xhold() +{ + return xhold; +} + /* ---------------------------------------------------------------------- add pair of atoms to bondlist array will only persist until the next neighbor build diff --git a/src/neighbor.h b/src/neighbor.h index 20fb615ae0..a996042cd9 100644 --- a/src/neighbor.h +++ b/src/neighbor.h @@ -179,6 +179,7 @@ class Neighbor : protected Pointers { double memory_usage(); bigint last_setup_bins; // step of last neighbor::setup_bins() call + double **get_xhold(); // access the latest-computed neighbor list positions protected: int me, nprocs;