Unverified Commit 536e7a96 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warning and provide extra comment about optimization

parent 45902772
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -109,10 +109,11 @@ int MinCG::iterate(int maxiter)
        dotall[1] += fextra[i]*gextra[i];
      }

    fdotf = 0.0;
    if (update->ftol > 0.0) {
      if (normstyle == MAX) fdotf = fnorm_max();        // max force norm
      else if (normstyle == INF) fdotf = fnorm_inf();   // infinite force norm
      else if (normstyle == TWO) fdotf = dotall[0];     // Euclidean force 2-norm
      else if (normstyle == TWO) fdotf = dotall[0];     // same as fnorm_sqr(), Euclidean force 2-norm
      else error->all(FLERR,"Illegal min_modify command");
      if (fdotf < update->ftol*update->ftol) return FTOL;
    }