| 1192 | } |
| 1193 | |
| 1194 | int |
| 1195 | SSPbrickUP::setParameter(const char **argv, int argc, Parameter ¶m) |
| 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 | |
| 1225 | int |
| 1226 | SSPbrickUP::updateParameter(int parameterID, Information &info) |