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

Gmsh file parsing logic defect #430

Open
6 tasks
j8xixo12 opened this issue Oct 6, 2024 · 5 comments
Open
6 tasks

Gmsh file parsing logic defect #430

j8xixo12 opened this issue Oct 6, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request mesh Spatial mesh

Comments

@j8xixo12
Copy link
Collaborator

j8xixo12 commented Oct 6, 2024

Thanks @tigercosmos to point out this issue in https://github.com/solvcon/modmesh/pull/429/files#r1788654979

The logic of paring physical names section and nodes section has a defect, that need to be fixed.

Before closing this issue, the following item should be finish:

  • Use const reference as argument in bool Gmsh::is_valid_transition(const std::string s)
  • Fix parser logic defect in parsing physical name and nodes section.
  • Use constexpr for the version number.
  • Maintain a table to save the token string.
  • Use emplace in
    m_elems.insert(std::pair{idx, nds_temp});
  • remove void in function declaration.
@yungyuc
Copy link
Member

yungyuc commented Oct 6, 2024

Improvement of the gmsh reader can be considered with issue #424.

@yungyuc yungyuc added enhancement New feature or request mesh Spatial mesh labels Oct 6, 2024
@yungyuc
Copy link
Member

yungyuc commented Oct 6, 2024

@j8xixo12 could you please make a check-list for all the improvements listed in #429 ?

@j8xixo12
Copy link
Collaborator Author

j8xixo12 commented Oct 6, 2024

Check-list for all the improvements in #429

  • Use const reference as argument in bool Gmsh::is_valid_transition(const std::string s)
  • Fix parser logic defect in parsing physical name and nodes section.
  • Use constexpr for the version number.
  • Maintain a table to save the token string.
  • Use emplace in
    m_elems.insert(std::pair{idx, nds_temp});
  • remove void in function declaration.

@yungyuc
Copy link
Member

yungyuc commented Oct 6, 2024

Could you please copy the check list to the issue description (by editing it)? It will be easier to track.

@j8xixo12
Copy link
Collaborator Author

j8xixo12 commented Oct 7, 2024

Could you please copy the check list to the issue description (by editing it)? It will be easier to track.

No problem !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mesh Spatial mesh
Projects
None yet
Development

No branches or pull requests

2 participants