8000 [FileIO] GmshInterface by TomFischer · Pull Request #1212 · ufz/ogs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[FileIO] GmshInterface #1212

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

Merged
merged 37 commits into from
May 27, 2016
Merged

[FileIO] GmshInterface #1212

merged 37 commits into from
May 27, 2016

Conversation

TomFischer
Copy link
Member

The PR

  • Reintroduces the possibility to orthogonal project the input points to the x-y-plane instead of rotating it. (Rotating is still possible.)
  • Introduces PolygonWithSegmentMarker and PolylineWithSegmentMarker in GeoLib in order to mark already preprocessed line segments in the GMSHPolygonTree.
  • Fixes some mem leaks.
  • Uses C++11 style at some places.

@ogsbot
Copy link
Member
ogsbot commented May 25, 2016

Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1770/

@TomFischer
Copy link
Member Author

MathLib.DenseGaussAlgorithm test fails. I did not change anything concerning the Gauss algorithm. I think it is the same issue #997 @rinkk reported some months ago.

@@ -0,0 +1,57 @@
/**
* \brief Declaration of class PolygonWithSegmentMarker.
Copy link
Member

Choose a reason for hiding this comment

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

Definition, not declaration...

@norihiro-w
Copy link
Collaborator

👍

GMSHInterface gmsh_io(
_project.getGEOObjects(), true,
FileIO::GMSH::MeshDensityAlgorithm::AdaptiveMeshDensity,
0.05, 0.5, 2, selected_geometries);
Copy link
Member

Choose a reason for hiding this comment

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

Do the hardcoded parameters have any significance for saving geo-files?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the parameters are used within GMSHInterface::writeGMSHInputFile() which is deployed for saving geo-files.

Copy link
Member

Choose a reason for hiding this comment

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

So we just assume these values are correct when writing a geo-file? I just want to understand why specific parameter values are given when that wasn't necessary before. Because the resulting geo-file will be quite specific concerning the mesh that will would be created based on it.

Copy link
Member Author

Choose a reason for hiding this comment

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

The previous code used exact the same values internally. There are no new assumptions introduced.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. It wasn't obvious before. It's okay for debugging geo-files but here should probably be an option to adjust these values. Maybe later....

TomFischer added 25 commits May 27, 2016 06:02
The points are inserted already in initMeshDensityStrategy().
Functionality is avaiable from other methods of the class.
The check prevents to insert a line that is already a part of the node polygon.
Avoid implicit generation of
- copy constructor,
- move constructor,
- assignment operator and
- move assignment operator.
Control switches rotate and keep_preprocessed_geometry.
clang-tidy '-checks=modernize-use-auto,readability-simplify-boolean-expr' -p=../b/ FileIO/GMSHInterface.cpp
@TomFischer TomFischer merged commit 4828180 into ufz:master May 27, 2016
@TomFischer TomFischer deleted the GMSHInterface branch May 27, 2016 04:42
@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.

5 participants
0