allocate extra_fields

This commit is contained in:
Eddy Barraud
2024-06-07 09:05:11 +02:00
parent 7cb73ca1a1
commit 001063250e

View File

@ -70,10 +70,12 @@ int DPDChargedT::init(const int ntypes,
}
if (onetype<0) onetype=0;
#endif
int extra_fields = 4; // round up to accomodate quadruples of numtyp values
// q
int success;
success=this->init_atomic(nlocal,nall,max_nbors,maxspecial,cell_size,
gpu_split,_screen,dpd_charged,"k_dpd_charged",onetype);
gpu_split,_screen,dpd_charged,"k_dpd_charged",onetype, extra_fields);
if (success!=0)
return success;