Ignore:
Timestamp:
Oct 30, 2009, 3:49:38 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
245826
Parents:
5f697c
git-author:
Frederik Heber <heber@…> (10/30/09 15:33:51)
git-committer:
Frederik Heber <heber@…> (10/30/09 15:49:38)
Message:

BondGraph is parsed if command line switch '-g' is given.

  • builder.cpp: case 'g' which gives a bond length table file which is parsed after the configuration and before other command line options.
  • BondGraph::BondLengthMatrixMinMaxDistance() falls back to CovalentMinMaxDistance() if no table parsed.
  • Bond Length Table was changed to have first row _and_ column each enlist all the elements and does not have a "#" in front anymore.
  • The unit test has been changed accordingly.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/bondgraphunittest.cpp

    r5f697c rb84ab4  
    7979  filename = new string("test.dat");
    8080  ofstream test(filename->c_str());
    81   test << "# Hydrogen\tCarbon\n1.\t1.2\n1.2\t1.5" << endl;
     81  test << ".\tH\tC\n";
     82  test << "H\t1.\t1.2\n";
     83  test << "C\t1.2\t1.5\n";
    8284  BG = new BondGraph(true);
    8385};
Note: See TracChangeset for help on using the changeset viewer.