Ignore:
Timestamp:
Aug 18, 2008, 8:35:11 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
e6971b
Parents:
d24e8f0
Message:

Splitting MatrrixContainer::ParseMatrix in ParseMatrix

ParseMatrix just parses only a given matrix into a given part of the MatrixContainer::matrix array).
ParseFragmentMatrix calls ParseMatrix for a sequence of numbered files containing the matrices.
ForceMatrix::ParseFragmentMatrix overrides the routine from MatrixContainer in order to handle the parsing of the last and one ma
trix in a special way
EnergyMatrix::ParseFragmentMatrix overrides the routine from MatrixContainer in order to handle the parsing of the last and one matrix in a special way
Realloc() was fixed: ReAlloc would break if given oldptr is NULL, but now we simply switch to doing a malloc instead and only admonishing the wrong call to ReAlloc instead of Malloc
analyser.cpp and joiner.cpp have been adapted to these new calling schemes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/parser.hpp

    rd24e8f0 r7b67a3  
    5151  ~MatrixContainer();
    5252 
    53   bool ParseMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     53  bool ParseMatrix(const char *name, int skiplines, int skipcolumns, int MatrixNr);
     54  virtual bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
    5455  bool AllocateMatrix(char *GivenHeader, int MCounter, int *RCounter, int CCounter);
    5556  bool ResetMatrix();
     
    7172    bool ParseIndices();
    7273    bool SumSubEnergy(class EnergyMatrix &Fragments, class EnergyMatrix *CorrectionFragments, class KeySetsContainer &KeySet, int Order, double sign);
     74    bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
    7375};
    7476
     
    7981    bool ParseIndices(char *name);
    8082    bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign);
     83    bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
    8184};
    8285
Note: See TracChangeset for help on using the changeset viewer.