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

Method clearAll

SRC/element/PFEMElement/BackgroundMesh.cpp:731–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void BackgroundMesh::clearAll() {
732 clearBackground();
733 lower.clear();
734 upper.clear();
735 bcells.clear();
736 bnodes.clear();
737 tol = 1e-10;
738 bsize = -1.0;
739 numave = 2;
740 numsub = 4;
741
742 for (int i = 0; i < (int)recorders.size(); ++i) {
743 if (recorders[i] != 0) {
744 delete recorders[i];
745 }
746 }
747 recorders.clear();
748 locs.clear();
749 currentTime = 0.0;
750 theFile.close();
751 structuralNodes.clear();
752 for (int i = 0; i < (int)contactData.size(); ++i) {
753 contactData[i] = 0.0;
754 }
755 contactEles.clear();
756 dispon = true;
757 alphaS = 0.0;
758}
759
760int BackgroundMesh::clearBackground() {
761 // remove elements

Callers 4

OPS_clearAllMeshFunction · 0.45
OPS_clearAllCyclicModelFunction · 0.45

Calls 3

clearMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected