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

Method setDamping

SRC/element/shell/ShellMITC4.cpp:421–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421int
422ShellMITC4::setDamping(Domain *theDomain, Damping *damping)
423{
424 if (theDomain && damping)
425 {
426 for (int i = 0; i < 4; i++)
427 {
428 if (theDamping[i]) delete theDamping[i];
429
430 theDamping[i] =(*damping).getCopy();
431
432 if (!theDamping[i]) {
433 opserr << "ShellMITC4::setDamping -- failed to get copy of damping\n";
434 return -1;
435 }
436 if (theDamping[i]->setDomain(theDomain, 8)) {
437 opserr << "ShellMITC4::setDamping -- Error initializing damping\n";
438 return -2;
439 }
440 }
441 }
442 return 0;
443}
444
445//get the number of external nodes
446int ShellMITC4::getNumExternalNodes( ) const

Callers

nothing calls this directly

Calls 2

getCopyMethod · 0.45
setDomainMethod · 0.45

Tested by

no test coverage detected