update programming style
This commit is contained in:
@ -296,9 +296,7 @@ void IntelBuffers<flt_t, acc_t>::free_list_ptrs()
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
template <class flt_t, class acc_t>
|
||||
void IntelBuffers<flt_t, acc_t>::grow_data3(NeighList *list,
|
||||
int *&numneighhalf,
|
||||
int *&cnumneigh)
|
||||
void IntelBuffers<flt_t, acc_t>::grow_data3(NeighList *list, int *&numneighhalf, int *&cnumneigh)
|
||||
{
|
||||
const int size = list->get_maxlocal();
|
||||
int list_num;
|
||||
@ -321,10 +319,8 @@ void IntelBuffers<flt_t, acc_t>::grow_data3(NeighList *list,
|
||||
lmp->memory->destroy(_neigh_list_ptrs[list_num].cnumneigh);
|
||||
lmp->memory->destroy(_neigh_list_ptrs[list_num].numneighhalf);
|
||||
}
|
||||
lmp->memory->create(_neigh_list_ptrs[list_num].cnumneigh, size,
|
||||
"_cnumneigh");
|
||||
lmp->memory->create(_neigh_list_ptrs[list_num].numneighhalf, size,
|
||||
"_cnumneigh");
|
||||
lmp->memory->create(_neigh_list_ptrs[list_num].cnumneigh, size, "_cnumneigh");
|
||||
lmp->memory->create(_neigh_list_ptrs[list_num].numneighhalf, size, "_cnumneigh");
|
||||
_neigh_list_ptrs[list_num].size = size;
|
||||
}
|
||||
numneighhalf = _neigh_list_ptrs[list_num].numneighhalf;
|
||||
@ -334,8 +330,7 @@ void IntelBuffers<flt_t, acc_t>::grow_data3(NeighList *list,
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
template <class flt_t, class acc_t>
|
||||
void IntelBuffers<flt_t, acc_t>::_grow_list_local(NeighList *list,
|
||||
const int three_body,
|
||||
void IntelBuffers<flt_t, acc_t>::_grow_list_local(NeighList *list, const int three_body,
|
||||
const int offload_end)
|
||||
{
|
||||
free_list_local();
|
||||
|
||||
@ -13,20 +13,22 @@
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#include "fix_balance.h"
|
||||
#include <cstring>
|
||||
#include "balance.h"
|
||||
#include "update.h"
|
||||
|
||||
#include "atom.h"
|
||||
#include "balance.h"
|
||||
#include "comm.h"
|
||||
#include "domain.h"
|
||||
#include "neighbor.h"
|
||||
#include "irregular.h"
|
||||
#include "error.h"
|
||||
#include "fix_store.h"
|
||||
#include "force.h"
|
||||
#include "irregular.h"
|
||||
#include "kspace.h"
|
||||
#include "modify.h"
|
||||
#include "fix_store.h"
|
||||
#include "neighbor.h"
|
||||
#include "rcb.h"
|
||||
#include "error.h"
|
||||
#include "update.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
using namespace FixConst;
|
||||
|
||||
Reference in New Issue
Block a user