Removed typedef nbnxn_search_t and unused alloc/free functions.
Change-Id: I07436fd909867d2db9ff41b741b4ebc218623858
}
}
-void nbnxn_get_ncells(nbnxn_search_t nbs, int *ncx, int *ncy)
+void nbnxn_get_ncells(const nbnxn_search *nbs, int *ncx, int *ncy)
{
*ncx = nbs->grid[0].numCells[XX];
*ncy = nbs->grid[0].numCells[YY];
return gmx::constArrayRefFromArray(nbs->a.data(), numIndices);
}
-void nbnxn_set_atomorder(nbnxn_search_t nbs)
+void nbnxn_set_atomorder(nbnxn_search *nbs)
{
/* Set the atom order for the home cell (index 0) */
nbnxn_grid_t *grid = &nbs->grid[0];
struct gmx_mtop_t;
struct interaction_const_t;
struct nbnxn_pairlist_set_t;
+struct nbnxn_search;
struct nonbonded_verlet_t;
struct t_blocka;
struct t_commrec;
gmx::ArrayRef<const gmx::RVec> x);
/*! \brief Returns the number of x and y cells in the local grid */
-void nbnxn_get_ncells(nbnxn_search_t nbs, int *ncx, int *ncy);
+void nbnxn_get_ncells(const nbnxn_search *nbs, int *ncx, int *ncy);
/*! \brief Returns the order indices of the atoms on the pairlist search grid */
gmx::ArrayRef<const int> nbnxn_get_atomorder(const nbnxn_search* nbs);
/*! \brief Renumbers the atom indices on the grid to consecutive order */
-void nbnxn_set_atomorder(nbnxn_search_t nbs);
+void nbnxn_set_atomorder(nbnxn_search *nbs);
/*! \brief Returns the index position of the atoms on the pairlist search grid */
gmx::ArrayRef<const int> nbnxn_get_gridindices(const nbnxn_search* nbs);
nbs_cycle_clear(cc);
}
-nbnxn_search *nbnxn_init_search(int ePBC,
- const ivec *n_dd_cells,
- const gmx_domdec_zones_t *zones,
- gmx_bool bFEP,
- int nthread_max)
-{
- return new nbnxn_search(ePBC, n_dd_cells, zones, bFEP, nthread_max);
-}
-
static void init_buffer_flags(nbnxn_buffer_flags_t *flags,
int natoms)
{
int dummy[16];
} gmx_cache_protect_t;
-/* Abstract type for pair searching data */
-typedef struct nbnxn_search * nbnxn_search_t;
-
-/* Function that should return a pointer *ptr to memory
- * of size nbytes.
- * Error handling should be done within this function.
- */
-typedef void nbnxn_alloc_t (void **ptr, size_t nbytes);
-
-/* Function that should free the memory pointed to by *ptr.
- * NULL should not be passed to this function.
- */
-typedef void nbnxn_free_t (void *ptr);
-
/* This is the actual cluster-pair list j-entry.
* cj is the j-cluster.
* The interaction bits in excl are indexed i-major, j-minor.
#include "locality.h"
-struct gmx_domdec_zones_t;
-struct gmx_groups_t;
-struct nbnxn_atomdata_t;
struct nbnxn_pairlist_set_t;
-struct nbnxn_search;
-struct t_blocka;
-struct t_nrnb;
-
-/* Function that should return a pointer *ptr to memory
- * of size nbytes.
- * Error handling should be done within this function.
- */
-typedef void nbnxn_alloc_t (void **ptr, size_t nbytes);
-
-/* Function that should free the memory pointed to by *ptr.
- * NULL should not be passed to this function.
- */
-typedef void nbnxn_free_t (void *ptr);
-
-/* Allocates and initializes a pair search data structure */
-nbnxn_search *nbnxn_init_search(int ePBC,
- const ivec *n_dd_cells,
- const gmx_domdec_zones_t *zones,
- gmx_bool bFEP,
- int nthread_max);
/* Initializes a set of pair lists stored in nbnxn_pairlist_set_t
*