make sure data is initialized
This commit is contained in:
@ -47,7 +47,7 @@ static int cmptagint(const void *p1, const void *p2)
|
|||||||
|
|
||||||
void Group2Ndx::command(int narg, char **arg)
|
void Group2Ndx::command(int narg, char **arg)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp = nullptr;
|
||||||
|
|
||||||
if (narg < 1) error->all(FLERR,"Illegal group2ndx command");
|
if (narg < 1) error->all(FLERR,"Illegal group2ndx command");
|
||||||
|
|
||||||
@ -57,8 +57,7 @@ void Group2Ndx::command(int narg, char **arg)
|
|||||||
if (comm->me == 0) {
|
if (comm->me == 0) {
|
||||||
fp = fopen(arg[0], "w");
|
fp = fopen(arg[0], "w");
|
||||||
if (fp == nullptr)
|
if (fp == nullptr)
|
||||||
error->one(FLERR,"Cannot open index file for writing: {}",
|
error->one(FLERR,"Cannot open index file for writing: {}", utils::getsyserror());
|
||||||
utils::getsyserror());
|
|
||||||
utils::logmesg(lmp,"Writing groups to index file {}:\n",arg[0]);
|
utils::logmesg(lmp,"Writing groups to index file {}:\n",arg[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -51,6 +51,7 @@ FixNVTSllodEff::FixNVTSllodEff(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
modify->add_compute(fmt::format("{} {} tmp/deform/eff",
|
modify->add_compute(fmt::format("{} {} tmp/deform/eff",
|
||||||
id_temp,group->names[igroup]));
|
id_temp,group->names[igroup]));
|
||||||
tcomputeflag = 1;
|
tcomputeflag = 1;
|
||||||
|
nondeformbias = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user