-
Notifications
You must be signed in to change notification settings - Fork 189
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
Recalc cutoff on skin change #3003
Recalc cutoff on skin change #3003
Conversation
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.
I don't think any of this is actually needed, can you please check if it's sufficient to just set the curoff to a finit constant? I think this just in place so that the short-range loop is not skipped, so any finite value, or potentially 0.
will do. @RudolfWeeber do you remember? Also this needs a test to check the behavior.
Codecov Report
@@ Coverage Diff @@
## python #3003 +/- ##
======================================
- Coverage 83% 83% -1%
======================================
Files 530 530
Lines 26100 26100
======================================
- Hits 21915 21914 -1
- Misses 4185 4186 +1
Continue to review full report at Codecov.
|
Maybe I am confusing this with ELC, but it still does not make sens: the maximal cutoff is used to calculate layer_h, so there is a circular dependency here. Also I fail to see how any of this is related to the skin. This is all very confused. |
My understanding is that the mmm2d kernel is executed for all pairs in a layer. As Flo said, the cutoff just has to be a positive epsilon, otherwise the short range loop is skipped entirely.
I’d only change that, if it actually can be shown that it fixes something.
|
What the method actually needs is cutoff infinity in x and y direction, and none in z direction (This would also force a compatible cell system, as this can only be supported by n2 and layered). This can not be expressed because we only consider a scalar cutoff. The hackish solution to this implemented is to set the cutoff to an arbitrary finite value, and have layered not check the value. So I think you should set it to |
Ok using a small eps for MMM2D in Coulomb:cutoff cured my MWE:
Without the PR I got: |
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.
bors r+
👎 Rejected by code reviews |
There is still no test. |
On Tue, Aug 06, 2019 at 01:08:42AM -0700, Florian Weik wrote:
There is still no test.
Sry. Overlooked that. @KonradBreitsprecher?
|
…skin_and_cutoff
@KonradBreitsprecher, could you please provide a test, then this can go into 4.1. |
…skin_and_cutoff
…her/espresso into skin_and_cutoff
I'm not getting the error anymore for the python branch (maximal interaction range larger than layer height), sth else has fixed that. Not sure what to test, for now I added a test that checks if mm2d changes the max_cut from zero to nonzero and does a test integration. |
Do I understand correctly that this is no longer needed? |
Aye
…On Thu, Sep 12, 2019, 11:30 RudolfWeeber ***@***.***> wrote:
Do I understand correctly that this is no longer needed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3003?email_source=notifications&email_token=AAG2FXZ5N6SH4NSRRVSPK53QJID4DA5CNFSM4IGOP4B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6RIQCY#issuecomment-530745355>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAG2FX26R3F6NOIUVMKKYC3QJID4DANCNFSM4IGOP4BQ>
.
|
Coulomb::cutoff()
).A skin change so far did not respect this from what I saw.