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 Original line Diff line number Diff line
@@ -197,7 +197,7 @@ void FixController::end_of_step()


  // invoke compute if not previously invoked
  // invoke compute if not previously invoked


  double current;
  double current = 0.0;


  if (pvwhich == COMPUTE) {
  if (pvwhich == COMPUTE) {
    if (pvindex == 0) {
    if (pvindex == 0) {
+1 −1
Original line number Original line Diff line number Diff line
@@ -898,7 +898,7 @@ double Variable::compute_equal(int ivar)
    error->all(FLERR,"Variable has circular dependency");
    error->all(FLERR,"Variable has circular dependency");
  eval_in_progress[ivar] = 1;
  eval_in_progress[ivar] = 1;


  double value;
  double value = 0.0;
  if (style[ivar] == EQUAL) value = evaluate(data[ivar][0],NULL);
  if (style[ivar] == EQUAL) value = evaluate(data[ivar][0],NULL);
  else if (style[ivar] == INTERNAL) value = dvalue[ivar];
  else if (style[ivar] == INTERNAL) value = dvalue[ivar];
  else if (style[ivar] == PYTHON) {
  else if (style[ivar] == PYTHON) {