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

Preserve case when writing surface cards #522

Open
tjlaboss opened this issue Aug 28, 2024 · 0 comments
Open

Preserve case when writing surface cards #522

tjlaboss opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@tjlaboss
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Presently, MontePy converts surface cards to UPPERCASE when writing out an input.

Describe the solution you'd like
Preserve the original case.

MCNP input file snippet

original:

Case-sensitive example
C Cells
1   1 -1.0    -1  
2   1 -0.5    -2 +1
3   0            +2

c Surfaces get changed
1    sO 0
2    So 2

c Data
m1      8016.71c  2-02 $ comment 1
        8017.71c  9-09 $ comment 2
imp:p   2 1 0 
mode p
nps 1

after writing:

Case-sensitive example
C Cells
1   1 -1.0    -1  
2   1 -0.5    -2 +1
3   0            +2

c Surfaces get changed
1    SO 0
2    SO 2

c Data
m1      8016.71c  2-02 $ comment 1
        8017.71c  9-09 $ comment 2
imp:p   2 1 0 
mode p
nps 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant