Ignore:
Timestamp:
Sep 6, 2008, 3:08:32 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
b21e1f
Parents:
f9cd68
Message:

BUGFIX: config::SaveMPQC() used molecule::DetermineCenter() which relies on the created bond structure, causing segfault.

When storing a newly created configuration file, the bond structure needs not be present yet. Hence, we created the function molecule:DetermineCenterOfAll(), similar to molecule::DetermineCenterOfGravity() just without scaling by masses. This new function is now used instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.hpp

    rf9cd68 rd473c3  
    253253  void DetermineCenter(Vector &center);
    254254  Vector * DetermineCenterOfGravity(ofstream *out);
     255  Vector * DetermineCenterOfAll(ofstream *out);
    255256  void SetBoxDimension(Vector *dim);
    256257  double * ReturnFullMatrixforSymmetric(double *cell_size);
Note: See TracChangeset for help on using the changeset viewer.