ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gradient_output.h
Go to the documentation of this file.
1#ifndef ABACUS_LR_GRADIENT_OUTPUT_H
2#define ABACUS_LR_GRADIENT_OUTPUT_H
4#include <iosfwd>
5#include <vector>
6class UnitCell;
7namespace LR
8{
9void print_lr_force(const std::vector<ModuleBase::matrix>& force, std::ostream& ofs, int istate_begin);
10ModuleBase::matrix average_forces(const std::vector<ModuleBase::matrix>& forces);
11void print_grad_matrix(const std::vector<std::vector<ModuleBase::matrix>>& gradient,
12 const std::vector<int>& group, const UnitCell& ucell, std::ofstream& ofs);
13}
14#endif
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition esolver_lr_lcao_tddft.h:28
ModuleBase::matrix average_forces(const std::vector< ModuleBase::matrix > &f)
The mean of a set of force matrices.
Definition gradient_output.cpp:43
void print_grad_matrix(const std::vector< std::vector< ModuleBase::matrix > > &g, const std::vector< int > &group, const UnitCell &ucell, std::ofstream &ofs)
Print the degenerate-subspace gradient matrix $G_{kl}$, one $d\times d$ block per nuclear coordinate,...
Definition gradient_output.cpp:62
void print_lr_force(const std::vector< ModuleBase::matrix > &force, std::ostream &ofs, const int istate_begin)
Definition gradient_output.cpp:11