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