Changeset fa2d7d


Ignore:
Timestamp:
Oct 17, 2008, 1:22:38 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
f5d7e1
Parents:
f89a9e
Message:

Analyzer now writes usable plot and data files for shielding comparison (both relative (Delta...) and absolute).

We were able to use the ForceMatrix functions in a very straight-forward and simple manner (excellent programming if I may so :)

Location:
molecuilder/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analyzer.cpp

    rf89a9e rfa2d7d  
    390390  if (periode != NULL) { // also look for PAS values
    391391    if(!OpenOutputFile(output, argv[3], "ShieldingsPAS-Order.pyx")) return 1;
     392    if(!OpenOutputFile(output2, argv[3], "DeltaShieldingsPAS-Order.pyx")) return 1;
    392393    CreatePlotHeader(output, "ShieldingsPAS-Order", 1, "top right", NULL, NULL,  1, 5, "nuclei index", "iso chemical shielding value [ppm]");
     394    CreatePlotHeader(output2, "DeltaShieldingsPAS-Order", 1, "top right", NULL, NULL,  1, 5, "nuclei index", "iso chemical shielding value [ppm]");
    393395    double step=0.8/KeySet.Order;
    394396    output << "set boxwidth " << step << endl;
    395397    output << "plot [0:" << ShieldingPAS.RowCounter[ShieldingPAS.MatrixCounter]+10 << "]\\" << endl;
     398    output2 << "plot [0:" << ShieldingPAS.RowCounter[ShieldingPAS.MatrixCounter]+10 << "]\\" << endl;
    396399    for (int BondOrder=0;BondOrder<KeySet.Order;BondOrder++) {
    397400      output << "'ShieldingsPAS-Order.dat' index " << BondOrder << " title 'Order " << BondOrder+1 << "' using ($1+" << step*(double)BondOrder << "):7 with boxes, \\" << endl;
     401      output2 << "'DeltaShieldingsPAS-Order.dat' index " << BondOrder << " title 'Order " << BondOrder+1 << "' using ($1):7 with linespoints";
     402      if (BondOrder-1 != KeySet.Order)
     403        output2 << ", \\" << endl;
    398404    }
    399405    output << "'ShieldingsPAS-Order.dat' index " << KeySet.Order << " title 'Full' using ($1+" << step*(double)KeySet.Order << "):7 with boxes" << endl;
    400406    output.close(); 
     407    output2.close(); 
    401408  }
    402409
  • molecuilder/src/datacreator.cpp

    rf89a9e rfa2d7d  
    204204    Fragments.SumSubForces(Fragments, KeySet, BondOrder, -1.);
    205205    // errors per atom
    206     output << "#Order\t" << BondOrder+1 << endl;
     206    output << endl << "#Order\t" << BondOrder+1 << endl;
    207207    for(int j=0;j<Fragments.RowCounter[ Fragments.MatrixCounter ];j++) {
    208208      output << Fragments.Indices[Fragments.MatrixCounter][j] << "\t";
Note: See TracChangeset for help on using the changeset viewer.