Changeset 71e7c7


Ignore:
Timestamp:
Jul 23, 2009, 11:31:00 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
986c80
Parents:
631dcb (diff), cc36a5 (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.
Message:

Merge branch 'test'

Conflicts:

molecuilder/src/analyzer.cpp
molecuilder/src/datacreator.cpp
molecuilder/src/joiner.cpp

all Chi.. matrices were EnergyMatrix instead of ForceMatrix, despite in all branches (test, master, Thermostat) always some ParseIndices was called for them, which is only implemented in the ForceMatrix. I change hence to ForceMatrix and removed the comments from ParseIndices(). But this is untested.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/analyzer.cpp

    r631dcb r71e7c7  
    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[Chi.MatrixCounter];k++)
     224      for(int k=0;k<ChiPAS.ColumnCounter[ChiPAS.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(); 
    525542  }
    526543
  • src/joiner.cpp

    r631dcb r71e7c7  
    3434  ForceMatrix ShieldingFragments;
    3535  ForceMatrix ShieldingPASFragments;
    36   EnergyMatrix Chi;
    37   EnergyMatrix ChiPAS;
    38   EnergyMatrix ChiFragments;
    39   EnergyMatrix ChiPASFragments;
     36  ForceMatrix Chi;
     37  ForceMatrix ChiPAS;
     38  ForceMatrix ChiFragments;
     39  ForceMatrix 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()) return 1;
    107     //if(!ChiPAS.ParseIndices()) return 1;
     106    if(!Chi.ParseIndices(argv[1])) return 1;
     107    if(!ChiPAS.ParseIndices(argv[1])) 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.SumSubEnergy(ChiFragments, NULL, KeySet, BondOrder, 1.)) return 1;
     169      if (!Chi.SumSubForces(ChiFragments, KeySet, BondOrder, 1.)) return 1;
    170170      if (!ChiPASFragments.SumSubManyBodyTerms(ChiPAS, KeySet, BondOrder)) return 1;
    171       if (!ChiPAS.SumSubEnergy(ChiPASFragments, NULL,KeySet, BondOrder, 1.)) return 1;
     171      if (!ChiPAS.SumSubForces(ChiPASFragments, KeySet, BondOrder, 1.)) return 1;
    172172    }
    173173
Note: See TracChangeset for help on using the changeset viewer.