Changeset cdaae6


Ignore:
Timestamp:
Feb 17, 2012, 3:24:19 PM (13 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:
52ed5b
Parents:
560bbe
git-author:
Frederik Heber <heber@…> (02/16/12 13:38:53)
git-committer:
Frederik Heber <heber@…> (02/17/12 15:24:19)
Message:

FIX: BondedParticle::OutputAdjacency() and ::OutputBonds() give uncorrected ids.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_bondedparticle.cpp

    r560bbe rcdaae6  
    7272{
    7373  const BondList& ListOfBonds = getListOfBonds();
    74   *AdjacencyFile << getNr() << "\t";
     74  *AdjacencyFile << getNr()+1 << "\t";
    7575  for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner))
    76     *AdjacencyFile << (*Runner)->GetOtherAtom(this)->getNr() << "\t";
     76    *AdjacencyFile << (*Runner)->GetOtherAtom(this)->getNr()+1 << "\t";
    7777  *AdjacencyFile << endl;
    7878};
     
    8787  for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); (++Runner))
    8888    if (getNr() < (*Runner)->GetOtherAtom(this)->getNr())
    89       *BondFile << getNr() << "\t" << (*Runner)->GetOtherAtom(this)->getNr() << "\n";
     89      *BondFile << getNr()+1 << "\t" << (*Runner)->GetOtherAtom(this)->getNr()+1 << "\n";
    9090};
    9191
  • tests/regression/Molecules/BondFile/pre/test.dbond

    r560bbe rcdaae6  
    11m n
    2 0 1
    3 0 3
    4 0 4
    5 0 5
    621 2
     31 4
     41 5
    751 6
    8 1 7
     62 3
     72 7
    982 8
    10 2 9
    11 2 10
     93 9
     103 10
     113 11
  • tests/regression/Molecules/BondFile/testsuite-molecules-fragmentation-bond-file.at

    r560bbe rcdaae6  
    77AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.conf $file], 0)
    88AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.dbond .], 0)
    9 AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 0], 0, [stdout], [stderr])
     9AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 1], 0, [stdout], [stderr])
    1010AT_CHECK([file=test.pdb; diff -w -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/BondFile/post/test.pdb], 0, [ignore], [ignore])
    1111
     
    2020AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.conf $file], 0)
    2121AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.dbond .], 0)
    22 AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 0 --undo], 0, [stdout], [stderr])
     22AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 1 --undo], 0, [stdout], [stderr])
    2323AT_CHECK([file=test.pdb; diff -w -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/BondFile/post/test.pdb], 0, [ignore], [ignore])
    2424
     
    3333AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.conf $file], 0)
    3434AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/BondFile/pre/test.dbond .], 0)
    35 AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 0 --undo --redo], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -o pdb -v 4 --select-molecule-by-id 0 -A test.dbond --skiplines 1 --offset 1 --undo --redo], 0, [stdout], [stderr])
    3636AT_CHECK([file=test.pdb; diff -w -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/BondFile/post/test.pdb], 0, [ignore], [ignore])
    3737
  • tests/regression/Molecules/SaveAdjacency/post/test.adj

    r560bbe rcdaae6  
    11m       n
    2 0       8       
    3 1       8       
    4 2       8       
     21       9       
     32       9       
    543       9       
    6 4       9       
     54       10     
    765       10     
    8 6       10     
    9 7       10     
    10 8       0       9       1       2       
    11 9       8       10      3       4       
    12 10      5       6       7       9       
     76       11     
     87       11     
     98       11     
     109       1       10      2       3       
     1110      9       11      4       5       
     1211      6       7       8       10     
  • tests/regression/Molecules/SaveBonds/post/test.dbond

    r560bbe rcdaae6  
    11m       n
    2 0       8
    3 1       8
    4 2       8
     21       9
     32       9
    543       9
    6 4       9
     54       10
    765       10
    8 6       10
    9 7       10
    10 8       9
     76       11
     87       11
     98       11
    11109       10
     1110      11
Note: See TracChangeset for help on using the changeset viewer.