ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
simple_pexsi.h
Go to the documentation of this file.
1#ifndef SIMPLE_PEXSI_H
2#define SIMPLE_PEXSI_H
3
4#include <mpi.h>
5#include <string>
6// a simple interface for calling pexsi with 2D block cyclic distributed matrix
7namespace pexsi
8{
9int simplePEXSI(MPI_Comm comm_PEXSI,
10 MPI_Comm comm_2D,
11 MPI_Group group_2D,
12 const int blacs_ctxt, // communicator parameters
13 const int size,
14 const int nblk,
15 const int nrow,
16 const int ncol,
17 char layout, // input matrix parameters
18 double* H,
19 double* S, // input matrices
20 const double nElectronExact,
21 const std::string PexsiOptionFile, // pexsi parameters file
22 double*& DM,
23 double*& EDM, // output matrices
24 double& totalEnergyH,
25 double& totalEnergyS,
26 double& totalFreeEnergy,
27 double& mu,
28 double mu0);
29}
30#endif // SIMPLE_PEXSI_H
Definition dist_bcd_matrix.h:12
int simplePEXSI(MPI_Comm comm_PEXSI, MPI_Comm comm_2D, MPI_Group group_2D, const int blacs_ctxt, const int size, const int nblk, const int nrow, const int ncol, char layout, double *H, double *S, const double nElectronExact, const std::string PexsiOptionFile, double *&DM, double *&EDM, double &totalEnergyH, double &totalEnergyS, double &totalFreeEnergy, double &mu, double mu0)