Skip to content
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

Add prism element type to structure mesh generator tool. #2903

Merged

Conversation

TomFischer
Copy link
Member

@TomFischer TomFischer commented Apr 15, 2020

This allows to generate tests for the prism element.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
    The feature is tested already in Tests/MeshLib/TestMeshGenerator.cpp
  3. Any new feature or behavior change was documented?
    Command line help is updated.

MeshLib/MeshEnums.cpp Outdated Show resolved Hide resolved
Copy link
Member

@endJunction endJunction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically ok. Didn't run any tests.

case MeshLib::MeshElemType::PRISM:
mesh.reset(MeshLib::MeshGenerator::generateRegularPrismMesh(
n_subdivision[0], n_subdivision[1], n_subdivision[2], vec_dx[0],
vec_dx[1], vec_dx[2]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is vec_dx passed here and vec_div in other calls?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't exist a corresponding interface in MeshLib/MeshGenerators/MeshGenerator.h.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, you are right. There is an interface that takes the length and the number of subdivisions.

The other generator functions take BaseLib::ISubdivision as a parameter. An overload for the generateRegularPrismMesh that takes BaseLib::ISubdivision doesn't exist. So I have chosen the above function without a special reason. I'll change it to the suggested function to be a bit more consistent to the other generator functions.

@TomFischer TomFischer force-pushed the AddPrismElementTypeToStructureMeshGenerator branch 2 times, most recently from ed2ff57 to 0c3a638 Compare April 16, 2020 04:47
@bilke
Copy link
Member

bilke commented Apr 16, 2020

@TomFischer ThirdParty/cmake-modules was changed (accidentally I guess...).

@TomFischer
Copy link
Member Author

@TomFischer ThirdParty/cmake-modules was changed (accidentally I guess...).

Yes, this was an accident. I'll fix it.

@TomFischer TomFischer force-pushed the AddPrismElementTypeToStructureMeshGenerator branch from 0c3a638 to 4427ab7 Compare April 16, 2020 09:47
@endJunction endJunction merged commit d58ef90 into ufz:master Apr 17, 2020
@endJunction endJunction deleted the AddPrismElementTypeToStructureMeshGenerator branch April 17, 2020 15:32
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants