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
10
11// Public API headers
12#include "librpa.hpp"
13
14// Internal data types exposed by this C++ interface
15#include "../src/api/dataset.h"
16#include "../src/core/coulmat.h"
17#include "../src/math/lapack_connector.h"
18#include "../src/math/scalapack_connector.h"
19
20// Standard headers
21#include <memory>
22#include <string>
23
24namespace librpa
25{
26
29{
30 std::string input_dir;
31 double cs_threshold = 1.0e-12;
32 double coulomb_threshold = 1.0e-12;
33 bool read_ri = true;
34 bool read_band_data = true;
35
36 // Defaults preserve the original LibBSE input filenames.
37 std::string fn_stru = "stru_out";
38 std::string fn_bz_sampling = "bz_sampling_out";
39 std::string fn_basis = "basis_out";
40 std::string fn_basis_wfc = "basis_wfc_out";
41 std::string fn_basis_aux = "basis_aux_out";
42 std::string fn_eigocc_scf = "band_out";
43 std::string fn_velocity = "velocity_matrix";
44 std::string fn_band_kpath_info = "band_kpath_info";
45 std::string prefix_eigvecs_scf = "KS_eigenvector";
46 std::string prefix_lri_coeff = "Cs_data";
47 std::string prefix_lri_coeff_shrink = "Cs_shrinked_data";
48 std::string prefix_coul_cut = "coulomb_unshrinked_cut";
49};
50
71std::shared_ptr<librpa_int::Dataset> read_dataset_from_files(
72 MPI_Comm comm, const FileReaderOptions &opts);
73
74} // namespace librpa
C++ wrapper API for LibRPA.
Main namespace for LibRPA C++ API.
Definition file_reader.hpp:25
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:29
double cs_threshold
Screening threshold for RI coefficients.
Definition file_reader.hpp:31
double coulomb_threshold
Screening threshold for Coulomb matrices.
Definition file_reader.hpp:32
bool read_band_data
Read separate band files; false copies SCF data.
Definition file_reader.hpp:34
std::string input_dir
Directory containing LibRPA input files.
Definition file_reader.hpp:30
bool read_ri
Whether to read RI and Coulomb data.
Definition file_reader.hpp:33