New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set-parameter commands don't work anymore!!! #1107
Comments
Sorry, this was something I changed. @MassimoPetracca has a good work around until OpenSeesPy is updated. |
Sorry to call you out @MassimoPetracca, but I think this is the same problem someone posted about in the OpenSees Facebook group and you had a good solution. |
@amnp95 This was solved in PR #1078 Basically, you can manually do what setParameter does behind the scenes: replace with a combination of If you don't want to replace all your calls to setParameter, you can create a Tcl procedure (or a Python function) that shadows the original implementation until the next version will be released |
Hello! I did not find setparameter and updateparameter in the source nDMaterial.cpp. Can you tell me how to implement updateParameter? |
Hello.
I just tested the codes we used before and it was right but now all the setparameter commands give an error regarding to the "tag of parameters is already exist in the model". For example if you want to update the possion ratio for an ND Material like this:
op.setParameter('-val', 0.3, '-ele',1, 'poissonRatio', '1')
or
setParameter -value 0.3 -ele 1 poissonRatio
I don't know if somthing changed in the command with new commits or it is a bug.
The text was updated successfully, but these errors were encountered: