Ignore:
Timestamp:
Jul 23, 2009, 1:45:24 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
47548d
Parents:
560995 (diff), 1b2aa1 (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.
git-author:
Frederik Heber <heber@…> (07/23/09 12:34:47)
git-committer:
Frederik Heber <heber@…> (07/23/09 13:45:24)
Message:

Merge branch 'MultipleMolecules'

Conflicts:

molecuilder/src/analyzer.cpp
molecuilder/src/atom.cpp
molecuilder/src/boundary.cpp
molecuilder/src/boundary.hpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/datacreator.hpp
molecuilder/src/helpers.cpp
molecuilder/src/joiner.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/molecules.cpp
molecuilder/src/molecules.hpp
molecuilder/src/parser.cpp
molecuilder/src/parser.hpp
molecuilder/src/vector.cpp
molecuilder/src/verbose.cpp

merges:

compilation fixes:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r560995 rf39735  
    11/** \file atom.cpp
    2  * 
     2 *
    33 * Function implementations for the class atom.
    4  * 
     4 *
    55 */
    66
    77#include "molecules.hpp"
    8  
     8
    99/************************************* Functions for class atom *************************************/
    1010
    1111/** Constructor of class atom.
    1212 */
    13 atom::atom() 
     13atom::atom()
    1414{
    1515  Name = NULL;
     
    3333/** Destructor of class atom.
    3434 */
    35 atom::~atom() 
     35atom::~atom()
    3636{
    3737  Free((void **)&Name, "atom::~atom: *Name");
     
    5858 * \param AtomNo cardinal number among these atoms of the same element
    5959 * \param *out stream to output to
     60 * \param *comment commentary after '#' sign
    6061 */
    61 bool atom::Output(int ElementNo, int AtomNo, ofstream *out) const
     62bool atom::Output(int ElementNo, int AtomNo, ofstream *out, const char *comment) const
    6263{
    6364  if (out != NULL) {
     
    6768    if (v.Norm() > MYEPSILON)
    6869      *out << "\t" << scientific << setprecision(6) << v.x[0] << "\t" << v.x[1] << "\t" << v.x[2] << "\t";
    69     *out << " # Number in molecule " << nr << endl;
     70    if (comment != NULL)
     71      *out << " # " << comment << endl;
     72    else
     73      *out << " # molecule nr " << nr << endl;
    7074    return true;
    7175  } else
     
    9498 * \param ptr atom to compare index against
    9599 * \return true - this one's is smaller, false - not
    96  */ 
     100 */
    97101bool atom::Compare(atom &ptr)
    98102{
     
    103107};
    104108
    105 bool operator < (atom &a, atom &b) 
     109bool operator < (atom &a, atom &b)
    106110{
    107111  return a.Compare(b);
Note: See TracChangeset for help on using the changeset viewer.