-
Notifications
You must be signed in to change notification settings - Fork 8
/
checkpoint_io.h
executable file
·39 lines (38 loc) · 1.95 KB
/
checkpoint_io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
** Checkpoint input-output routines.
**
** Copyright (c) 2007 - 2013 Nikolas Burkoff, Csilla Varnai and David Wild
*/
typedef struct _ChainHash{
int processor;
int index;
double ll;
} ChainHash;
int read_in_from_checkpoint(simulation_params *sim_params,
Biasmap **biasmap,
Chain *temporary,
Chain **cpoints,
Chaint **chaint,
ChainHash **chainhash,
int rank,
int P,void*mpi_comm,int only_output_checkpoint);
int read_in_from_pdb(simulation_params *sim_params,
Biasmap **biasmap, Chain *temporary, Chain **cpoints, Chaint **chaint,
ChainHash **chainhash, int rank, int P, void *mpi_comm);
void initialize_all_pdb_chains(simulation_params *sim_params,
Biasmap **biasmap, Chain *temporary, Chain **cpoints, Chaint **chaint,
ChainHash **chainhash, int rank, int current_stored, int P, void *mpi_comm);
void open_next_checkpoint_file(simulation_params *sim_params, char *action);
void initialize_checkpoint_file_as_file_pointer_to_print(simulation_params *sim_params, char *action);
void read_checkpoint_header(simulation_params *sim_params);
void read_checkpoint_entry(Chain *cpoints, simulation_params *sim_params);
void print_checkpoint_header(simulation_params *sim_params, FILE * outfile, int j);
void print_checkpoint_entry(Chain *cpoints, simulation_params *sim_params, FILE *outfile, int N);
void output_checkpoint_file(Chain *cpoints, int current_stored, simulation_params *sim_params,void *mpi_comm);
#ifdef PARALLEL
void mpi_send_chain(Chain* nsconformation, int from, int to, double *logLstar, int iter,MPI_Comm MPI_COMM);
void mpi_rec_chain(Chain *nsconformation, int from, int to, double *logLstar, int iter,MPI_Comm MPI_COMM);
#endif
void copyhash(ChainHash * to, ChainHash *from);
void constructhashheap(ChainHash * chainhash, int N);
int store_chain(ChainHash **chainhash, Chain *temporary, Biasmap *biasmap, Chaint *chaint, int P, int *current_stored, int counter, Chain **cpoints, simulation_params *sim_params, int rank, void*mpi_comm);