-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Some updates for mesh generation #3275
Conversation
cpp/dolfinx/mesh/generation.h
Outdated
// Create tetrahedra | ||
for (std::int64_t i = range_c[0]; i < range_c[1]; ++i) | ||
{ | ||
const std::int64_t iz = i / (nx * ny); |
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.
We usually dont use const assignment for integers. Maybe @garth-wells can comment?
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.
House style is we don't normally use const
for owned variables inside functions.
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.
So remove const
in these cases? They were marked const
before this PR.
cpp/dolfinx/mesh/generation.h
Outdated
// Create tetrahedra | ||
for (std::int64_t i = range_c[0]; i < range_c[1]; ++i) | ||
{ | ||
const std::int64_t iz = i / (nx * ny); |
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.
House style is we don't normally use const
for owned variables inside functions.
|
1109985
to
0737629
Compare
* Fix cmake * Implement a one dimensional refinement routine * Change to assert * Switch to ghost mode by user choice * Switch naming from 'edges' to 'cells' * More 'edge' -> 'cell' * Add parameter of intervals and explicit data type * Bug fix in test * Remove vector<bool> comment * Capitalization of comments * Split -> refined * Doc string * Fix edge confusion * Switch to ghost mode default shared_facet * Fix float comparison * Fix typo * Fix type * Remove auto * Add brackets for readability
* Rename interval refinement test file Pytest discovery previously ignored the interval test case, since it did not match the expected `test_` naming scheme * Fix: implicit ghost_mode of interval mesh made explicit * Fix: Bug for parallel interval refinement Caused by assumption that ghost cells are refined on the process as well, which is not the case -> job of remote process that owns it
0737629
to
a49666b
Compare
Fixed the wrong git setup in the initial commits. |
…olfinx into create_rectangle
While reading up on the mesh generation I had quite a hard time to understand what was going on in
generation.h
. This contains some tidying up of the code and relocation of input checks to more central positions.What this PR does not change but should be done in the future is (if PR gets accepted I'll make this a new issue)
create_interval
,create_rectangle
andcreate_box