ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
read_atoms_hlp_test.cpp File Reference
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "source_cell/read_atoms_helper.h"
#include "source_cell/print_cell.h"
#include "source_base/vector3.h"
#include "source_base/matrix3.h"
#include "source_base/output.h"
#include <sstream>
#include <fstream>
#include <limits>
Include dependency graph for read_atoms_hlp_test.cpp:

Classes

class  ReadAtomsHelperTest

Namespaces

namespace  elecstate
namespace  unitcell
 Free functions for extracting atom/orbital info from Atom array.

Functions

bool elecstate::read_orb_file (int it, std::string &orbital_file, std::ofstream &ofs_running, Atom *atom)
bool unitcell::read_atom_positions (UnitCell &ucell, std::ifstream &ifpos, std::ofstream &ofs_running, std::ofstream &ofs_warning)
 TEST_F (ReadAtomsHelperTest, ValidateCoordinateSystem_ValidInputs)
 TEST_F (ReadAtomsHelperTest, ValidateCoordinateSystem_InvalidInputs)
 TEST_F (ReadAtomsHelperTest, CalculateLatticeCenterXY)
 TEST_F (ReadAtomsHelperTest, CalculateLatticeCenterXZ)
 TEST_F (ReadAtomsHelperTest, CalculateLatticeCenterYZ)
 TEST_F (ReadAtomsHelperTest, CalculateLatticeCenterXYZ)
 TEST_F (ReadAtomsHelperTest, CalculateLatticeCenterNonCubic)
 TEST_F (ReadAtomsHelperTest, AllocateAtomProperties)
 TEST_F (ReadAtomsHelperTest, TransformAtomCoordinatesDirect)
 TEST_F (ReadAtomsHelperTest, TransformAtomCoordinatesCartesian)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationNspin2)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationNspin4VectorInput)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationAngleInput)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesMovementFlags)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesVelocity)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesScalarMag)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesVectorMag)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesForce)
 TEST_F (ReadAtomsHelperTest, ParseAtomPropertiesNegativeForce)
 TEST_F (ReadAtomsHelperTest, RoundTripWriterReaderForce)
 TEST_F (ReadAtomsHelperTest, RoundTripMultiAtomMixedFields)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationNspin4CollinearReportsXYDiscard)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationNspin4CollinearNoDiscardOnZeroXY)
 TEST_F (ReadAtomsHelperTest, ProcessMagnetizationNspin4NoncolinKeepsXY)
 TEST_F (ReadAtomsHelperTest, WarnXYMagnetizationIgnoredAggregatesPerType)
 TEST_F (ReadAtomsHelperTest, WarnXYMagnetizationIgnoredSilentWhenNoneDiscarded)
 TEST_F (ReadAtomsHelperTest, IsMagnetizationAllZero)
 TEST_F (ReadAtomsHelperTest, AutosetMagnetizationNspin4NoAutosetAndSilent)
 TEST_F (ReadAtomsHelperTest, WarnZeroMagnetizationNspin4)
 TEST_F (ReadAtomsHelperTest, WarnZeroMagnetizationNspin4KeysOnMLoc)
 TEST_F (ReadAtomsHelperTest, WarnZeroMagnetizationNspin4SilentWhenMagSet)
 TEST_F (ReadAtomsHelperTest, AutosetMagnetizationNspin2StillAutoset)
 TEST_F (ReadAtomsHelperTest, AutosetMagnetizationNspin2SkippedWhenMagSet)
int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ TEST_F() [1/33]

TEST_F ( ReadAtomsHelperTest ,
AllocateAtomProperties  )
Here is the call graph for this function:

◆ TEST_F() [2/33]

TEST_F ( ReadAtomsHelperTest ,
AutosetMagnetizationNspin2SkippedWhenMagSet  )
Here is the call graph for this function:

◆ TEST_F() [3/33]

TEST_F ( ReadAtomsHelperTest ,
AutosetMagnetizationNspin2StillAutoset  )
Here is the call graph for this function:

◆ TEST_F() [4/33]

TEST_F ( ReadAtomsHelperTest ,
AutosetMagnetizationNspin4NoAutosetAndSilent  )
Here is the call graph for this function:

◆ TEST_F() [5/33]

TEST_F ( ReadAtomsHelperTest ,
CalculateLatticeCenterNonCubic  )
Here is the call graph for this function:

◆ TEST_F() [6/33]

TEST_F ( ReadAtomsHelperTest ,
CalculateLatticeCenterXY  )
Here is the call graph for this function:

◆ TEST_F() [7/33]

TEST_F ( ReadAtomsHelperTest ,
CalculateLatticeCenterXYZ  )
Here is the call graph for this function:

◆ TEST_F() [8/33]

TEST_F ( ReadAtomsHelperTest ,
CalculateLatticeCenterXZ  )
Here is the call graph for this function:

◆ TEST_F() [9/33]

TEST_F ( ReadAtomsHelperTest ,
CalculateLatticeCenterYZ  )
Here is the call graph for this function:

◆ TEST_F() [10/33]

TEST_F ( ReadAtomsHelperTest ,
IsMagnetizationAllZero  )
Here is the call graph for this function:

◆ TEST_F() [11/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesForce  )
Here is the call graph for this function:

◆ TEST_F() [12/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesMovementFlags  )
Here is the call graph for this function:

◆ TEST_F() [13/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesNegativeForce  )
Here is the call graph for this function:

◆ TEST_F() [14/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesScalarMag  )
Here is the call graph for this function:

◆ TEST_F() [15/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesVectorMag  )
Here is the call graph for this function:

◆ TEST_F() [16/33]

TEST_F ( ReadAtomsHelperTest ,
ParseAtomPropertiesVelocity  )
Here is the call graph for this function:

◆ TEST_F() [17/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationAngleInput  )
Here is the call graph for this function:

◆ TEST_F() [18/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationNspin2  )
Here is the call graph for this function:

◆ TEST_F() [19/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationNspin4CollinearNoDiscardOnZeroXY  )
Here is the call graph for this function:

◆ TEST_F() [20/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationNspin4CollinearReportsXYDiscard  )
Here is the call graph for this function:

◆ TEST_F() [21/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationNspin4NoncolinKeepsXY  )
Here is the call graph for this function:

◆ TEST_F() [22/33]

TEST_F ( ReadAtomsHelperTest ,
ProcessMagnetizationNspin4VectorInput  )
Here is the call graph for this function:

◆ TEST_F() [23/33]

TEST_F ( ReadAtomsHelperTest ,
RoundTripMultiAtomMixedFields  )
Here is the call graph for this function:

◆ TEST_F() [24/33]

TEST_F ( ReadAtomsHelperTest ,
RoundTripWriterReaderForce  )
Here is the call graph for this function:

◆ TEST_F() [25/33]

TEST_F ( ReadAtomsHelperTest ,
TransformAtomCoordinatesCartesian  )
Here is the call graph for this function:

◆ TEST_F() [26/33]

TEST_F ( ReadAtomsHelperTest ,
TransformAtomCoordinatesDirect  )
Here is the call graph for this function:

◆ TEST_F() [27/33]

TEST_F ( ReadAtomsHelperTest ,
ValidateCoordinateSystem_InvalidInputs  )
Here is the call graph for this function:

◆ TEST_F() [28/33]

TEST_F ( ReadAtomsHelperTest ,
ValidateCoordinateSystem_ValidInputs  )
Here is the call graph for this function:

◆ TEST_F() [29/33]

TEST_F ( ReadAtomsHelperTest ,
WarnXYMagnetizationIgnoredAggregatesPerType  )
Here is the call graph for this function:

◆ TEST_F() [30/33]

TEST_F ( ReadAtomsHelperTest ,
WarnXYMagnetizationIgnoredSilentWhenNoneDiscarded  )
Here is the call graph for this function:

◆ TEST_F() [31/33]

TEST_F ( ReadAtomsHelperTest ,
WarnZeroMagnetizationNspin4  )
Here is the call graph for this function:

◆ TEST_F() [32/33]

TEST_F ( ReadAtomsHelperTest ,
WarnZeroMagnetizationNspin4KeysOnMLoc  )
Here is the call graph for this function:

◆ TEST_F() [33/33]

TEST_F ( ReadAtomsHelperTest ,
WarnZeroMagnetizationNspin4SilentWhenMagSet  )
Here is the call graph for this function: