Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/commands/ivcoord_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ void IVCoordCommand::parse_args(int argc, char* argv[], int& i, CommandContext&
if (ivc_direction < -1 || ivc_direction > 1)
{
context.warnings.push_back(
"Warning: idirection in param file should be -1, 0, or +1; reset to 1");
ivc_direction = 1;
"Warning: idirection in param file should be -1, 0, or +1; reset to 0");
ivc_direction = 0;
Comment on lines +165 to +166
}
}
else
Expand All @@ -181,8 +181,8 @@ void IVCoordCommand::parse_args(int argc, char* argv[], int& i, CommandContext&
out << "# Displace geometry along imaginary normal modes\n\n";
out << "# Displacement amplitude (default: 1.0)\n";
out << "iamp = 1.0\n\n";
out << "# Direction: +1 = plus only, -1 = minus only, 0 = both (default: 1)\n";
out << "idirection = 1\n";
out << "# Direction: +1 = plus only, -1 = minus only, 0 = both (default: 0)\n";
out << "idirection = 0\n";
out.close();
std::cout << "Generated parameter template: " << filename << std::endl;
std::cout << "Use with: cck ivcoord --param-file " << filename << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/ivcoord_command.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class IVCoordCommand : public ICommand

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
};

#endif // IVCOORD_COMMAND_H
Loading