openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Namespaces | Functions
SF_parallel_utils.h File Reference

Simple utility functions for parallel data. More...

#include <mpi.h>
#include "SF_container.h"
#include "SF_globals.h"
#include "SF_mesh_io.h"
#include "SF_vector.h"
Include dependency graph for SF_parallel_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SF
 

Functions

template<class T >
void SF::sort_parallel (MPI_Comm comm, const vector< T > &idx, vector< T > &out_idx)
 Sort index values parallel ascending across the ranks. More...
 
template<class T , class V >
void SF::sort_parallel (MPI_Comm comm, const vector< T > &idx, const vector< V > &val, vector< T > &out_idx, vector< V > &out_val)
 Sort index-value tuples parallel ascending across the ranks. More...
 
template<class T , class V >
void SF::sort_parallel (MPI_Comm comm, const vector< T > &idx, const vector< T > &cnt, const vector< V > &val, vector< T > &out_idx, vector< T > &out_cnt, vector< V > &out_val)
 
template<class V >
size_t SF::root_write (FILE *fd, const vector< V > &vec, MPI_Comm comm)
 Write vector data binary to disk. More...
 
template<class V >
size_t SF::root_write (FILE *fd, V *vec, const size_t vec_size, MPI_Comm comm)
 root_write wrapper that takes array pointers instead of vectors. More...
 
template<class V >
size_t SF::root_read (FILE *fd, vector< V > &vec, MPI_Comm comm)
 Read binary data into a vector. More...
 
template<class V >
size_t SF::root_read_ascii (FILE *fd, vector< V > &vec, MPI_Comm comm, bool int_data)
 Read binary data into a vector. More...
 
size_t SF::root_count_ascii_lines (std::string file, MPI_Comm comm)
 count the lines in a ascii file More...
 
template<class V >
size_t SF::root_read (FILE *fd, V *vec, const size_t vec_size, MPI_Comm comm)
 root_read wrapper that takes array pointers instead of vectors. More...
 
template<class V >
size_t SF::root_read_ascii (FILE *fd, V *vec, const size_t vec_size, MPI_Comm comm, bool int_type)
 root_read_ascii wrapper that takes array pointers instead of vectors. More...
 
template<class T , class V >
size_t SF::root_write_ordered (FILE *fd, const vector< T > &idx, const vector< V > &vec, MPI_Comm comm)
 Write index value pairs to disk in ordered permutation. More...
 
template<class T , class V >
size_t SF::root_write_ordered (FILE *fd, const vector< T > &idx, const vector< T > &cnt, const vector< V > &vec, MPI_Comm comm)
 Write index value pairs to disk in ordered permutation. More...
 
template<class T , class V >
size_t SF::root_write_ordered (FILE *fd, T *idx, V *vec, const size_t vec_size, MPI_Comm comm)
 root_write_ordered wrapper that takes array pointers instead of vectors. More...
 
template<class T , class V >
size_t SF::root_write_ordered (FILE *fd, T *idx, T *cnt, V *vec, const size_t idx_size, const size_t vec_size, MPI_Comm comm)
 root_write_ordered wrapper that takes array pointers instead of vectors. More...
 
template<class T >
void SF::print_vector (MPI_Comm comm, const vector< T > &vec, const short dpn, FILE *fd)
 
template<class T , class S >
void SF::write_data_ascii (const MPI_Comm comm, const vector< T > &idx, const vector< S > &data, std::string file, short dpn=1)
 

Detailed Description

Simple utility functions for parallel data.

Author
Aurel Neic
Version
Date
2019-03-28

Definition in file SF_parallel_utils.h.