Changes in src/molecule.cpp [49e1ae:046783]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.cpp
r49e1ae r046783 23 23 #include "tesselation.hpp" 24 24 #include "vector.hpp" 25 #include "World.hpp" 25 26 26 27 /************************************* Functions for class molecule *********************************/ … … 45 46 for(int i=MAX_ELEMENTS;i--;) 46 47 ElementsInMolecule[i] = 0; 47 cell_size[0] = cell_size[2] = cell_size[5]= 20.; 48 cell_size[1] = cell_size[3] = cell_size[4]= 0.; 49 strcpy(name,"none"); 48 strcpy(name,World::get()->DefaultName); 50 49 }; 51 50 … … 159 158 double *matrix = NULL; 160 159 bond *Binder = NULL; 160 double * const cell_size = World::get()->cell_size; 161 161 162 162 // Log() << Verbose(3) << "Begin of AddHydrogenReplacementAtom." << endl; … … 603 603 void molecule::SetBoxDimension(Vector *dim) 604 604 { 605 double * const cell_size = World::get()->cell_size; 605 606 cell_size[0] = dim->x[0]; 606 607 cell_size[1] = 0.; … … 693 694 bool molecule::CheckBounds(const Vector *x) const 694 695 { 696 double * const cell_size = World::get()->cell_size; 695 697 bool result = true; 696 698 int j =-1;
Note:
See TracChangeset
for help on using the changeset viewer.