|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <string>#include <vector>#include <gtest/gtest.h>#include "source_base/module_out/filename.h"Classes | |
| class | FilenameOutputTest |
Macros | |
| #define | TEST_FILENAME_CPP |
Functions | |
| TEST_F (FilenameOutputTest, Mode0FixedNameIgnoresIstep) | |
| TEST_F (FilenameOutputTest, Mode1FixedNameNoG) | |
| TEST_F (FilenameOutputTest, Mode2EmbedsStep) | |
| TEST_F (FilenameOutputTest, SinglePointNoG) | |
| TEST_F (FilenameOutputTest, IterIndexOnlyInMode2) | |
| TEST_F (FilenameOutputTest, GammaOnlyNoKLabel) | |
| TEST_F (FilenameOutputTest, KineticPropertyUsesTWithoutDoubleK) | |
| TEST_F (FilenameOutputTest, NoncollinearSpin4) | |
| TEST_F (FilenameOutputTest, VxcMoDoesNotCollideWithVxck) | |
| TEST_F (FilenameOutputTest, VxcMoMode2EmbedsStep) | |
| std::string | filename_output (const std::string &directory, const std::string &property, const std::string &basis, const int ik_local, const std::vector< int > &ik2iktot, const int nspin, const int nkstot, const int out_type, const int out_app_flag, const bool gamma_only, const int istep, const int iter) |
| #define TEST_FILENAME_CPP |
| std::string ModuleIO::filename_output | ( | const std::string & | directory, |
| const std::string & | property, | ||
| const std::string & | basis, | ||
| const int | ik_local, | ||
| const std::vector< int > & | ik2iktot, | ||
| const int | nspin, | ||
| const int | nkstot, | ||
| const int | out_type, | ||
| const int | out_app_flag, | ||
| const bool | gamma_only, | ||
| const int | istep = -1, | ||
| const int | iter = -1 ) |
Generates the filename for the output files
| directory | directory of the file |
| property | wave function (wf), charge density (chg) or matrix (mat) |
| basis | nao or pw |
| ik_local | index of the k-points within each pool, and starting from 0. |
| ik2iktot | map from ik to iktot |
| nspin | number of spin channels, 1,2 or 4 |
| nkstot | number of total k-points |
| out_type | two types of output file format, 1 for .txt and 2 for .dat (binary) |
| out_app_flag | 0=fixed filename, overwritten at each write; 1=fixed filename, appended; 2=subdirectory layout with a g{step} suffix. |
| gamma_only | gamma_only algorithm or not. |
| istep | index of the ion step starting from 0. The step number is only embedded in the filename in mode 2 (out_app_flag == 2), and only when istep >= 0. |
| iter | index of the electronic step starting from 0. The step number is only embedded in the filename in mode 2 (out_app_flag == 2), and only when iter >= 0. |
| TEST_F | ( | FilenameOutputTest | , |
| GammaOnlyNoKLabel | ) |
| TEST_F | ( | FilenameOutputTest | , |
| IterIndexOnlyInMode2 | ) |
| TEST_F | ( | FilenameOutputTest | , |
| KineticPropertyUsesTWithoutDoubleK | ) |
| TEST_F | ( | FilenameOutputTest | , |
| Mode0FixedNameIgnoresIstep | ) |
| TEST_F | ( | FilenameOutputTest | , |
| Mode1FixedNameNoG | ) |
| TEST_F | ( | FilenameOutputTest | , |
| Mode2EmbedsStep | ) |
| TEST_F | ( | FilenameOutputTest | , |
| NoncollinearSpin4 | ) |
| TEST_F | ( | FilenameOutputTest | , |
| SinglePointNoG | ) |
| TEST_F | ( | FilenameOutputTest | , |
| VxcMoDoesNotCollideWithVxck | ) |
| TEST_F | ( | FilenameOutputTest | , |
| VxcMoMode2EmbedsStep | ) |