address uninitialized variable issues pointed out by valgrind/coverity

This commit is contained in:
Axel Kohlmeyer 2016-08-22 15:49:33 -04:00
parent 5909bd5429
commit 50a82bb345
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ void FixController::end_of_step()
// invoke compute if not previously invoked
double current;
double current = 0.0;
if (pvwhich == COMPUTE) {
if (pvindex == 0) {

View File

@ -898,7 +898,7 @@ double Variable::compute_equal(int ivar)
error->all(FLERR,"Variable has circular dependency");
eval_in_progress[ivar] = 1;
double value;
double value = 0.0;
if (style[ivar] == EQUAL) value = evaluate(data[ivar][0],NULL);
else if (style[ivar] == INTERNAL) value = dvalue[ivar];
else if (style[ivar] == PYTHON) {