Skip to content

Commit

Permalink
reduce mem consumption in dih-shift
Browse files Browse the repository at this point in the history
  • Loading branch information
lettis committed Dec 8, 2015
1 parent ceece5c commit 9ecae71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ namespace FastPCA {

std::vector<double>
dih_shifts(const std::string filename
, const std::size_t max_chunk_size) {
, std::size_t max_chunk_size) {
max_chunk_size /= 2;
// get number of columns from file
std::size_t n_cols;
{
Expand Down
2 changes: 1 addition & 1 deletion src/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace FastPCA {
*/
std::vector<double>
dih_shifts(const std::string filename
, const std::size_t max_chunk_size);
, std::size_t max_chunk_size);
} // end namespace FastPCA::Periodic

} // end namespace FastPCA
Expand Down

0 comments on commit 9ecae71

Please sign in to comment.