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

Method setTemperatureUnit

SRC/utility/SimulationInformation.cpp:254–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254int
255SimulationInformation::setTemperatureUnit(const char *name)
256{
257 // check for valid i/p
258 if (name == 0)
259 return -1;
260
261 // delete the old
262 if (temperatureUnit != 0)
263 delete[] temperatureUnit;
264
265 // create new space & copy string
266 temperatureUnit = new char[strlen(name) + 1];
267 if (temperatureUnit == 0)
268 return -1;
269 strcpy(temperatureUnit, name);
270
271 return 0;
272}
273
274int
275SimulationInformation::addInputFile(const char *fileName, const char *path)

Callers 2

OPS_defaultUnitsFunction · 0.45
defaultUnitsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected