| 68 | } |
| 69 | |
| 70 | void |
| 71 | MatParameter::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 | |
| 96 | int |
| 97 | MatParameter::sendSelf(int commitTag, Channel &theChannel) |
nothing calls this directly
no test coverage detected