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