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

Method setParameter

SRC/element/PFEMElement/PFEMElement2DCompressible.cpp:986–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986int
987PFEMElement2DCompressible::setParameter(const char **argv, int argc,
988 Parameter &parameter)
989{
990 if (argc < 1)
991 return -1;
992
993 if (strcmp(argv[0],"mu") == 0) {
994 parameter.setValue(mu);
995 return parameter.addObject(1, this);
996 } else if (strcmp(argv[0],"rho") == 0) {
997 parameter.setValue(rho);
998 return parameter.addObject(2, this);
999 } else if (strcmp(argv[0],"bx") == 0) {
1000 parameter.setValue(b1);
1001 return parameter.addObject(3, this);
1002 } else if (strcmp(argv[0],"by") == 0) {
1003 parameter.setValue(b2);
1004 return parameter.addObject(4, this);
1005 } else if (strcmp(argv[0],"thickness") == 0) {
1006 parameter.setValue(thickness);
1007 return parameter.addObject(5, this);
1008 }
1009
1010 return -1;
1011}
1012
1013int
1014PFEMElement2DCompressible::updateParameter(int passparameterID, Information &info)

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected