| 2034 | |
| 2035 | |
| 2036 | int |
| 2037 | Node::updateParameter(int pparameterID, Information &info) |
| 2038 | { |
| 2039 | if (pparameterID >= 1 && pparameterID <= 3) |
| 2040 | (*mass)(pparameterID-1,pparameterID-1) = info.theDouble; |
| 2041 | |
| 2042 | else if (pparameterID == 7) { |
| 2043 | (*mass)(0,0) = info.theDouble; |
| 2044 | (*mass)(1,1) = info.theDouble; |
| 2045 | } else if (pparameterID == 8) { |
| 2046 | (*mass)(0,0) = info.theDouble; |
| 2047 | (*mass)(1,1) = info.theDouble; |
| 2048 | (*mass)(2,2) = info.theDouble; |
| 2049 | } |
| 2050 | |
| 2051 | else if (pparameterID >= 4 && pparameterID <= 6) { |
| 2052 | |
| 2053 | if ( (*Crd)(pparameterID-4) != info.theDouble) { |
| 2054 | |
| 2055 | // Set the new coordinate value |
| 2056 | (*Crd)(pparameterID-4) = info.theDouble; |
| 2057 | |
| 2058 | // Need to "setDomain" to make the change take effect. |
| 2059 | Domain *theDomain = this->getDomain(); |
| 2060 | ElementIter &theElements = theDomain->getElements(); |
| 2061 | Element *theElement; |
| 2062 | while ((theElement = theElements()) != 0) { |
| 2063 | theElement->setDomain(theDomain); |
| 2064 | } |
| 2065 | } |
| 2066 | else { |
| 2067 | // No change in nodal coordinate |
| 2068 | } |
| 2069 | } |
| 2070 | |
| 2071 | return -1; |
| 2072 | } |
| 2073 | |
| 2074 | |
| 2075 |
no test coverage detected