Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/AddEmptyBoundaryAction.cpp

    r84c494 r623e89  
    55 *      Author: heber
    66 */
    7 
    8 #include "Helpers/MemDebug.hpp"
    97
    108#include "Actions/WorldAction/AddEmptyBoundaryAction.hpp"
     
    4139  int j=0;
    4240
    43   dialog->queryVector(NAME, &boundary, false, MapOfActions::getInstance().getDescription(NAME));
     41  dialog->queryVector(NAME, &boundary, World::getInstance().getDomain(), false, MapOfActions::getInstance().getDescription(NAME));
    4442
    4543  if(dialog->display()) {
     
    5957    }
    6058    // set new box size
    61     double * const cell_size = new double[6];
     59    double * const cell_size = World::getInstance().getDomain();
    6260    for (j=0;j<6;j++)
    6361      cell_size[j] = 0.;
     
    6765      cell_size[j] = (Max[i]-Min[i]+2.*boundary[i]);
    6866    }
    69     World::getInstance().setDomain(cell_size);
    70     delete[] cell_size;
    7167    // translate all atoms, such that Min is aty (0,0,0)
    7268    AtomRunner = AllAtoms.begin();
Note: See TracChangeset for help on using the changeset viewer.