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

Function OPS_printNDMaterial

SRC/material/nD/NDMaterial.cpp:90–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

PrintMethod · 0.50

Calls 4

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

Tested by

no test coverage detected