Skip to content

fix limited precision of std::to_string when passing args to tetgen#25

Open
jvwilliams23 wants to merge 1 commit into
aurora-multiphysics:mainfrom
jvwilliams23:fix-str-precision
Open

fix limited precision of std::to_string when passing args to tetgen#25
jvwilliams23 wants to merge 1 commit into
aurora-multiphysics:mainfrom
jvwilliams23:fix-str-precision

Conversation

@jvwilliams23

Copy link
Copy Markdown
Contributor

For small max tet volumes (anything less than 1e-6 pretty much), I was getting the error that it would be truncated to 0, causing tetgen to get caught in a loop of infinitely refining. I found this was due to the precision of to_string which has been replaced with a stringstream.

Should now work up to double precision (for tet volume and tri area).

@jvwilliams23

Copy link
Copy Markdown
Contributor Author

I checked the error but not clear why it is failing the test.

@jvwilliams23

Copy link
Copy Markdown
Contributor Author

Hey @TheBEllis, would you be able to review this PR when you get a chance please?

@jvwilliams23 jvwilliams23 mentioned this pull request Sep 30, 2025
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.

1 participant