Skip to content

Commit

Permalink
add missing twp pi (idaholab#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen authored and recuero committed Apr 29, 2020
1 parent d071f7b commit eb25146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/userobjects/FFTBufferBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ FFTBufferBase<T>::FFTBufferBase(const InputParameters & parameters)
// precompute kvector components for current direction
_k_table[i].resize(_grid[i]);
for (int j = 0; j < _grid[i]; ++j)
_k_table[i][j] = ((j < (_grid[i] >> 1) + 1) ? Real(j) : (Real(j) - _grid[i])) / _box_size(i);
_k_table[i][j] = 2.0 * libMesh::pi *
((j < (_grid[i] >> 1) + 1) ? Real(j) : (Real(j) - _grid[i])) / _box_size(i);
}
_real_space_data.resize(real_space_buffer_size);
_reciprocal_space_data.resize(reciprocal_space_buffer_size);
Expand Down

0 comments on commit eb25146

Please sign in to comment.