Changes in src/joiner.cpp [5bc4d0:8f019c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/joiner.cpp
-
Property mode
changed from
100755
to100644
r5bc4d0 r8f019c 28 28 ForceMatrix ShieldingFragments; 29 29 ForceMatrix ShieldingPASFragments; 30 EnergyMatrix Chi;31 EnergyMatrix ChiPAS;32 EnergyMatrix ChiFragments;33 EnergyMatrix ChiPASFragments;34 30 KeySetsContainer KeySet; 35 31 stringstream prefix; … … 70 66 if (!Shielding.ParseFragmentMatrix(argv[1], dir, ShieldingSuffix, 1, 0)) return 1; 71 67 if (!ShieldingPAS.ParseFragmentMatrix(argv[1], dir, ShieldingPASSuffix, 1, 0)) return 1; 72 if (!Chi.ParseFragmentMatrix(argv[1], dir, ChiSuffix, 1, 0)) return 1;73 if (!ChiPAS.ParseFragmentMatrix(argv[1], dir, ChiPASSuffix, 1, 0)) return 1;74 68 } 75 69 … … 85 79 if(!Shielding.ParseIndices(argv[1])) return 1; 86 80 if(!ShieldingPAS.ParseIndices(argv[1])) return 1; 87 if(!Chi.ParseIndices()) return 1;88 if(!ChiPAS.ParseIndices()) return 1;89 81 } 90 82 91 83 // ---------- Parse the KeySets into an array --------------- 92 84 if (!KeySet.ParseKeySets(argv[1], Force.RowCounter, Force.MatrixCounter)) return 1; 85 93 86 if (!KeySet.ParseManyBodyTerms()) return 1; 94 95 87 if (!EnergyFragments.AllocateMatrix(Energy.Header, Energy.MatrixCounter, Energy.RowCounter, Energy.ColumnCounter)) return 1; 96 88 if (Hcorrected) HcorrectionFragments.AllocateMatrix(Hcorrection.Header, Hcorrection.MatrixCounter, Hcorrection.RowCounter, Hcorrection.ColumnCounter); … … 99 91 if (!ShieldingFragments.AllocateMatrix(Shielding.Header, Shielding.MatrixCounter, Shielding.RowCounter, Shielding.ColumnCounter)) return 1; 100 92 if (!ShieldingPASFragments.AllocateMatrix(ShieldingPAS.Header, ShieldingPAS.MatrixCounter, ShieldingPAS.RowCounter, ShieldingPAS.ColumnCounter)) return 1; 101 if (!ChiFragments.AllocateMatrix(Chi.Header, Chi.MatrixCounter, Chi.RowCounter, Chi.ColumnCounter)) return 1;102 if (!ChiPASFragments.AllocateMatrix(ChiPAS.Header, ChiPAS.MatrixCounter, ChiPAS.RowCounter, ChiPAS.ColumnCounter)) return 1;103 93 } 104 94 … … 109 99 if(!Shielding.SetLastMatrix(0., 2)) return 1; 110 100 if(!ShieldingPAS.SetLastMatrix(0., 2)) return 1; 111 if(!Chi.SetLastMatrix(0., 2)) return 1;112 if(!ChiPAS.SetLastMatrix(0., 2)) return 1;113 101 } 114 102 … … 131 119 if (!Force.SumSubForces(ForceFragments, KeySet, BondOrder, 1.)) return 1; 132 120 if (periode != NULL) { // also look for PAS values 133 cout << "Summing shieldings and susceptibilitiesof order " << BondOrder+1 << " ..." << endl;121 cout << "Summing shieldings of order " << BondOrder+1 << " ..." << endl; 134 122 if (!ShieldingFragments.SumSubManyBodyTerms(Shielding, KeySet, BondOrder)) return 1; 135 123 if (!Shielding.SumSubForces(ShieldingFragments, KeySet, BondOrder, 1.)) return 1; 136 124 if (!ShieldingPASFragments.SumSubManyBodyTerms(ShieldingPAS, KeySet, BondOrder)) return 1; 137 125 if (!ShieldingPAS.SumSubForces(ShieldingPASFragments, KeySet, BondOrder, 1.)) return 1; 138 if (!ChiFragments.SumSubManyBodyTerms(Chi, KeySet, BondOrder)) return 1;139 if (!Chi.SumSubEnergy(ChiFragments, NULL, KeySet, BondOrder, 1.)) return 1;140 if (!ChiPASFragments.SumSubManyBodyTerms(ChiPAS, KeySet, BondOrder)) return 1;141 if (!ChiPAS.SumSubEnergy(ChiPASFragments, NULL,KeySet, BondOrder, 1.)) return 1;142 126 } 143 127 … … 154 138 if (!Shielding.WriteLastMatrix(argv[1], (prefix.str()).c_str(), ShieldingSuffix)) return 1; 155 139 if (!ShieldingPAS.WriteLastMatrix(argv[1], (prefix.str()).c_str(), ShieldingPASSuffix)) return 1; 156 if (!Chi.WriteLastMatrix(argv[1], (prefix.str()).c_str(), ChiSuffix)) return 1;157 if (!ChiPAS.WriteLastMatrix(argv[1], (prefix.str()).c_str(), ChiPASSuffix)) return 1;158 140 } 159 141 } … … 178 160 prefix << dir << ShieldingPASFragmentSuffix; 179 161 if (!ShieldingPASFragments.WriteTotalFragments(argv[1], (prefix.str()).c_str())) return 1; 180 prefix.str(" ");181 prefix << dir << ChiFragmentSuffix;182 if (!ChiFragments.WriteTotalFragments(argv[1], (prefix.str()).c_str())) return 1;183 prefix.str(" ");184 prefix << dir << ChiPASFragmentSuffix;185 if (!ChiPASFragments.WriteTotalFragments(argv[1], (prefix.str()).c_str())) return 1;186 162 } 187 163 … … 193 169 if (!Shielding.WriteLastMatrix(argv[1], dir, ShieldingFragmentSuffix)) return 1; 194 170 if (!ShieldingPAS.WriteLastMatrix(argv[1], dir, ShieldingPASFragmentSuffix)) return 1; 195 if (!Chi.WriteLastMatrix(argv[1], dir, ChiFragmentSuffix)) return 1;196 if (!ChiPAS.WriteLastMatrix(argv[1], dir, ChiPASFragmentSuffix)) return 1;197 171 } 198 172 -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.