Ignore:
Timestamp:
Jul 23, 2009, 12:32:48 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
f39735
Parents:
307290
Message:

Fix indentation from tabs to two spaces to prepare merging with MultipleMolecules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/vector.cpp

    r307290 r560995  
    327327  }
    328328  ost << ")";
    329         return ost;
     329  return ost;
    330330};
    331331
     
    517517bool Vector::MakeNormalVector(const Vector *y1)
    518518{
    519         bool result = false;
     519  bool result = false;
    520520  Vector x1;
    521521  x1.CopyVector(y1);
     
    523523  SubtractVector(&x1);
    524524  for (int i=NDIM;i--;)
    525           result = result || (fabs(x[i]) > MYEPSILON);
     525    result = result || (fabs(x[i]) > MYEPSILON);
    526526
    527527  return result;
     
    597597bool Vector::LSQdistance(Vector **vectors, int num)
    598598{
    599         int j;
    600 
    601         for (j=0;j<num;j++) {
    602                 cout << Verbose(1) << j << "th atom's vector: ";
    603                 (vectors[j])->Output((ofstream *)&cout);
    604                 cout << endl;
    605         }
     599  int j;
     600
     601  for (j=0;j<num;j++) {
     602    cout << Verbose(1) << j << "th atom's vector: ";
     603    (vectors[j])->Output((ofstream *)&cout);
     604    cout << endl;
     605  }
    606606
    607607  int np = 3;
    608         struct LSQ_params par;
     608  struct LSQ_params par;
    609609
    610610   const gsl_multimin_fminimizer_type *T =
     
    627627   /* Starting point */
    628628   par.vectors = vectors;
    629         par.num = num;
    630 
    631         for (i=NDIM;i--;)
    632                 gsl_vector_set(y, i, (vectors[0]->x[i] - vectors[1]->x[i])/2.);
     629  par.num = num;
     630
     631  for (i=NDIM;i--;)
     632    gsl_vector_set(y, i, (vectors[0]->x[i] - vectors[1]->x[i])/2.);
    633633
    634634   /* Initialize method and iterate */
     
    671671   gsl_multimin_fminimizer_free (s);
    672672
    673         return true;
     673  return true;
    674674};
    675675
Note: See TracChangeset for help on using the changeset viewer.