fix int vs. bigint issue and add NULL file pointer check to dynamical_matrix
This commit is contained in:
@ -316,9 +316,10 @@ void DynamicalMatrix::calculateMatrix()
|
|||||||
|
|
||||||
void DynamicalMatrix::writeMatrix(double **dynmat)
|
void DynamicalMatrix::writeMatrix(double **dynmat)
|
||||||
{
|
{
|
||||||
if (me != 0)
|
if (me != 0 || fp == NULL) return;
|
||||||
return;
|
|
||||||
// print file comment lines
|
// print file comment lines
|
||||||
|
|
||||||
if (!binaryflag && fp) {
|
if (!binaryflag && fp) {
|
||||||
clearerr(fp);
|
clearerr(fp);
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
|
|||||||
@ -54,10 +54,10 @@ namespace LAMMPS_NS {
|
|||||||
double conv_mass;
|
double conv_mass;
|
||||||
double del;
|
double del;
|
||||||
int igroup,groupbit;
|
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 scaleflag;
|
||||||
int me;
|
int me;
|
||||||
bigint dynlen;
|
|
||||||
int *groupmap;
|
int *groupmap;
|
||||||
|
|
||||||
int compressed; // 1 if dump file is written compressed, 0 no
|
int compressed; // 1 if dump file is written compressed, 0 no
|
||||||
|
|||||||
Reference in New Issue
Block a user