Skip to content

default value of imaginary direction is set to 0, meaning both minus … - #42

Merged
lenhanpham merged 1 commit into
mainfrom
dev
May 8, 2026
Merged

default value of imaginary direction is set to 0, meaning both minus …#42
lenhanpham merged 1 commit into
mainfrom
dev

Conversation

@lenhanpham

Copy link
Copy Markdown
Owner

…and plus coordiates are extractred

Copilot AI review requested due to automatic review settings May 8, 2026 05:34
@lenhanpham
lenhanpham merged commit eef2c37 into main May 8, 2026
11 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the ivcoord command’s default displacement direction so that, by default, both plus and minus imaginary-mode displacements are produced (direction = 0).

Changes:

  • Changed the built-in default ivc_direction from 1 (plus only) to 0 (both).
  • Updated the parameter-file validation fallback and the generated parameter template to use 0 as the default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/commands/ivcoord_command.h Changes the built-in default direction to 0 (both).
src/commands/ivcoord_command.cpp Updates param-file fallback behavior and generated params template to default to 0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

private:
double ivc_amp = 1.0; ///< Displacement amplitude
int ivc_direction = 1; ///< +1 = plus, -1 = minus, 0 = both
int ivc_direction = 0; ///< +1 = plus, -1 = minus, 0 = both
Comment on lines +165 to +166
"Warning: idirection in param file should be -1, 0, or +1; reset to 0");
ivc_direction = 0;
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