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

Fixed the float dimension decimals. #1268

Closed
wants to merge 2 commits into from

Conversation

jyang-TP
Copy link
Contributor

@jyang-TP jyang-TP commented May 17, 2023

Description

A RuntimeError was identified when generating MCNP inputs at BOEC/MOEC/EOEC for a downstream application. Specifically, in getting the top surface number in the global dictionary.

image
image

The issue was caused by the float decimals. MCNP method getSurfNum returns a surface number by the surface type and the associated value with 10 decimals (units.FLOAT_DIMENSION_DECIMALS).

This PR aims to resolve the float decimals issue. Not sure the overall consequence if setting the global parameter FLOAT_DIMENSION_DECIMALS to 8. For MCNP geometry generation, it has little impact as long as it is used consistently.

@CLAassistant
Copy link

CLAassistant commented May 17, 2023

CLA assistant check
All committers have signed the CLA.

@jyang-TP jyang-TP marked this pull request as draft May 17, 2023 23:31
@jyang-TP jyang-TP marked this pull request as ready for review May 17, 2023 23:32
@onufer onufer requested a review from keckler May 18, 2023 18:18
@keckler
Copy link
Member

keckler commented May 18, 2023

Hi @jyang-TP , thanks for putting in this fix. Can you add a description to the PR so that reviewers or other interested parties can have some context on why this PR is needed and what it is meant to do? Thanks!

Copy link
Member

@keckler keckler left a comment

Choose a reason for hiding this comment

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

It seems that we have a problem here. Check out this PR that was merged just a couple months ago: #1225

Your change is essentially reverting the PR that I point out, which was implemented to fix a bug with the uniform mesh converter. It actually says as much in the docstring of the method that you changed (findAllmeshPoints()).

So it looks like we have conflicting needs here, where the uniform mesh converter needs less digits of precision, but your needs require more.

In order to find a solution that will satisfy both your needs and @albeanth 's needs, I think it would be very helpful to add a bit more context to this PR that outlines why you are trying to make this change.

@albeanth
Copy link
Member

@jyang-TP or it your PR isn't ready, please mark it as a draft. When the PR is open, reviewers will interpret it as "ready-to-go right now" and start reviewing it.

@jyang-TP jyang-TP marked this pull request as draft May 18, 2023 20:35
@jyang-TP jyang-TP marked this pull request as ready for review May 18, 2023 22:08
@jyang-TP
Copy link
Contributor Author

This PR will be closed. All the proposed changes are included in #1283.

@jyang-TP jyang-TP closed this May 30, 2023
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