You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtraNodesetGenerator has a coordinate parameter coords that is mighty confusing. In most MOOSE objects we expect coordinates to be passed in with three components. coords however expects a list of coordinates, where each point is supposed to have dim components, where dim is the mesh dimension. That means 1.0 0.0 0.0 selects the one point (1,0,0) in a 3D mesh, but the three points (1,0,0), (0,0,0) (0,0,0) in a 1D mesh.
Design
We have support for lists of lists (with the top level being semicolon separated). I suggest we disambiguate the syntax by making coords a std::vector<std::vector>> parameter. Ideally we'd make it std::vector<Point> and improve how MOOSE handles that type, but that would likely be an app breaking change.
Impact
Clearer interface
The text was updated successfully, but these errors were encountered:
dschwen
added
T: task
An enhancement to the software.
P: normal
A defect affecting operation with a low possibility of significantly affects.
labels
Mar 20, 2020
Reason
ExtraNodesetGenerator
has a coordinate parametercoords
that is mighty confusing. In most MOOSE objects we expect coordinates to be passed in with three components.coords
however expects a list of coordinates, where each point is supposed to have dim components, where dim is the mesh dimension. That means1.0 0.0 0.0
selects the one point (1,0,0) in a 3D mesh, but the three points (1,0,0), (0,0,0) (0,0,0) in a 1D mesh.Design
We have support for lists of lists (with the top level being semicolon separated). I suggest we disambiguate the syntax by making
coords
astd::vector<std::vector>>
parameter. Ideally we'd make itstd::vector<Point>
and improve how MOOSE handles that type, but that would likely be an app breaking change.Impact
Clearer interface
The text was updated successfully, but these errors were encountered: