Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom.cpp

    rad2b411 r36166d  
    1212#include "element.hpp"
    1313#include "lists.hpp"
    14 #include "memoryallocator.hpp"
    1514#include "parser.hpp"
    1615#include "vector.hpp"
    1716#include "World.hpp"
    1817#include "molecule.hpp"
     18#include "Shapes/Shape.hpp"
     19
     20#include <iomanip>
    1921
    2022/************************************* Functions for class atom *************************************/
     
    112114 * \return true - is inside, false - is not
    113115 */
    114 bool atom::IsInParallelepiped(const Vector offset, const double *parallelepiped) const
    115 {
    116   return (node->IsInParallelepiped(offset, parallelepiped));
     116bool atom::IsInShape(const Shape& shape) const
     117{
     118  return shape.isInside(*node);
    117119};
    118120
     
    159161  * \return true - \a *out present, false - \a *out is NULL
    160162 */
    161 bool atom::OutputArrayIndexed(ofstream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
     163bool atom::OutputArrayIndexed(ostream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
    162164{
    163165  AtomNo[type->Z]++;  // increment number
     
    236238 * \param *AtomNo pointer to atom counter that is increased by one
    237239 */
    238 void atom::OutputMPQCLine(ofstream * const out, const Vector *center, int *AtomNo = NULL) const
     240void atom::OutputMPQCLine(ostream * const out, const Vector *center, int *AtomNo = NULL) const
    239241{
    240242  *out << "\t\t" << type->symbol << " [ " << x[0]-center->at(0) << "\t" << x[1]-center->at(1) << "\t" << x[2]-center->at(2) << " ]" << endl;
Note: See TracChangeset for help on using the changeset viewer.