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

few minor changes #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

EfremBraun
Copy link

3 main changes:

  1. A minor combination of two "if" statements
  2. An addition of a skeleton documentation file that we can build upon.
  3. A change of the "adjust" keyword so that just its absence/presence is needed, and not a "yes/no" after it. This is more similar to the existing LAMMPS style, such as the "full_energy" flag in fix_gcmc.

I also made some changes to the "testing" files. One change is just to reflect my change made to the "adjust" keyword, but the other reverts the "integrator" variable back to "rigid" instead of 1. Why was this variable changed to 1 in the last commit?

Copy link
Member

@ajsilveira ajsilveira left a comment

Choose a reason for hiding this comment

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

Please check the comments in the code

if (strcmp(arg[iarg+1],"yes") == 0) tune_flag = 1;
else if (strcmp(arg[iarg+1],"no") == 0) tune_flag = 0;
else error->all(FLERR,"Illegal fix hmc command");
iarg += 2;
Copy link
Member

Choose a reason for hiding this comment

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

Keyword values "yes" and "no" were added in order to be in accordance with what is usually done in lammps commands (see for example pair modify command. I think we could keep this untouched.


[Syntax:]

fix ID group-ID hmc N integrator seed T keyword values ... :pre
Copy link
Member

Choose a reason for hiding this comment

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

The order of arguments is as follows: fix ID group-ID hmc N seed T integrator keyword values


ID, group-ID are documented in "fix"_fix.html command :ulb,l
hmc = style name of this fix command :l
N = run MD N steps between MC acceptance protocol :l
Copy link
Member

Choose a reason for hiding this comment

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

We could add run NVE MD to emphasize that molecular dynamics steps correspond to the microcanonical ensemble

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.

2 participants