Ignore:
Timestamp:
Jul 23, 2009, 9:14:18 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
3b470f
Parents:
2218dca (diff), 6ce722 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'HessianMatrix'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/parser.hpp

    r2218dca r09f4dc  
    1919
    2020#define EnergySuffix ".energy.all"
     21#define EnergyFragmentSuffix ".energyfragment.all"
     22#define ForcesSuffix ".forces.all"
     23#define ForceFragmentSuffix ".forcefragment.all"
    2124#define HcorrectionSuffix ".Hcorrection.all"
    22 #define ForcesSuffix ".forces.all"
     25#define HcorrectionFragmentSuffix ".Hcorrectionfragment.all"
     26#define HessianSuffix ".hessian_xx.all"
     27#define HessianFragmentSuffix ".hessianfragment_xx.all"
     28#define OrderSuffix ".Order"
    2329#define ShieldingSuffix ".sigma_all.csv"
    2430#define ShieldingPASSuffix ".sigma_all_PAS.csv"
     
    3036#define ChiPASFragmentSuffix ".chi_all_PAS_fragment.all"
    3137#define TimeSuffix ".speed"
    32 #define EnergyFragmentSuffix ".energyfragment.all"
    33 #define HcorrectionFragmentSuffix ".Hcorrectionfragment.all"
    34 #define ForceFragmentSuffix ".forcefragment.all"
    35 #define OrderSuffix ".Order"
    3638
    3739// ======================================= FUNCTIONS ==========================================
     
    4749    double ***Matrix;
    4850    int **Indices;
    49     char *Header;
     51    char **Header;
    5052    int MatrixCounter;
    5153    int *RowCounter;
    52     int ColumnCounter;
     54    int *ColumnCounter;
    5355 
    5456  MatrixContainer();
    5557  ~MatrixContainer();
    5658 
     59  bool InitialiseIndices(class MatrixContainer *Matrix = NULL);
    5760  bool ParseMatrix(const char *name, int skiplines, int skipcolumns, int MatrixNr);
    5861  virtual bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
    59   bool AllocateMatrix(char *GivenHeader, int MCounter, int *RCounter, int CCounter);
     62  bool AllocateMatrix(char **GivenHeader, int MCounter, int *RCounter, int *CCounter);
    6063  bool ResetMatrix();
    6164  double FindMinValue();
     
    7477class EnergyMatrix : public MatrixContainer {
    7578  public:
    76     bool ParseIndices();
    7779    bool SumSubEnergy(class EnergyMatrix &Fragments, class EnergyMatrix *CorrectionFragments, class KeySetsContainer &KeySet, int Order, double sign);
    7880    bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     
    8688    bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign);
    8789    bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     90};
     91
     92// ======================================= CLASS HessianMatrix =============================
     93
     94class HessianMatrix : public MatrixContainer {
     95  public:
     96    HessianMatrix();
     97    //~HessianMatrix();
     98    bool ParseIndices(char *name);
     99    bool SumSubManyBodyTerms(class MatrixContainer &MatrixValues, class KeySetsContainer &KeySet, int Order);
     100    bool SumSubHessians(class HessianMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign);
     101    bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns);
     102  private:
     103    bool IsSymmetric;
    88104};
    89105
Note: See TracChangeset for help on using the changeset viewer.