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

Method setDomain

SRC/domain/component/MatParameter.cpp:70–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void
71MatParameter::setDomain(Domain *theDomain)
72{
73 Element *theEle;
74 ElementIter &theEles = theDomain->getElements();
75
76 int theResult = -1;
77
78 const char *theString[2];
79 char materialIdTag[20];
80
81 sprintf(materialIdTag,"%d",theMaterialTag);
82 theString[0] = theParameterName;
83 theString[1] = materialIdTag;
84
85 // note because of the way this parameter is updated only need to find one in the domain
86 while ((theEle = theEles()) != 0) {
87 int result = theEle->setParameter(theString, 2, *this);
88 if (result != -1)
89 theResult = result;
90 }
91
92 if (theResult == -1)
93 opserr << "MatParameter::setDomain(Domain *theDomain) - NO RESULT\n";
94}
95
96int
97MatParameter::sendSelf(int commitTag, Channel &theChannel)

Callers

nothing calls this directly

Calls 2

getElementsMethod · 0.45
setParameterMethod · 0.45

Tested by

no test coverage detected