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

Method setParameter

SRC/element/UWelements/SSPbrickUP.cpp:1194–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1192}
1193
1194int
1195SSPbrickUP::setParameter(const char **argv, int argc, Parameter &param)
1196{
1197 if (argc < 1) {
1198 return -1;
1199 }
1200
1201 int res = -1;
1202
1203 // check for element parameters first
1204 if (strcmp(argv[0],"xPerm") == 0) {
1205 // permeability in direction 1
1206 return param.addObject(3, this);
1207 } else if (strcmp(argv[0],"yPerm") == 0) {
1208 // permeability in direction 2
1209 return param.addObject(4, this);
1210 } else if (strcmp(argv[0],"zPerm") == 0) {
1211 // permeability in direction 3
1212 return param.addObject(6, this);
1213 } else {
1214 // default is to call setParameter in the material
1215 int matRes = res;
1216 matRes = theMaterial->setParameter(argv, argc, param);
1217 if (matRes != -1) {
1218 res = matRes;
1219 }
1220 }
1221
1222 return res;
1223}
1224
1225int
1226SSPbrickUP::updateParameter(int parameterID, Information &info)

Callers

nothing calls this directly

Calls 1

addObjectMethod · 0.45

Tested by

no test coverage detected