Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Box_BoundaryConditions.cpp

    rc52e08 r97f9b9  
    107107}
    108108
     109void BoundaryConditions::BCContainer::set(const std::vector< std::string > &_conditions)
     110{
     111  BoundaryConditions::Conditions_t newconditions;
     112  for (std::vector< std::string >::const_iterator iter = _conditions.begin();
     113      iter != _conditions.end(); ++iter)
     114    newconditions.push_back(getEnum(*iter));
     115  set(newconditions);
     116}
     117
    109118void BoundaryConditions::BCContainer::set(size_t index, const BoundaryConditions::BoundaryCondition_t _condition)
    110119{
     
    118127}
    119128
     129void BoundaryConditions::BCContainer::set(size_t index, const std::string &_condition)
     130{
     131  set(index, getEnum(_condition));
     132}
     133
    120134/** Converter from enum to string.
    121135 *
     
    156170  for (BoundaryConditions::BCContainer::const_iterator iter = t.begin(); iter != t.end(); ++iter) {
    157171    if (iter != t.begin())
    158       out << ", ";
     172      out << " ";
    159173    out << t.getName(*iter);
    160174  }
     
    179193  typedef boost::tokenizer< boost::char_separator<char> > tokens;
    180194  BoundaryConditions::Conditions_t conditions;
    181   boost::char_separator<char> commasep(",");
     195  boost::char_separator<char> commasep(", ");
    182196  // it is imperative to copy the content of the stringbuffer, otherwise we'll
    183197  // get strange bug where 'Wrap' != 'Wrap' and so on.
Note: See TracChangeset for help on using the changeset viewer.