Changeset 09f4dc for molecuilder/src/parser.hpp
- Timestamp:
- Jul 23, 2009, 9:14:18 AM (16 years ago)
- 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. - File:
-
- 1 edited
-
molecuilder/src/parser.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/parser.hpp
r2218dca r09f4dc 19 19 20 20 #define EnergySuffix ".energy.all" 21 #define EnergyFragmentSuffix ".energyfragment.all" 22 #define ForcesSuffix ".forces.all" 23 #define ForceFragmentSuffix ".forcefragment.all" 21 24 #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" 23 29 #define ShieldingSuffix ".sigma_all.csv" 24 30 #define ShieldingPASSuffix ".sigma_all_PAS.csv" … … 30 36 #define ChiPASFragmentSuffix ".chi_all_PAS_fragment.all" 31 37 #define TimeSuffix ".speed" 32 #define EnergyFragmentSuffix ".energyfragment.all"33 #define HcorrectionFragmentSuffix ".Hcorrectionfragment.all"34 #define ForceFragmentSuffix ".forcefragment.all"35 #define OrderSuffix ".Order"36 38 37 39 // ======================================= FUNCTIONS ========================================== … … 47 49 double ***Matrix; 48 50 int **Indices; 49 char * Header;51 char **Header; 50 52 int MatrixCounter; 51 53 int *RowCounter; 52 int ColumnCounter;54 int *ColumnCounter; 53 55 54 56 MatrixContainer(); 55 57 ~MatrixContainer(); 56 58 59 bool InitialiseIndices(class MatrixContainer *Matrix = NULL); 57 60 bool ParseMatrix(const char *name, int skiplines, int skipcolumns, int MatrixNr); 58 61 virtual bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns); 59 bool AllocateMatrix(char * GivenHeader, int MCounter, int *RCounter, intCCounter);62 bool AllocateMatrix(char **GivenHeader, int MCounter, int *RCounter, int *CCounter); 60 63 bool ResetMatrix(); 61 64 double FindMinValue(); … … 74 77 class EnergyMatrix : public MatrixContainer { 75 78 public: 76 bool ParseIndices();77 79 bool SumSubEnergy(class EnergyMatrix &Fragments, class EnergyMatrix *CorrectionFragments, class KeySetsContainer &KeySet, int Order, double sign); 78 80 bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns); … … 86 88 bool SumSubForces(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, int Order, double sign); 87 89 bool ParseFragmentMatrix(char *name, char *prefix, string suffix, int skiplines, int skipcolumns); 90 }; 91 92 // ======================================= CLASS HessianMatrix ============================= 93 94 class 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; 88 104 }; 89 105
Note:
See TracChangeset
for help on using the changeset viewer.
