Changes in / [71e7c7:631dcb]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/analyzer.cpp

    r71e7c7 r631dcb  
    222222    output << endl << "Total Chis PAS" << endl << "===============" << endl << ChiPAS.Header[ChiPAS.MatrixCounter] << endl;
    223223    for(int j=0;j<ChiPAS.RowCounter[ChiPAS.MatrixCounter];j++) {
    224       for(int k=0;k<ChiPAS.ColumnCounter[ChiPAS.MatrixCounter];k++)
     224      for(int k=0;k<ChiPAS.ColumnCounter[Chi.MatrixCounter];k++)
    225225        output << scientific << ChiPAS.Matrix[ ChiPAS.MatrixCounter ][j][k] << "\t";
    226226      output << endl;
     
    523523    output.close(); 
    524524    output2.close(); 
    525 
    526     if(!OpenOutputFile(output, argv[3], "ChisPAS-Order.pyx")) return 1;
    527     if(!OpenOutputFile(output2, argv[3], "DeltaChisPAS-Order.pyx")) return 1;
    528     CreatePlotHeader(output, "ChisPAS-Order", 1, "top right", NULL, NULL,  1, 5, "nuclei index", "iso chemical Chi value [ppm]");
    529     CreatePlotHeader(output2, "DeltaChisPAS-Order", 1, "top right", NULL, NULL,  1, 5, "nuclei index", "iso chemical Chi value [ppm]");
    530     output << "set boxwidth " << step << endl;
    531     output << "plot [0:" << ChiPAS.RowCounter[ChiPAS.MatrixCounter]+10 << "]\\" << endl;
    532     output2 << "plot [0:" << ChiPAS.RowCounter[ChiPAS.MatrixCounter]+10 << "]\\" << endl;
    533     for (int BondOrder=0;BondOrder<KeySet.Order;BondOrder++) {
    534       output << "'ChisPAS-Order.dat' index " << BondOrder << " title 'Order " << BondOrder+1 << "' using ($1+" << step*(double)BondOrder << "):7 with boxes, \\" << endl;
    535       output2 << "'DeltaChisPAS-Order.dat' index " << BondOrder << " title 'Order " << BondOrder+1 << "' using ($1):7 with linespoints";
    536       if (BondOrder-1 != KeySet.Order)
    537         output2 << ", \\" << endl;
    538     }
    539     output << "'ChisPAS-Order.dat' index " << KeySet.Order << " title 'Full' using ($1+" << step*(double)KeySet.Order << "):7 with boxes" << endl;
    540     output.close(); 
    541     output2.close(); 
    542525  }
    543526
  • src/joiner.cpp

    r71e7c7 r631dcb  
    3434  ForceMatrix ShieldingFragments;
    3535  ForceMatrix ShieldingPASFragments;
    36   ForceMatrix Chi;
    37   ForceMatrix ChiPAS;
    38   ForceMatrix ChiFragments;
    39   ForceMatrix ChiPASFragments;
     36  EnergyMatrix Chi;
     37  EnergyMatrix ChiPAS;
     38  EnergyMatrix ChiFragments;
     39  EnergyMatrix ChiPASFragments;
    4040  KeySetsContainer KeySet; 
    4141  stringstream prefix;
     
    104104    if(!Shielding.ParseIndices(argv[1])) return 1;
    105105    if(!ShieldingPAS.ParseIndices(argv[1])) return 1;
    106     if(!Chi.ParseIndices(argv[1])) return 1;
    107     if(!ChiPAS.ParseIndices(argv[1])) return 1;
     106    //if(!Chi.ParseIndices()) return 1;
     107    //if(!ChiPAS.ParseIndices()) return 1;
    108108  }
    109109
     
    167167      if (!ShieldingPAS.SumSubForces(ShieldingPASFragments, KeySet, BondOrder, 1.)) return 1;
    168168      if (!ChiFragments.SumSubManyBodyTerms(Chi, KeySet, BondOrder)) return 1;
    169       if (!Chi.SumSubForces(ChiFragments, KeySet, BondOrder, 1.)) return 1;
     169      if (!Chi.SumSubEnergy(ChiFragments, NULL, KeySet, BondOrder, 1.)) return 1;
    170170      if (!ChiPASFragments.SumSubManyBodyTerms(ChiPAS, KeySet, BondOrder)) return 1;
    171       if (!ChiPAS.SumSubForces(ChiPASFragments, KeySet, BondOrder, 1.)) return 1;
     171      if (!ChiPAS.SumSubEnergy(ChiPASFragments, NULL,KeySet, BondOrder, 1.)) return 1;
    172172    }
    173173
Note: See TracChangeset for help on using the changeset viewer.