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

Method setParameter

SRC/element/UWelements/SSPquadUP.cpp:1011–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011int
1012SSPquadUP::setParameter(const char **argv, int argc, Parameter &param)
1013{
1014 if (argc < 1) {
1015 return -1;
1016 }
1017 int res = -1;
1018
1019 // check for element parameters first
1020 if (strcmp(argv[0],"hPerm") == 0) {
1021 return param.addObject(3, this);
1022 } else if (strcmp(argv[0],"vPerm") == 0) {
1023 return param.addObject(4, this);
1024 //LM change
1025 // quad pressure loading
1026 } else if (strcmp(argv[0],"pressureUpperSide") == 0) {
1027 return param.addObject(9, this);
1028 } else if (strcmp(argv[0],"pressureLowerSide") == 0) {
1029 return param.addObject(10, this);
1030 } else if (strcmp(argv[0],"pressureLeftSide") == 0) {
1031 return param.addObject(11, this);
1032 } else if (strcmp(argv[0],"pressureRightSide") == 0) {
1033 return param.addObject(12, this);
1034 } else if (strcmp(argv[0],"b1") == 0) {
1035 return param.addObject(13,this);
1036 } else if (strcmp(argv[0],"b2") == 0) {
1037 return param.addObject(14,this);
1038 //LM change
1039 } else {
1040 // default is to call setParameter in the material
1041 int matRes = res;
1042 matRes = theMaterial->setParameter(argv, argc, param);
1043 if (matRes != -1) {
1044 res = matRes;
1045 }
1046 }
1047
1048 return res;
1049}
1050
1051int
1052SSPquadUP::updateParameter(int parameterID, Information &info)

Callers

nothing calls this directly

Calls 1

addObjectMethod · 0.45

Tested by

no test coverage detected