Skip to content

Fix bug from PR#239 in EnzoMethodPmDeposit#253

Merged
tumlinson merged 3 commits into
enzo-project:mainfrom
mabruzzo:PmDepositBugfix
Jul 9, 2022
Merged

Fix bug from PR#239 in EnzoMethodPmDeposit#253
tumlinson merged 3 commits into
enzo-project:mainfrom
mabruzzo:PmDepositBugfix

Conversation

@mabruzzo
Copy link
Copy Markdown
Contributor

@mabruzzo mabruzzo commented Jul 7, 2022

PR #239 introduced a minor bug in which array used for storing the output of dep_grid_cic was not large enough. This caused dep_grid_cic to write values to invalid locations in memory. This bug manifested in weird ways when using compiling with intel compilers (under special conditions)

In addition to fixing that bug, some variable names were updated so that their significance is more obvious

mabruzzo added 2 commits July 7, 2022 13:32
PR enzo-project#239 introduced a minor bug in which array used for storing the output of dep_grid_cic was not large enough. This caused dep_grid_cic to write values to invalid locations in memory. This bug manifested in weird ways when using compiling with intel compilers (under special conditions)

In addition to fixing that bug, some variable names were updated so that their significance became more apparent
@tumlinson tumlinson self-requested a review July 8, 2022 00:19
@peeples peeples requested review from gregbryan July 8, 2022 01:05
Copy link
Copy Markdown
Contributor

@gregbryan gregbryan left a comment

Choose a reason for hiding this comment

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

This is likely due to the fact that CIC deposition can end up with mass off the edge of the active grid.

Copy link
Copy Markdown
Contributor

@tumlinson tumlinson left a comment

Choose a reason for hiding this comment

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

approved based on success of modest cosmo runs that had previously failed.

@tumlinson tumlinson merged commit 41bdec4 into enzo-project:main Jul 9, 2022
@mabruzzo mabruzzo deleted the PmDepositBugfix branch July 11, 2022 16:03
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