file_reader.hpp Source File

file_reader.hpp Source File#

LibRPA: file_reader.hpp Source File
LibRPA
file_reader.hpp
Go to the documentation of this file.
1#pragma once
14
15// Public API headers
16#include "librpa.hpp"
17
18// Internal data types exposed by this C++ interface
19#include "../src/api/dataset.h"
20// LibBSE calls FT_Vq through this header; keep until LibBSE includes coulmat.h itself.
21#include "../src/core/coulmat.h"
22#include "../src/math/lapack_connector.h"
23#include "../src/math/scalapack_connector.h"
24
25// Standard headers
26#include <memory>
27#include <string>
28
29namespace librpa
30{
31
34{
35 std::string input_dir;
36 double cs_threshold = 1.0e-12;
37 double coulomb_threshold = 1.0e-12;
38 bool read_ri = true;
39 bool read_band_data = true;
40
41 // Defaults preserve the original LibBSE input filenames.
42 std::string fn_stru = "stru_out";
43 std::string fn_bz_sampling = "bz_sampling_out";
44 std::string fn_basis = "basis_out";
45 std::string fn_basis_wfc = "basis_wfc_out";
46 std::string fn_basis_aux = "basis_aux_out";
47 std::string fn_eigocc_scf = "band_out";
48 std::string fn_velocity = "velocity_matrix";
49 std::string fn_band_kpath_info = "band_kpath_info";
50 std::string prefix_eigvecs_scf = "KS_eigenvector";
51 std::string prefix_lri_coeff = "Cs_data";
52 std::string prefix_lri_coeff_shrink = "Cs_shrinked_data";
53 std::string prefix_coul_cut = "coulomb_unshrinked_cut";
54};
55
76std::shared_ptr<librpa_int::Dataset> read_dataset_from_files(
77 MPI_Comm comm, const FileReaderOptions &opts);
78
79} // namespace librpa
C++ wrapper API for LibRPA.
Main namespace for LibRPA C++ API.
Definition file_reader.hpp:30
std::shared_ptr< librpa_int::Dataset > read_dataset_from_files(MPI_Comm comm, const FileReaderOptions &opts)
Read a LibRPA dataset from files.
Options controlling dataset input from LibRPA files.
Definition file_reader.hpp:34
double cs_threshold
Screening threshold for RI coefficients.
Definition file_reader.hpp:36
double coulomb_threshold
Screening threshold for Coulomb matrices.
Definition file_reader.hpp:37
bool read_band_data
Read separate band files; false copies SCF data.
Definition file_reader.hpp:39
std::string input_dir
Directory containing LibRPA input files.
Definition file_reader.hpp:35
bool read_ri
Whether to read RI and Coulomb data.
Definition file_reader.hpp:38