Merge branch 'lammps:master' into type-labels

This commit is contained in:
Jacob Gissinger
2021-09-30 09:44:18 -04:00
committed by GitHub
1396 changed files with 36153 additions and 25022 deletions

View File

@ -1389,7 +1389,7 @@ void ReadData::bonds(int firstpass)
int *count = nullptr;
if (firstpass) {
memory->create(count,nlocal,"read_data:count");
memset(count,0,nlocal*sizeof(int));
if (count) memset(count,0,nlocal*sizeof(int));
}
// read and process bonds
@ -1467,7 +1467,7 @@ void ReadData::angles(int firstpass)
int *count = nullptr;
if (firstpass) {
memory->create(count,nlocal,"read_data:count");
memset(count,0,nlocal*sizeof(int));
if (count) memset(count,0,nlocal*sizeof(int));
}
// read and process angles
@ -1545,7 +1545,7 @@ void ReadData::dihedrals(int firstpass)
int *count = nullptr;
if (firstpass) {
memory->create(count,nlocal,"read_data:count");
memset(count,0,nlocal*sizeof(int));
if (count) memset(count,0,nlocal*sizeof(int));
}
// read and process dihedrals
@ -1623,7 +1623,7 @@ void ReadData::impropers(int firstpass)
int *count = nullptr;
if (firstpass) {
memory->create(count,nlocal,"read_data:count");
memset(count,0,nlocal*sizeof(int));
if (count) memset(count,0,nlocal*sizeof(int));
}
// read and process impropers