gmx_ana_pos_t::~gmx_ana_pos_t() { sfree(x); sfree(v); sfree(f); gmx_ana_indexmap_deinit(&m); }
/*! * \param[in,out] pos Position data structure. * * Frees any memory allocated within \p pos. * The pointer \p pos itself is not freed. * * \see gmx_ana_pos_free() */ void gmx_ana_pos_deinit(gmx_ana_pos_t *pos) { pos->nr = 0; sfree(pos->x); pos->x = NULL; sfree(pos->v); pos->v = NULL; sfree(pos->f); pos->f = NULL; pos->nalloc_x = 0; gmx_ana_indexmap_deinit(&pos->m); }