Changes in src/Box_BoundaryConditions.cpp [97f9b9:c52e08]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Box_BoundaryConditions.cpp
r97f9b9 rc52e08 107 107 } 108 108 109 void 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 118 109 void BoundaryConditions::BCContainer::set(size_t index, const BoundaryConditions::BoundaryCondition_t _condition) 119 110 { … … 125 116 #endif 126 117 (*this)[index] = _condition; 127 }128 129 void BoundaryConditions::BCContainer::set(size_t index, const std::string &_condition)130 {131 set(index, getEnum(_condition));132 118 } 133 119 … … 170 156 for (BoundaryConditions::BCContainer::const_iterator iter = t.begin(); iter != t.end(); ++iter) { 171 157 if (iter != t.begin()) 172 out << " ";158 out << ", "; 173 159 out << t.getName(*iter); 174 160 } … … 193 179 typedef boost::tokenizer< boost::char_separator<char> > tokens; 194 180 BoundaryConditions::Conditions_t conditions; 195 boost::char_separator<char> commasep(", 181 boost::char_separator<char> commasep(","); 196 182 // it is imperative to copy the content of the stringbuffer, otherwise we'll 197 183 // get strange bug where 'Wrap' != 'Wrap' and so on.
Note:
See TracChangeset
for help on using the changeset viewer.