revert permission change and replace 'b/c' with 'because'

This commit is contained in:
Axel Kohlmeyer
2020-08-10 11:37:52 -04:00
parent d0720794a6
commit e3beec8b95
19 changed files with 47 additions and 47 deletions

20
src/fix_neigh_history.cpp Executable file → Normal file
View File

@ -149,7 +149,7 @@ void FixNeighHistory::init()
error->all(FLERR,"Neighbor history requires atoms have IDs");
// this fix must come before any fix which migrates atoms in its pre_exchange()
// b/c this fix's pre_exchange() creates per-atom data structure
// because this fix's pre_exchange() creates per-atom data structure
// that data must be current for atom migration to carry it along
for (int i = 0; i < modify->nfix; i++) {
@ -215,7 +215,7 @@ void FixNeighHistory::setup_post_neighbor()
called during run before atom exchanges, including for restart files
called at end of run via post_run()
do not call during setup of run (setup_pre_exchange)
b/c there is no guarantee of a current NDS (even on continued run)
because there is no guarantee of a current NDS (even on continued run)
if run command does a 2nd run with pre = no, then no neigh list
will be built, but old neigh list will still have the info
onesided and newton on and newton off versions
@ -242,7 +242,7 @@ void FixNeighHistory::pre_exchange_onesided()
double *allvalues,*onevalues;
// NOTE: all operations until very end are with nlocal_neigh <= current nlocal
// b/c previous neigh list was built with nlocal_neigh
// because previous neigh list was built with nlocal_neigh
// nlocal can be larger if other fixes added atoms at this pre_exchange()
// clear two paged data structures
@ -335,7 +335,7 @@ void FixNeighHistory::pre_exchange_newton()
// NOTE: all operations until very end are with
// nlocal_neigh <= current nlocal and nall_neigh
// b/c previous neigh list was built with nlocal_neigh & nghost_neigh
// because previous neigh list was built with nlocal_neigh & nghost_neigh
// nlocal can be larger if other fixes added atoms at this pre_exchange()
// clear two paged data structures
@ -430,7 +430,7 @@ void FixNeighHistory::pre_exchange_newton()
// perform reverse comm to augment
// owned atom partner/valuepartner with ghost info
// use variable variant b/c size of packed data can be arbitrarily large
// use variable variant because size of packed data can be arbitrarily large
// if many touching neighbors for large particle
commflag = PERPARTNER;
@ -463,7 +463,7 @@ void FixNeighHistory::pre_exchange_no_newton()
double *allvalues,*onevalues,*jvalues;
// NOTE: all operations until very end are with nlocal_neigh <= current nlocal
// b/c previous neigh list was built with nlocal_neigh
// because previous neigh list was built with nlocal_neigh
// nlocal can be larger if other fixes added atoms at this pre_exchange()
// clear two paged data structures
@ -708,10 +708,10 @@ void FixNeighHistory::grow_arrays(int nmax)
void FixNeighHistory::copy_arrays(int i, int j, int /*delflag*/)
{
// just copy pointers for partner and valuepartner
// b/c can't overwrite chunk allocation inside ipage_atom,dpage_atom
// because can't overwrite chunk allocation inside ipage_atom,dpage_atom
// incoming atoms in unpack_exchange just grab new chunks
// so are orphaning chunks for migrating atoms
// OK, b/c will reset ipage_atom,dpage_atom on next reneighboring
// OK, because will reset ipage_atom,dpage_atom on next reneighboring
npartner[j] = npartner[i];
partner[j] = partner[i];
@ -853,7 +853,7 @@ int FixNeighHistory::pack_restart(int i, double *buf)
memcpy(&buf[m],&valuepartner[i][dnum*n],dnumbytes);
m += dnum;
}
// pack buf[0] this way b/c other fixes unpack it
// pack buf[0] this way because other fixes unpack it
buf[0] = m;
return m;
}
@ -869,7 +869,7 @@ void FixNeighHistory::unpack_restart(int nlocal, int nth)
if (ipage_atom == NULL) allocate_pages();
// skip to Nth set of extra values
// unpack the Nth first values this way b/c other fixes pack them
// unpack the Nth first values this way because other fixes pack them
double **extra = atom->extra;