Ignore:
Timestamp:
Apr 8, 2009, 11:27:50 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
37a050
Parents:
8b05c6
Message:

Lots of bugfixes, some name changes and new functions

BUGFIX:

  • molecule::molecule did not initialise IndexNr and ActiveFlag
  • molecule::SetNameFromFilename() was missing terminal \0 at end of constructed name
  • molecule::CenterInBox() translates and zeros Center
  • molecule::CenterEdge() also zeros Center
  • molecule::CenterOrigin(): dropped parameter *center as molecule::Center is now used, translated and center then set to zero

Changes:

New:

  • molecule:CenterAtVector() adds given vector to molecule::Center
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.hpp

    r8b05c6 rd618b5  
    251251        bool CenterInBox(ofstream *out, Vector *BoxLengths);
    252252        void CenterEdge(ofstream *out, Vector *max);
    253         void CenterOrigin(ofstream *out, Vector *max);
    254         void CenterGravity(ofstream *out, Vector *max);
     253        void CenterOrigin(ofstream *out);
     254        void CenterPeriodic(ofstream *out);
     255        void CenterAtVector(ofstream *out, Vector *newcenter);
    255256        void Translate(const Vector *x);
    256257        void Mirror(const Vector *x);
    257258        void Align(Vector *n);
    258259        void Scale(double **factor);
    259         void DetermineCenter(Vector &center);
     260        void DeterminePeriodicCenter(Vector &center);
    260261        Vector * DetermineCenterOfGravity(ofstream *out);
    261262        Vector * DetermineCenterOfAll(ofstream *out);
    262         void SetNameFromFilename(char *filename);
     263        void SetNameFromFilename(const char *filename);
    263264        void SetBoxDimension(Vector *dim);
    264265        double * ReturnFullMatrixforSymmetric(double *cell_size);
Note: See TracChangeset for help on using the changeset viewer.