| 232 | } |
| 233 | |
| 234 | int |
| 235 | SimulationInformation::setTimeUnit(const char *name) |
| 236 | { |
| 237 | // check for valid i/p |
| 238 | if (name == 0) |
| 239 | return -1; |
| 240 | |
| 241 | // delete the old |
| 242 | if (timeUnit != 0) |
| 243 | delete [] timeUnit; |
| 244 | |
| 245 | // create new space & copy string |
| 246 | timeUnit = new char[strlen(name)+1]; |
| 247 | if (timeUnit == 0) |
| 248 | return -1; |
| 249 | strcpy(timeUnit, name); |
| 250 | |
| 251 | return 0; |
| 252 | } |
| 253 | |
| 254 | int |
| 255 | SimulationInformation::setTemperatureUnit(const char *name) |
no outgoing calls
no test coverage detected