Ignore:
Timestamp:
Mar 3, 2010, 10:13:19 AM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
5a40b8, 8758eb, bd506d
Parents:
9f03b2
Message:

singleton class World introduced, contains only cell_size from class molecule.

  • class World is actually code from Till Crueger from his branch StructureRefactoring.
  • has been introduced here in minimalistic form to allow molecule::cell_size to be outsourced to World::cell_size
  • access to cell_size can be obtained from anyhwere by invoking World::get()->cell_size
  • INFO: cell_size was placed in class molecule for the fragmentation procedure where the cell_size had to be individually adapted to each fragment.
  • all appearances have been changed accordingly. Where appropriate we have employed a const pointer onto cell_size.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_fragmentation.cpp

    r9f03b2 r9565ec  
    1818#include "molecule.hpp"
    1919#include "periodentafel.hpp"
     20#include "World.hpp"
    2021
    2122/************************************* Functions for class molecule *********************************/
     
    843844
    844845  Leaf->BondDistance = mol->BondDistance;
    845   for(int i=NDIM*2;i--;)
    846     Leaf->cell_size[i] = mol->cell_size[i];
    847846
    848847  // first create the minimal set of atoms from the KeySet
     
    16541653  atom *Walker = NULL;
    16551654  atom *OtherWalker = NULL;
     1655  double * const cell_size = World::get()->cell_size;
    16561656  double *matrix = ReturnFullMatrixforSymmetric(cell_size);
    16571657  enum Shading *ColorList = NULL;
Note: See TracChangeset for help on using the changeset viewer.