Changeset 6e1853


Ignore:
Timestamp:
Mar 4, 2010, 2:57:48 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
f87c2a
Parents:
1540c8c
Message:

BUGFIX: config::SaveTREMOLO() - TREMOLO does not like particle Id 0

  • particle Id 0 are thrown away on saving by TREMOLO. Hence, we add one on each particle number and bond id and molecule number (i.e. counting from one).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    r1540c8c r6e1853  
    16461646/** Stores all atoms in a TREMOLO data input file.
    16471647 * Note that this format cannot be parsed again.
     1648 * Note that TREMOLO does not like Id starting at 0, but at 1. Atoms with Id 0 are discarded!
    16481649 * \param *filename name of file (without ".in" suffix!)
    16491650 * \param *mol pointer to molecule
     
    17001701/** Stores all atoms from all molecules in a TREMOLO data input file.
    17011702 * Note that this format cannot be parsed again.
     1703 * Note that TREMOLO does not like Id starting at 0, but at 1. Atoms with Id 0 are discarded!
    17021704 * \param *filename name of file (without ".in" suffix!)
    17031705 * \param *MolList pointer to MoleculeListClass containing all atoms
     
    17521754      while (Walker->next != (*MolWalker)->end) {
    17531755        Walker = Walker->next;
    1754         *output << AtomNo << "\t";
     1756        *output << AtomNo+1 << "\t";
    17551757        *output << Walker->Name << "\t";
    17561758        *output << (*MolWalker)->name << "\t";
    1757         *output << MolCounter << "\t";
     1759        *output << MolCounter+1 << "\t";
    17581760        *output << Walker->node->x[0] << "\t" << Walker->node->x[1] << "\t" << Walker->node->x[2] << "\t";
    17591761        *output << (double)Walker->type->Valence << "\t";
    17601762        *output << Walker->type->symbol << "\t";
    17611763        for (BondList::iterator runner = Walker->ListOfBonds.begin(); runner != Walker->ListOfBonds.end(); runner++)
    1762           *output << LocalNotoGlobalNoMap[MolCounter][ (*runner)->GetOtherAtom(Walker)->nr ] << "\t";
     1764          *output << LocalNotoGlobalNoMap[MolCounter][ (*runner)->GetOtherAtom(Walker)->nr ]+1 << "\t";
    17631765        for(int i=Walker->ListOfBonds.size(); i < MaxNeighbours; i++)
    17641766          *output << "-\t";
Note: See TracChangeset for help on using the changeset viewer.