ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_hs_sparse_io.cpp File Reference

Unit tests for hs_sparse_io.cpp (ModuleIO::save_sparse, both the compact layout and the csr_format text layout). More...

Include dependency graph for test_hs_sparse_io.cpp:

Functions

 TEST (HsSparseIo, SparseHeaderKeepsStepStyle)
 TEST (HsSparseIo, SparseTextCountsOnlyValuesAboveThreshold)
 TEST (HsSparseIo, SparseBinaryHeaderWritesConcreteStep)
 TEST (HsSparseIo, SparseBinaryCountsOnlyValuesAboveThreshold)
 TEST (HsSparseIo, SparseTextOutAppFlagZeroTruncatesSeededFile)
 TEST (HsSparseIo, SparseCsrHeaderWritesCellAndBanner)
 TEST (HsSparseIo, SparseCsrSkipsEmptyRBlocks)
 TEST (HsSparseIo, SparseCsrWritesComplexValues)
int main (int argc, char **argv)

Detailed Description

Unit tests for hs_sparse_io.cpp (ModuleIO::save_sparse, both the compact layout and the csr_format text layout).

The tests pin down the legacy CSR text/binary layout written by save_sparse: header style ("Ionic_Step n"), dimension lines, threshold filtering of values, and the native binary field order. hs_sparse_io.cpp only reads GlobalV::DRANK, so the fixture sets it directly; no PARAM state is involved.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ TEST() [1/8]

TEST ( HsSparseIo ,
SparseBinaryCountsOnlyValuesAboveThreshold  )
Here is the call graph for this function:

◆ TEST() [2/8]

TEST ( HsSparseIo ,
SparseBinaryHeaderWritesConcreteStep  )
Here is the call graph for this function:

◆ TEST() [3/8]

TEST ( HsSparseIo ,
SparseCsrHeaderWritesCellAndBanner  )
Here is the call graph for this function:

◆ TEST() [4/8]

TEST ( HsSparseIo ,
SparseCsrSkipsEmptyRBlocks  )
Here is the call graph for this function:

◆ TEST() [5/8]

TEST ( HsSparseIo ,
SparseCsrWritesComplexValues  )
Here is the call graph for this function:

◆ TEST() [6/8]

TEST ( HsSparseIo ,
SparseHeaderKeepsStepStyle  )
Here is the call graph for this function:

◆ TEST() [7/8]

TEST ( HsSparseIo ,
SparseTextCountsOnlyValuesAboveThreshold  )
Here is the call graph for this function:

◆ TEST() [8/8]

TEST ( HsSparseIo ,
SparseTextOutAppFlagZeroTruncatesSeededFile  )
Here is the call graph for this function: