- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/WorldAction/AddEmptyBoundaryAction.cpp
r84c494 r623e89 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp"9 7 10 8 #include "Actions/WorldAction/AddEmptyBoundaryAction.hpp" … … 41 39 int j=0; 42 40 43 dialog->queryVector(NAME, &boundary, false, MapOfActions::getInstance().getDescription(NAME));41 dialog->queryVector(NAME, &boundary, World::getInstance().getDomain(), false, MapOfActions::getInstance().getDescription(NAME)); 44 42 45 43 if(dialog->display()) { … … 59 57 } 60 58 // set new box size 61 double * const cell_size = new double[6];59 double * const cell_size = World::getInstance().getDomain(); 62 60 for (j=0;j<6;j++) 63 61 cell_size[j] = 0.; … … 67 65 cell_size[j] = (Max[i]-Min[i]+2.*boundary[i]); 68 66 } 69 World::getInstance().setDomain(cell_size);70 delete[] cell_size;71 67 // translate all atoms, such that Min is aty (0,0,0) 72 68 AtomRunner = AllAtoms.begin();
Note:
See TracChangeset
for help on using the changeset viewer.