Commit 50a82bb3 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

address uninitialized variable issues pointed out by valgrind/coverity

parent 5909bd54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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) {