|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Classes | |
| struct | DriverContext |
| struct | ComputedFrame |
Enumerations | |
| enum class | DriverState |
Functions | |
| std::string | read_header_bcast (IpiSocket &socket, const DriverState state) |
| void | handle_status (IpiSocket &socket, const DriverState state) |
| void | handle_init (IpiSocket &socket, DriverContext &context, std::ofstream &ofs_running) |
| void | handle_posdata (IpiSocket &socket, DriverContext &context, std::ofstream &ofs_running) |
| void | handle_getforce (IpiSocket &socket, DriverContext &context) |
| void | handle_exit (std::ofstream &ofs_running) |
| bool | all_ranks_converged (const bool local_converged) |
| void | bcast_double_vector (std::vector< double > &values) |
| std::string | bcast_header (std::string header) |
| void | bcast_int32 (std::int32_t &value) |
| void | fail_during_collective_stage (const char *stage, const std::string &message) |
| Terminate the socket run after a failure inside a collective stage. | |
| std::vector< double > | flatten_forces_hartree_per_bohr (const ModuleBase::matrix &force, const int nat) |
| std::vector< double > | ipi_cell_bohr_from_unitcell (const UnitCell &ucell) |
| bool | is_root () |
| SocketFrame::Matrix9 | matrix9_from_stress (const ModuleBase::matrix &stress) |
| double | max_abs_delta (const std::vector< double > &a, const std::vector< double > &b) |
| double | max_wrapped_direct_delta_from_unitcell (const UnitCell &ucell, const std::vector< double > &positions_bohr) |
| std::string | properties_extra (const ComputedFrame &frame) |
| void | quit_if_root_failed (int root_failed, std::string root_message) |
| void | set_positions_from_ipi_bohr (UnitCell &ucell, const std::vector< double > &positions_bohr) |
| void | throw_if_any_rank_failed (int local_failed, std::string local_message) |
| double | unchanged_cell_tolerance (const SocketFrame::Matrix9 &cell) |
| std::vector< double > | vector_from_matrix9 (const SocketFrame::Matrix9 &values) |
Variables | |
| constexpr double | kInverseAbsoluteTolerance |
| constexpr double | kInverseRelativeTolerance |
| constexpr double | kMaxCellCondition |
| constexpr std::int32_t | kMaxInitBytes |
| constexpr double | kRyToHartree |
| constexpr double | kStressAbsoluteTolerance |
| constexpr double | kStressRelativeTolerance |
|
strong |
| bool SocketUtils::all_ranks_converged | ( | const bool | local_converged | ) |
| void SocketUtils::bcast_double_vector | ( | std::vector< double > & | values | ) |
| std::string SocketUtils::bcast_header | ( | std::string | header | ) |
| void SocketUtils::bcast_int32 | ( | std::int32_t & | value | ) |
| void SocketUtils::fail_during_collective_stage | ( | const char * | stage, |
| const std::string & | message ) |
Terminate the socket run after a failure inside a collective stage.
Under MPI the failure may deadlock other ranks waiting in a collective, so print a diagnostic and abort the whole job. In serial builds there is no collective: the exception propagates to Socket_Driver::socket_driver, which reports a clean WARNING_QUIT into the log. Do not replace the serial throw with abort(); serial builds are user-facing.
| std::vector< double > SocketUtils::flatten_forces_hartree_per_bohr | ( | const ModuleBase::matrix & | force, |
| const int | nat ) |
| void SocketHandlers::handle_exit | ( | std::ofstream & | ofs_running | ) |
| void SocketHandlers::handle_getforce | ( | IpiSocket & | socket, |
| DriverContext & | context ) |
| void SocketHandlers::handle_init | ( | IpiSocket & | socket, |
| DriverContext & | context, | ||
| std::ofstream & | ofs_running ) |
| void SocketHandlers::handle_posdata | ( | IpiSocket & | socket, |
| DriverContext & | context, | ||
| std::ofstream & | ofs_running ) |
| void SocketHandlers::handle_status | ( | IpiSocket & | socket, |
| const DriverState | state ) |
| std::vector< double > SocketUtils::ipi_cell_bohr_from_unitcell | ( | const UnitCell & | ucell | ) |
| bool SocketUtils::is_root | ( | ) |
| SocketFrame::Matrix9 SocketUtils::matrix9_from_stress | ( | const ModuleBase::matrix & | stress | ) |
| double SocketUtils::max_abs_delta | ( | const std::vector< double > & | a, |
| const std::vector< double > & | b ) |
| double SocketUtils::max_wrapped_direct_delta_from_unitcell | ( | const UnitCell & | ucell, |
| const std::vector< double > & | positions_bohr ) |
| std::string SocketUtils::properties_extra | ( | const ComputedFrame & | frame | ) |
| void SocketUtils::quit_if_root_failed | ( | int | root_failed, |
| std::string | root_message ) |
| std::string SocketHandlers::read_header_bcast | ( | IpiSocket & | socket, |
| const DriverState | state ) |
| void SocketUtils::set_positions_from_ipi_bohr | ( | UnitCell & | ucell, |
| const std::vector< double > & | positions_bohr ) |
| void SocketUtils::throw_if_any_rank_failed | ( | int | local_failed, |
| std::string | local_message ) |
| double SocketUtils::unchanged_cell_tolerance | ( | const SocketFrame::Matrix9 & | cell | ) |
| std::vector< double > SocketUtils::vector_from_matrix9 | ( | const SocketFrame::Matrix9 & | values | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |