Changeset 97c751


Ignore:
Timestamp:
Feb 9, 2009, 11:17:28 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
f23d7d
Parents:
dafe43
git-author:
Frederik Heber <heber@…> (02/09/09 23:16:19)
git-committer:
Frederik Heber <heber@…> (02/09/09 23:17:28)
Message:

Chi integration had some copy&paste error

Location:
molecuilder/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analyzer.cpp

    rdafe43 r97c751  
    177177    output << endl;
    178178
    179     output << endl << "Total Chis" << endl << "===============" << endl << Chi.Header[Hessian.MatrixCounter] << endl;
     179    output << endl << "Total Chis" << endl << "===============" << endl << Chi.Header[Chi.MatrixCounter] << endl;
    180180    for(int j=0;j<Chi.RowCounter[Chi.MatrixCounter];j++) {
    181       for(int k=0;k<Chi.ColumnCounter[Chi.MatrixCounter];k++)
     181      for(int k=0;k<Chi.ColumnCounter;k++)
    182182        output << scientific << Chi.Matrix[ Chi.MatrixCounter ][j][k] << "\t";
    183183      output << endl;
     
    187187    output << endl << "Total Chis PAS" << endl << "===============" << endl << ChiPAS.Header[ChiPAS.MatrixCounter] << endl;
    188188    for(int j=0;j<ChiPAS.RowCounter[ChiPAS.MatrixCounter];j++) {
    189       for(int k=0;k<ChiPAS.ColumnCounter[ChiPAS.MatrixCounter];k++)
     189      for(int k=0;k<ChiPAS.ColumnCounter;k++)
    190190        output << scientific << ChiPAS.Matrix[ ChiPAS.MatrixCounter ][j][k] << "\t";
    191191      output << endl;
     
    265265    for(int j=0;j<ChiPAS.RowCounter[ChiPAS.MatrixCounter];j++) {
    266266      output << j << "\t";
    267       for(int k=0;k<ChiPAS.ColumnCounter[ChiPAS.MatrixCounter];k++)
     267      for(int k=0;k<ChiPAS.ColumnCounter;k++)
    268268        output << scientific <<  ChiPAS.Matrix[ ChiPAS.MatrixCounter ][j][k] << "\t"; //*(((k>1) && (k<6))? 1.e6 : 1.) << "\t";
    269269      output << endl;
  • molecuilder/src/joiner.cpp

    rdafe43 r97c751  
    8585    if(!Shielding.ParseIndices(argv[1])) return 1;
    8686    if(!ShieldingPAS.ParseIndices(argv[1])) return 1;
    87     if(!Chi.ParseIndices(argv[1])) return 1;
    88     if(!ChiPAS.ParseIndices(argv[1])) return 1;
     87    if(!Chi.ParseIndices()) return 1;
     88    if(!ChiPAS.ParseIndices()) return 1;
    8989  }
    9090
     
    137137      if (!ShieldingPAS.SumSubForces(ShieldingPASFragments, KeySet, BondOrder, 1.)) return 1;
    138138      if (!ChiFragments.SumSubManyBodyTerms(Chi, KeySet, BondOrder)) return 1;
    139       if (!Chi.SumSubForces(ChiFragments, KeySet, BondOrder, 1.)) return 1;
     139      if (!Chi.SumSubEnergy(ChiFragments, NULL, KeySet, BondOrder, 1.)) return 1;
    140140      if (!ChiPASFragments.SumSubManyBodyTerms(ChiPAS, KeySet, BondOrder)) return 1;
    141       if (!ChiPAS.SumSubForces(ChiPASFragments, KeySet, BondOrder, 1.)) return 1;
     141      if (!ChiPAS.SumSubEnergy(ChiPASFragments, NULL,KeySet, BondOrder, 1.)) return 1;
    142142    }
    143143
Note: See TracChangeset for help on using the changeset viewer.