knotkit/mpi_aux.h
Cotton Seed 56e3070bc4 Added knot_desc to knotkit.h/knot_tables.cpp. Resurrected MPI
support.  mpimain.cpp set up to tabulate Kh and steenrod squares.
2012-07-28 13:20:37 -04:00

21 lines
560 B
C++

void comm_init (int *argc, char ***argv);
void comm_finalize ();
int self_rank ();
int num_tasks ();
void send_int (int v, int dest);
void send_string (const char *s, int dest);
void send_string (const std::string &s, int dest);
void send_htw_knot (unsigned n, bool alternating, unsigned k, int dest);
int recv_int (int *src);
knot_diagram recv_knot (int *src);
std::string recv_string (int *src);
inline int recv_int () { return recv_int (0); }
knot_diagram recv_knot () { return recv_knot (0); }
std::string recv_string () { return recv_string (0); }