Skip to content

Commit

Permalink
Support 'NONE', 'No', 'none' etc. instead of 'None' for the cutoff fi…
Browse files Browse the repository at this point in the history
…eld.
  • Loading branch information
ttadano committed Feb 22, 2016
1 parent c67fd5c commit 2387335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion alm/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ void Input::parse_cutoff_radii()
jkd = kd_map[str_pair[1]];

for (order = 0; order < maxorder; ++order) {
if (cutoff_line[order + 1] == "None") {
// if (cutoff_line[order + 1] == "None") {
if (cutoff_line[order+1][0] == 'N' or cutoff_line[order+1][0] == 'n') {
// Minus value for cutoff radius.
// This is a flag for neglecting cutoff radius
cutoff_tmp = -1.0;
Expand Down
4 changes: 0 additions & 4 deletions alm/interaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ void Interaction::init()
std::cout << std::endl;
}

// for (i = 0; i < 3; ++i) {
// if(!is_periodic[i]) nsize[i] = 0;
// }

nneib = (2 * nsize[0] + 1) * (2 * nsize[1] + 1) * (2 * nsize[2] + 1);
memory->allocate(x_image, nneib, nat, 3);
memory->allocate(exist_image, nneib);
Expand Down

0 comments on commit 2387335

Please sign in to comment.