-
Notifications
You must be signed in to change notification settings - Fork 247
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
[MPM] Change application name #12011
Conversation
…d `PARTICLES_PER_CONDITION` with `MATERIAL_POINTS_PER_CONDITION`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont have any objections, but I strongly recommend to add backward compatibility
Otherwise you are breaking every single existing case out there
And speaking from experience, others are not happy abt this ;)
@@ -78,13 +78,13 @@ | |||
}] | |||
}, | |||
"print_output_process" : [{ | |||
"python_module" : "particle_json_output_process", | |||
"kratos_module" : "KratosMultiphysics.ParticleMechanicsApplication", | |||
"python_module" : "mpm_json_output_process", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g. this is not backward compatible
{ | ||
"type" : "solver_wrappers.kratos.particle_mechanics_dirichlet_wrapper", | ||
"type" : "solver_wrappers.kratos.mpm_dirichlet_wrapper", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@philbucher so should I duplicate all the python files, keeping both the one with the old name and the new one? |
I would add wrappers with the old name, that create an object of the new type. |
...ionApplication/python_scripts/solver_wrappers/kratos/particle_mechanics_dirichlet_wrapper.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no objections, looking good from my side.
I am still a bit worried about the backward compatibility, seems like many things have changed
My suggestion is to only update some tests, and leave others with the old input. This way you are sure that the backward compatibility that you implement is working properly
...ionApplication/python_scripts/solver_wrappers/kratos/particle_mechanics_dirichlet_wrapper.py
Outdated
Show resolved
Hide resolved
applications/CoSimulationApplication/tests/mpm_dem/MaterialPointMaterials.json
Outdated
Show resolved
Hide resolved
@philbucher as you suggested, I also added the wrappers with the old names of python processes and left the old inputs in the tests. |
cool, looks good from my side I leave the approval to an active user of the App, maybe @VeronikaSinger ? |
Thanks @philbucher for the review and thanks @ncrescenzio for the renaming of the application. I approve |
Thanks @philbucher @VeronikaSinger! |
This PR changes the name of the application implementing the Material Point Method from
ParticleMechanicsApplication
toMPMApplication
@antonialarese
@KratosMultiphysics/technical-committee