|
| void | opencarp::sltlst_append (Salt_list *sl, void *p, int quantum) |
| |
| char * | opencarp::dupstr (const char *old_str) |
| |
| char * | opencarp::stringify (double r) |
| |
| std::string | opencarp::get_basename (const std::string &path) |
| |
| template<class STRVEC > |
| void | opencarp::split_string (const std::string &input, const char s, STRVEC &list) |
| | Split a string holding a character-seperated list into a vector of strings. More...
|
| |
| bool | opencarp::f_exist (const char *fname) |
| |
| FILE_SPEC | opencarp::f_open (const char *fname, const char *mode) |
| | Open a FILE_SPEC. More...
|
| |
| void | opencarp::f_close (FILE_SPEC &f) |
| | Close a FILE_SPEC. More...
|
| |
| void | opencarp::f_read_par (void *ptr, size_t size, size_t nmemb, FILE_SPEC stream, MPI_Comm comm=PETSC_COMM_WORLD) |
| | Parallel fread. Root reads, then broadcasts. More...
|
| |
| void | opencarp::f_write_par (void *ptr, size_t size, size_t nmemb, int source_pid, FILE_SPEC stream, MPI_Comm comm=PETSC_COMM_WORLD) |
| | Write in parallel. Data comes from one rank, rank 0 writes. More...
|
| |
| char * | opencarp::read_bin_string (FILE_SPEC in) |
| |
| char * | opencarp::read_bin_string_par (FILE_SPEC in) |
| |
| char * | opencarp::f_gets_par (char *s, int size, FILE_SPEC stream, MPI_Comm comm) |
| |
| void | opencarp::write_bin_string (FILE_SPEC out, const char *s) |
| |
| template<typename T > |
| T | opencarp::get_global (T in, MPI_Op OP, MPI_Comm comm=PETSC_COMM_WORLD) |
| | Do a global reduction on a variable. More...
|
| |
| template<> |
| int | opencarp::get_global< int > (int in, MPI_Op OP, MPI_Comm comm) |
| |
| template<> |
| long int | opencarp::get_global< long int > (long int in, MPI_Op OP, MPI_Comm comm) |
| |
| template<typename T > |
| void | opencarp::get_global (SF::vector< T > &vec, int sender=0, MPI_Comm comm=PETSC_COMM_WORLD) |
| | Broadcast a SF::vector to all processes. More...
|
| |
| int | opencarp::get_rank (MPI_Comm comm=PETSC_COMM_WORLD) |
| |
| int | opencarp::get_size (MPI_Comm comm=PETSC_COMM_WORLD) |
| |
| int | opencarp::get_remote_size (MPI_Comm intercomm) |
| |
| void | opencarp::log_msg (FILE_SPEC out, int level, unsigned char flag, const char *fmt,...) |
| |
| void | opencarp::init_iterations_logger (FILE_SPEC *&logger, const char *filename) |
| | init a logger for solver iterations More...
|
| |
| void | opencarp::remove_preceding_char (char *buff, const int buffsize, const char c) |
| |
| void | opencarp::remove_char (char *buff, const int buffsize, const char c) |
| |
| bool | opencarp::has_char (char *buff, const int buffsize, const char c) |
| |
| bool | opencarp::point_in_shape (const Point &p, const geom_shape &shape) |
| | test if a point is inside a simple geometric shape More...
|
| |
| bool | opencarp::is_big_endian () |
| |
| bool | opencarp::file_can_be_opened (const char *file) |
| | Check wheterh a file can be opened for reading. More...
|
| |
| bool | opencarp::path_is_absolute (const char *path) |
| | check whether path is absolute More...
|
| |
| void | opencarp::get_time (double &tm) |
| |
| double | opencarp::get_time () |
| |
| template<typename V > |
| V | opencarp::timing (V &t2, const V &t1) |
| |
Basic utility structs and functions, mostly IO related.
- Author
- Aurel Neic, Edward Vigmond, Gernot Plank
- Version
- Date
- 2019-10-25
Definition in file basics.h.