|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "socket_utils.h"#include "source_base/global_function.h"#include "source_base/mathzone.h"#include "source_base/parallel_common.h"#include "source_base/parallel_reduce.h"#include "source_base/timer.h"#include "source_cell/unitcell.h"#include "source_cell/update_cell.h"#include <mpi.h>#include <algorithm>#include <cmath>#include <cstdio>#include <cstdlib>#include <exception>#include <sstream>#include <stdexcept>Namespaces | |
| namespace | SocketUtils |
Functions | |
| bool | SocketUtils::all_ranks_converged (const bool local_converged) |
| void | SocketUtils::throw_if_any_rank_failed (int local_failed, std::string local_message) |
| void | SocketUtils::fail_during_collective_stage (const char *stage, const std::string &message) |
| Terminate the socket run after a failure inside a collective stage. | |
| std::string | SocketUtils::properties_extra (const ComputedFrame &frame) |
| bool | SocketUtils::is_root () |
| void | SocketUtils::bcast_double_vector (std::vector< double > &values) |
| void | SocketUtils::bcast_int (int &value) |
| void | SocketUtils::bcast_int32 (std::int32_t &value) |
| void | SocketUtils::bcast_chars (char *value, const int size) |
| void | SocketUtils::bcast_string (std::string &value) |
| void | SocketUtils::quit_if_root_failed (int root_failed, std::string root_message) |
| std::string | SocketUtils::bcast_header (std::string header) |
| std::string | SocketUtils::address () |
| std::vector< double > | SocketUtils::ipi_cell_bohr_from_unitcell (const UnitCell &ucell) |
| double | SocketUtils::max_wrapped_direct_delta_from_unitcell (const UnitCell &ucell, const std::vector< double > &positions_bohr) |
| double | SocketUtils::max_abs_delta (const std::vector< double > &a, const std::vector< double > &b) |
| double | SocketUtils::unchanged_cell_tolerance (const SocketFrame::Matrix9 &cell) |
| void | SocketUtils::set_positions_from_ipi_bohr (UnitCell &ucell, const std::vector< double > &positions_bohr) |
| std::vector< double > | SocketUtils::flatten_forces_hartree_per_bohr (const ModuleBase::matrix &force, const int nat) |
| SocketFrame::Matrix9 | SocketUtils::matrix9_from_stress (const ModuleBase::matrix &stress) |
| std::vector< double > | SocketUtils::vector_from_matrix9 (const SocketFrame::Matrix9 &values) |