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 initialisation of layers/boundaries, technical grid needs updating #407

Merged
merged 2 commits into from
May 15, 2019

Conversation

ykempf
Copy link
Contributor

@ykempf ykempf commented May 15, 2019

My suggestion, posted as a PR for safety...

@ykempf ykempf requested review from galfthan, tkoskela and ursg May 15, 2019 05:49
@ykempf
Copy link
Contributor Author

ykempf commented May 15, 2019

The first reviewer who is ok with this can merge it. :)

@@ -409,6 +409,7 @@ bool SysBoundary::classifyCells(dccrg::Dccrg<spatial_cell::SpatialCell,dccrg::Ca
// sysBoundaryLayer communicated)
SpatialCell::set_mpi_transfer_type(Transfer::CELL_SYSBOUNDARYFLAG);
mpiGrid.update_copies_of_remote_neighbors(SYSBOUNDARIES_NEIGHBORHOOD_ID);
technicalGrid.updateGhostCells();
Copy link
Member

Choose a reason for hiding this comment

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

My only comment is that I would move this to around line 477, so that the technical grid layer computation is in one place. Now the dccrg layer computation is inbetween

Copy link
Member

Choose a reason for hiding this comment

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

Other than that it is fine :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like so?

@galfthan galfthan merged commit 07f3744 into fmihpc:dev May 15, 2019
@markusbattarbee
Copy link
Contributor

Does this mean the "No closest cells found!" (ionosphere.cpp, line 553) check should be kept in?

@ykempf
Copy link
Contributor Author

ykempf commented May 15, 2019

Yes, it does. That was also the topic of one of yesterday's PRs, but there were more problems with this algorithm there initialising the layers and setting DO_NOT_COMPUTE cells...

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.

3 participants