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

Function OPS_printNDMaterial

DEVELOPER/core/NDMaterial.cpp:89–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void OPS_printNDMaterial(OPS_Stream &s, int flag) {
90 if (flag == OPS_PRINT_PRINTMODEL_JSON) {
91 s << "\t\t\"ndMaterials\": [\n";
92 MapOfTaggedObjectsIter theObjects = theNDMaterialObjects.getIter();
93 theObjects.reset();
94 TaggedObject *theObject;
95 int count = 0;
96 int numComponents = theNDMaterialObjects.getNumComponents();
97 while ((theObject = theObjects()) != 0) {
98 NDMaterial *theMaterial = (NDMaterial *)theObject;
99 theMaterial->Print(s, flag);
100 if (count < numComponents - 1)
101 s << ",\n";
102 count++;
103 }
104 s << "\n\t\t]";
105 }
106}
107
108NDMaterial::NDMaterial(int tag, int classTag)
109:Material(tag,classTag)

Callers 1

PrintMethod · 0.70

Calls 4

getIterMethod · 0.45
resetMethod · 0.45
getNumComponentsMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected