MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setTimeUnit

Method setTimeUnit

SRC/utility/SimulationInformation.cpp:234–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234int
235SimulationInformation::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
254int
255SimulationInformation::setTemperatureUnit(const char *name)

Callers 2

OPS_defaultUnitsFunction · 0.45
defaultUnitsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected