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

Method removeValue

SRC/matrix/ID.cpp:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247int
248ID::removeValue(int value)
249{
250 int place = -1;
251 for (int i=0; i<sz; i++)
252 if (data[i] == value) {
253 place = i;
254 // copy the rest of the components down one in ID
255 for (int j=i; j<sz-1; j++)
256 data[j] = data[j+1];
257 sz--;
258 }
259 return place;
260}
261
262
263int

Callers 3

disconnectMethod · 0.45
removeElementMethod · 0.45
removeNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected