| 1319 | } |
| 1320 | |
| 1321 | int |
| 1322 | ComponentElement2d::setParameter(const char **argv, int argc, Parameter ¶m) |
| 1323 | { |
| 1324 | if (argc < 1) |
| 1325 | return -1; |
| 1326 | |
| 1327 | // E of the beam interior |
| 1328 | if (strcmp(argv[0],"E") == 0) |
| 1329 | return param.addObject(1, this); |
| 1330 | |
| 1331 | // A of the beam interior |
| 1332 | if (strcmp(argv[0],"A") == 0) |
| 1333 | return param.addObject(2, this); |
| 1334 | |
| 1335 | // I of the beam interior |
| 1336 | if (strcmp(argv[0],"I") == 0) |
| 1337 | return param.addObject(3, this); |
| 1338 | |
| 1339 | return -1; |
| 1340 | } |
| 1341 | |
| 1342 | int |
| 1343 | ComponentElement2d::updateParameter (int parameterID, Information &info) |