28 TEST_CASE(
"MagnetizationDensityInput::from_xml",
"[estimators]")
33 using namespace testing::magdensity;
74 app_log() <<
"NSAMPLES = " << nsamples << std::endl;
75 app_log() <<
"INTEGRATOR = " << integrator << std::endl;
76 app_log() <<
"CORNER = " << corner << std::endl;
77 app_log() <<
"GRID = " << grid << std::endl;
78 app_log() <<
"DR = " << dr << std::endl;
80 CHECK(nsamples == 64);
81 CHECK(integrator == 0);
82 CHECK(grid[0] == Approx(4));
83 CHECK(grid[1] == Approx(3));
84 CHECK(grid[2] == Approx(2));
85 CHECK(corner[0] == Approx(0.0));
86 CHECK(corner[1] == Approx(0.0));
87 CHECK(corner[2] == Approx(0.0));
88 CHECK(dr[0] == Approx(0.1));
89 CHECK(dr[1] == Approx(0.1));
90 CHECK(dr[2] == Approx(0.1));
a class that defines a supercell in D-dimensional Euclean space.
class that handles xmlDoc
Lattice makeTestLattice()
helper functions for EinsplineSetBuilder
if(!okay) throw std xmlNodePtr node
Integrator get_integrator() const
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > ParticleLayout
TEST_CASE("complex_helper", "[type_traits]")
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
REQUIRE(std::filesystem::exists(filename))
constexpr std::array< std::string_view, 4 > valid_mag_density_input_sections
PosType get_corner() const
DerivedParameters calculateDerivedParameters(const Lattice &lattice) const
Derived parameters of SpinDensity.
Particle traits to use UniformGridLayout for the ParticleLayout.
bool parseFromString(const std::string_view data)
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
constexpr std::array< std::string_view, 3 > invalid_mag_density_input_sections