Allow non-conservative simulations without stress#47
Allow non-conservative simulations without stress#47PicoCentauri wants to merge 1 commit intometatomicfrom
Conversation
|
If Alternatively, we could allow I don't have strong feeling here, we can either automatically use autodiff when the non_conservative output does not exists; or force the user to tell us and have |
|
I think a fallback to autodiff and write a warning might not be read by the user. I am more in favour of raising an error if either
|
|
I'm fine with the error, but it seems that there is a typo (
|
|
Yes sorry for the typo. Okay let's do this options. |
87bb247 to
eaf4f6f
Compare
eaf4f6f to
ae0531e
Compare
|
I assume, we have to add the same logic to ASE once we merged this. |
|
Yes, we can even start adding it now! |
Luthaf
left a comment
There was a problem hiding this comment.
Looks good, just one question about the error message!
| error->one(FLERR, | ||
| "{} Consider using 'non_conservative forces' or 'non_conservative off' instead.", | ||
| e.what() | ||
| ); |
There was a problem hiding this comment.
How does this looks like if the user made a typo in the variant name?
There was a problem hiding this comment.
Arghh yes this might look. Let me try if we can make this better.
This is a bit delicate. The problem seems to be that the
vflag_globalis kind of always set. I tried a minimal NVE simulation and athermo_stylewhere there is no pressure output. But even during this run, the flag is set to true.The only workaround I see is to warn the user at init time and unfortunately silently ignore the pressure output during the run.
I am open to any better suggestions. @Luthaf or @HaoZeke.