Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom.cpp

    r2fe971 r57f243  
    1313#include "lists.hpp"
    1414#include "parser.hpp"
    15 #include "vector.hpp"
     15#include "LinearAlgebra/Vector.hpp"
    1616#include "World.hpp"
    1717#include "molecule.hpp"
     
    1919
    2020#include <iomanip>
    21 #include <iostream>
    2221
    2322/************************************* Functions for class atom *************************************/
     
    110109};
    111110
    112 bool atom::isFather(const atom *ptr){
    113   return ptr==father;
    114 }
    115 
    116111/** Checks whether atom is within the given box.
    117112 * \param offset offset to box origin
     
    166161  * \return true - \a *out present, false - \a *out is NULL
    167162 */
    168 bool atom::OutputArrayIndexed(ostream * const out,const enumeration<const element*> &elementLookup, int *AtomNo, const char *comment) const
     163bool atom::OutputArrayIndexed(ostream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
    169164{
    170165  AtomNo[type->Z]++;  // increment number
    171166  if (out != NULL) {
    172     cout << "Looking for atom with element " << *type << endl;
    173     ASSERT(elementLookup.there.find(type)!=elementLookup.there.end(),"Type of this atom was not in the formula upon enumeration");
    174     *out << "Ion_Type" << elementLookup.there.find(type)->second << "_" << AtomNo[type->Z] << "\t"  << fixed << setprecision(9) << showpoint;
     167    *out << "Ion_Type" << ElementNo[type->Z] << "_" << AtomNo[type->Z] << "\t"  << fixed << setprecision(9) << showpoint;
    175168    *out << x[0] << "\t" << x[1] << "\t" << x[2];
    176169    *out << "\t" << FixedIon;
     
    193186{
    194187  if (out != NULL) {
    195     *out << type->getSymbol() << "\t" << x[0] << "\t" << x[1] << "\t" << x[2] << "\t" << endl;
     188    *out << type->symbol << "\t" << x[0] << "\t" << x[1] << "\t" << x[2] << "\t" << endl;
    196189    return true;
    197190  } else
     
    231224{
    232225  if (out != NULL) {
    233     *out << type->getSymbol() << "\t";
     226    *out << type->symbol << "\t";
    234227    *out << Trajectory.R.at(step)[0] << "\t";
    235228    *out << Trajectory.R.at(step)[1] << "\t";
     
    247240void atom::OutputMPQCLine(ostream * const out, const Vector *center, int *AtomNo = NULL) const
    248241{
    249   *out << "\t\t" << type->getSymbol() << " [ " << x[0]-center->at(0) << "\t" << x[1]-center->at(1) << "\t" << x[2]-center->at(2) << " ]" << endl;
     242  *out << "\t\t" << type->symbol << " [ " << x[0]-center->at(0) << "\t" << x[1]-center->at(1) << "\t" << x[2]-center->at(2) << " ]" << endl;
    250243  if (AtomNo != NULL)
    251244    *AtomNo++;
Note: See TracChangeset for help on using the changeset viewer.