Skip to content

Commit

Permalink
WIP Unformatted I/O for metadynamics
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Aug 23, 2023
1 parent 65f0bb8 commit e1391f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/colvarbias_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "colvarproxy.h"
#include "colvar.h"
#include "colvarbias_meta.h"
#include "colvars_memstream.h"


colvarbias_meta::colvarbias_meta(char const *key)
Expand Down Expand Up @@ -1422,6 +1423,13 @@ std::istream & colvarbias_meta::read_state_data(std::istream& is)
}


cvm::memory_stream &colvarbias_meta::read_state_data(cvm::memory_stream &is)
{
// TODO
return is;
}


void colvarbias_meta::rebin_grids_after_restart()
{
if (rebin_grids) {
Expand Down Expand Up @@ -1749,6 +1757,13 @@ std::ostream & colvarbias_meta::write_state_data(std::ostream& os)
}


cvm::memory_stream &colvarbias_meta::write_state_data(cvm::memory_stream &os)
{
// TODO
return os;
}


int colvarbias_meta::write_state_to_replicas()
{
int error_code = COLVARS_OK;
Expand Down
2 changes: 2 additions & 0 deletions src/colvarbias_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class colvarbias_meta
virtual int set_state_params(std::string const &state_conf);

std::ostream &write_state_data(std::ostream &os) override;
cvm::memory_stream &write_state_data(cvm::memory_stream &os) override;
std::istream &read_state_data(std::istream &is) override;
cvm::memory_stream &read_state_data(cvm::memory_stream &is) override;

private:

Expand Down

0 comments on commit e1391f0

Please sign in to comment.