Ignore:
Timestamp:
Mar 3, 2010, 10:13:19 AM (16 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/boundary.cpp

    r9f03b2 r9565ec  
    1717#include "tesselation.hpp"
    1818#include "tesselationhelpers.hpp"
     19#include "World.hpp"
    1920
    2021#include<gsl/gsl_poly.h>
     
    805806  int N[NDIM];
    806807  int n[NDIM];
    807   double *M =  ReturnFullMatrixforSymmetric(filler->cell_size);
     808  double *M =  ReturnFullMatrixforSymmetric(World::get()->cell_size);
    808809  double Rotations[NDIM*NDIM];
    809810  double *MInverse = InverseMatrix(M);
Note: See TracChangeset for help on using the changeset viewer.