initialize _need_tag differently.
This commit is contained in:
@ -473,14 +473,14 @@ void FixIntel::pair_init_check(const bool cdmessage)
|
|||||||
char kmode[80];
|
char kmode[80];
|
||||||
if (_precision_mode == PREC_MODE_SINGLE) {
|
if (_precision_mode == PREC_MODE_SINGLE) {
|
||||||
strcpy(kmode, "single");
|
strcpy(kmode, "single");
|
||||||
|
get_single_buffers()->need_tag(need_tag);
|
||||||
} else if (_precision_mode == PREC_MODE_MIXED) {
|
} else if (_precision_mode == PREC_MODE_MIXED) {
|
||||||
strcpy(kmode, "mixed");
|
strcpy(kmode, "mixed");
|
||||||
|
get_mixed_buffers()->need_tag(need_tag);
|
||||||
} else {
|
} else {
|
||||||
strcpy(kmode, "double");
|
strcpy(kmode, "double");
|
||||||
|
get_double_buffers()->need_tag(need_tag);
|
||||||
}
|
}
|
||||||
get_double_buffers()->need_tag(need_tag);
|
|
||||||
get_mixed_buffers()->need_tag(need_tag);
|
|
||||||
get_single_buffers()->need_tag(need_tag);
|
|
||||||
|
|
||||||
_pair_intel_count++;
|
_pair_intel_count++;
|
||||||
|
|
||||||
|
|||||||
@ -203,6 +203,8 @@ void IntelBuffers<flt_t, acc_t>::free_nmax()
|
|||||||
template <class flt_t, class acc_t>
|
template <class flt_t, class acc_t>
|
||||||
void IntelBuffers<flt_t, acc_t>::_grow_nmax(const int offload_end)
|
void IntelBuffers<flt_t, acc_t>::_grow_nmax(const int offload_end)
|
||||||
{
|
{
|
||||||
|
if (lmp->atom->molecular) _need_tag = 1;
|
||||||
|
else _need_tag = 0;
|
||||||
#ifdef _LMP_INTEL_OFFLOAD
|
#ifdef _LMP_INTEL_OFFLOAD
|
||||||
free_nmax();
|
free_nmax();
|
||||||
int size = lmp->atom->nmax;
|
int size = lmp->atom->nmax;
|
||||||
|
|||||||
Reference in New Issue
Block a user