-
Notifications
You must be signed in to change notification settings - Fork 24
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
Name input #60
base: main
Are you sure you want to change the base?
Name input #60
Conversation
Codecov Report
@@ Coverage Diff @@
## main #60 +/- ##
==========================================
+ Coverage 21.89% 21.92% +0.02%
==========================================
Files 3 3
Lines 2279 2281 +2
==========================================
+ Hits 499 500 +1
- Misses 1780 1781 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the idea to use this when combining nearfield and background meshes from simpleOCart? This approach would work for that case. However, if I wanted to combine two or more grids that all had blocks originally named "domain", I could not use this approach to give each grid a different name.
I think renaming blocks would be better as a preprocessing step before combineGrids
. My suggestion is to add a kwarg to renameBlocks
like newName="domain"
. If useOldNames=False
, the blocks are renamed as newName.#####
This way, we can use renameBlocks
to give each grid its desired name before calling combineGrids
.
Yeah, I will address his comments sooner, I haven't worked on this for a while. But once my current tasks are done, I will go through this. |
@ArshSaja whats the status on this? |
Sorry for the late updates @eirikurj . I will change it to a draft for now. I will provide more details on that later. |
@ArshSaja any updates on this? |
I haven't looked at it for a while. I will try to check this when I am done with the other pending PRs. |
Purpose
This PR adds an option to combining grids. If one of the block name is based on "domain", if it needs to be set to a specific name, then it can be added as an option.
Expected time until merged
Type of change
Testing
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable