join lines, whitespace

This commit is contained in:
Axel Kohlmeyer
2022-01-20 16:04:26 -05:00
parent 0b24c5b498
commit dbe267cb88

View File

@ -303,8 +303,7 @@ void FixIntel::init()
if (force->pair_match("^hybrid", 0) != nullptr) {
_pair_hybrid_flag = 1;
if (force->newton_pair != 0 && force->pair->no_virial_fdotr_compute)
error->all(FLERR,
"Intel package requires fdotr virial with newton on.");
error->all(FLERR,"Intel package requires fdotr virial with newton on.");
} else
_pair_hybrid_flag = 0;
@ -325,8 +324,7 @@ void FixIntel::init()
_pair_hybrid_zero = 0;
if (force->newton_pair == 0) _pair_hybrid_flag = 0;
if (nstyles > 1)
error->all(FLERR,
"Currently, cannot offload more than one intel style with hybrid.");
error->all(FLERR,"Currently, cannot offload more than one intel style with hybrid.");
}
#endif
@ -356,15 +354,12 @@ void FixIntel::init()
void FixIntel::setup(int vflag)
{
if (neighbor->style != Neighbor::BIN)
error->all(FLERR,
"Currently, neighbor style BIN must be used with Intel package.");
error->all(FLERR,"Currently, neighbor style BIN must be used with Intel package.");
if (vflag > 3)
error->all(FLERR,
"Cannot currently get per-atom virials with Intel package.");
error->all(FLERR,"Cannot currently get per-atom virials with Intel package.");
#ifdef _LMP_INTEL_OFFLOAD
if (neighbor->exclude_setting() != 0)
error->all(FLERR,
"Currently, cannot use neigh_modify exclude with Intel package offload.");
error->all(FLERR,"Currently, cannot use neigh_modify exclude with Intel package offload.");
post_force(vflag);
#endif
}
@ -505,8 +500,7 @@ void FixIntel::bond_init_check()
{
if ((_offload_balance != 0.0) && (atom->molecular != Atom::ATOMIC)
&& (force->newton_pair != force->newton_bond))
error->all(FLERR,
"INTEL package requires same setting for newton bond and non-bond.");
error->all(FLERR,"INTEL package requires same setting for newton bond and non-bond.");
int intel_pair = 0;
if (force->pair_match("/intel$", 0) != nullptr)
@ -786,8 +780,7 @@ void FixIntel::add_oresults(const ft * _noalias const f_in,
if (f_in[1].w == 1)
error->all(FLERR,"Bad matrix inversion in mldivide3");
else
error->all(FLERR,
"Sphere particles not yet supported for gayberne/intel");
error->all(FLERR,"Sphere particles not yet supported for gayberne/intel");
}
}
@ -1043,8 +1036,7 @@ void FixIntel::output_timing_data() {
timers[TIME_OFFLOAD_PAIR];
double tt = MAX(ht,ct);
if (timers[TIME_OFFLOAD_LATENCY] / tt > 0.07 && _separate_coi == 0)
error->warning(FLERR,
"Leaving a core free can improve performance for offload");
error->warning(FLERR,"Leaving a core free can improve performance for offload");
}
fprintf(_tscreen, "------------------------------------------------\n");
}
@ -1214,8 +1206,7 @@ int FixIntel::set_host_affinity(const int nomp)
int subscription = nthreads * ppn;
if (subscription > ncores) {
if (rank == 0)
error->warning(FLERR,
"More MPI tasks/OpenMP threads than available cores");
error->warning(FLERR,"More MPI tasks/OpenMP threads than available cores");
return 0;
}
if (subscription == ncores)