Added cautionary comments
This commit is contained in:
2
src/USER-SMD/fix_smd_tlsph_reference_configuration.cpp
Normal file → Executable file
2
src/USER-SMD/fix_smd_tlsph_reference_configuration.cpp
Normal file → Executable file
@ -450,6 +450,7 @@ int FixSMD_TLSPH_ReferenceConfiguration::unpack_exchange(int nlocal, double *buf
|
||||
|
||||
int FixSMD_TLSPH_ReferenceConfiguration::pack_restart(int i, double *buf) {
|
||||
int m = 0;
|
||||
// pack buf[0] this way b/c other fixes unpack it
|
||||
buf[m++] = 4 * npartner[i] + 2;
|
||||
buf[m++] = npartner[i];
|
||||
for (int n = 0; n < npartner[i]; n++) {
|
||||
@ -470,6 +471,7 @@ void FixSMD_TLSPH_ReferenceConfiguration::unpack_restart(int /*nlocal*/, int /*n
|
||||
// ipage = NULL if being called from granular pair style init()
|
||||
|
||||
// skip to Nth set of extra values
|
||||
// unpack the Nth first values this way b/c other fixes pack them
|
||||
|
||||
// double **extra = atom->extra;
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user