| 1976 | } |
| 1977 | |
| 1978 | int |
| 1979 | Domain::update(void) |
| 1980 | { |
| 1981 | // set the global constants |
| 1982 | ops_Dt = dT; |
| 1983 | ops_TheActiveDomain = this; |
| 1984 | |
| 1985 | int ok = 0; |
| 1986 | |
| 1987 | // invoke update on all the ele's |
| 1988 | ElementIter &theEles = this->getElements(); |
| 1989 | Element *theEle; |
| 1990 | |
| 1991 | while ((theEle = theEles()) != 0) { |
| 1992 | ops_TheActiveElement = theEle; |
| 1993 | ok += theEle->update(); |
| 1994 | } |
| 1995 | |
| 1996 | if (ok != 0) |
| 1997 | opserr << "Domain::update - domain failed in update\n"; |
| 1998 | |
| 1999 | return ok; |
| 2000 | } |
| 2001 | |
| 2002 | |
| 2003 | int |
no test coverage detected