| 239 | } |
| 240 | |
| 241 | void |
| 242 | Pressure_Constraint::connect(int eleId, bool fluid) |
| 243 | { |
| 244 | Domain* theDomain = this->getDomain(); |
| 245 | if(theDomain == 0) { |
| 246 | opserr<<"WARNING: domain has not been set"; |
| 247 | opserr<<" -- Pressure_Constraint::connect\n"; |
| 248 | return; |
| 249 | } |
| 250 | |
| 251 | Element* theEle = theDomain->getElement(eleId); |
| 252 | if(theEle == 0) { |
| 253 | opserr<<"WARNING: element "<<eleId<<" does not exist "; |
| 254 | opserr<<"-- Pressure_Constraint::connect\n"; |
| 255 | return; |
| 256 | } |
| 257 | |
| 258 | if(fluid) { |
| 259 | fluidEleTags.insert(eleId); |
| 260 | } else { |
| 261 | bool isfluid = false; |
| 262 | for(int i=0; i<fluidEleTags.Size(); i++) { |
| 263 | if(fluidEleTags(i) == eleId) { |
| 264 | isfluid = true; |
| 265 | break; |
| 266 | } |
| 267 | } |
| 268 | if(!isfluid) { |
| 269 | otherEleTags.insert(eleId); |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | void |
| 275 | Pressure_Constraint::disconnect(int eleId) |
nothing calls this directly
no test coverage detected