Ignore:
File:
1 edited

Legend:

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

    r623e89 r84c494  
    55 *      Author: heber
    66 */
     7
     8#include "Helpers/MemDebug.hpp"
    79
    810#include "Actions/WorldAction/AddEmptyBoundaryAction.hpp"
     
    3941  int j=0;
    4042
    41   dialog->queryVector(NAME, &boundary, World::getInstance().getDomain(), false, MapOfActions::getInstance().getDescription(NAME));
     43  dialog->queryVector(NAME, &boundary, false, MapOfActions::getInstance().getDescription(NAME));
    4244
    4345  if(dialog->display()) {
     
    5759    }
    5860    // set new box size
    59     double * const cell_size = World::getInstance().getDomain();
     61    double * const cell_size = new double[6];
    6062    for (j=0;j<6;j++)
    6163      cell_size[j] = 0.;
     
    6567      cell_size[j] = (Max[i]-Min[i]+2.*boundary[i]);
    6668    }
     69    World::getInstance().setDomain(cell_size);
     70    delete[] cell_size;
    6771    // translate all atoms, such that Min is aty (0,0,0)
    6872    AtomRunner = AllAtoms.begin();
Note: See TracChangeset for help on using the changeset viewer.