Merge pull request #1354 from akohlmey/collected-small-fixes

Collected small fixes and updates for the next patch release
This commit is contained in:
Axel Kohlmeyer 2019-03-05 00:55:36 -05:00 committed by GitHub
commit bc4a80d9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -154,6 +154,7 @@ DumpCustomADIOS::~DumpCustomADIOS()
internal->fh.Close();
}
delete internal->ad;
delete internal;
}
/* ---------------------------------------------------------------------- */

View File

@ -316,9 +316,10 @@ void DynamicalMatrix::calculateMatrix()
void DynamicalMatrix::writeMatrix(double **dynmat)
{
if (me != 0)
return;
if (me != 0 || fp == NULL) return;
// print file comment lines
if (!binaryflag && fp) {
clearerr(fp);
for (int i = 0; i < 3; i++) {

View File

@ -54,10 +54,10 @@ namespace LAMMPS_NS {
double conv_mass;
double del;
int igroup,groupbit;
int gcount; // number of atoms in group
bigint gcount; // number of atoms in group
bigint dynlen; // rank of dynamical matrix
int scaleflag;
int me;
bigint dynlen;
int *groupmap;
int compressed; // 1 if dump file is written compressed, 0 no
@ -71,4 +71,4 @@ namespace LAMMPS_NS {
#endif //LMP_DYNAMICAL_MATRIX_H
#endif
#endif

View File

@ -35,7 +35,7 @@ class ComputePTMAtom : public Compute {
private:
int nmax;
int32_t input_flags;
smallint input_flags;
double rmsd_threshold;
class NeighList *list;
double **output;

View File

@ -11,6 +11,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#define PTM_NEIGHBOUR_ORDERING_H
#include <cstddef>
#include <stdint.h>
namespace ptm {