|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "source_base/matrix.h"#include "source_relax/socket_frame.h"#include <cstdint>#include <limits>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | SocketUtils::ComputedFrame |
Namespaces | |
| namespace | SocketUtils |
Enumerations | |
| enum class | SocketUtils::DriverState { SocketUtils::NeedInit , SocketUtils::Ready , SocketUtils::HasData } |
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) |
Variables | |
| constexpr double | SocketUtils::kRyToHartree = 0.5 |
| constexpr int | SocketUtils::kIpiRankRoot = 0 |
| constexpr double | SocketUtils::kMaxCellCondition = 1.0e12 |
| constexpr double | SocketUtils::kInverseAbsoluteTolerance = 64.0 * std::numeric_limits<double>::epsilon() |
| constexpr double | SocketUtils::kInverseRelativeTolerance = 64.0 |
| constexpr double | SocketUtils::kStressAbsoluteTolerance = 1.0e-10 |
| constexpr double | SocketUtils::kStressRelativeTolerance = 1.0e-8 |
| constexpr std::int32_t | SocketUtils::kMaxInitBytes = static_cast<std::int32_t>(1048576) |