Skip to content

Meshmap fails to generate due to a bug in BZMeshes.jl #66

Description

@iintSjds

The following code reports errors:

# this file fails to run due to some bugs
# a test should be added when the bug is fixed

using BrillouinZoneMeshes
using Test

@testset "spglib" begin
    @testset "N=12" begin
        kgrid = [12, 12, 12]
        lattice = [[1.0 -1.0 1.0]; [1.0 1.0 -1.0]; [-1.0 1.0 1.0]]
        atoms = [1,]
        positions = [[0.0, 0.0, 0.0],]
        cell = Cells.Cell(; lattice=lattice, atoms=atoms, positions=positions)
        bzmesh = BZMeshes.Monkhorst_Pack(cell=cell, size=kgrid, shift=[false, false, false])
        meshmap = MeshMaps.MeshMap(bzmesh)
    end
    @testset "N=20" begin
        kgrid = [20, 20, 20]
        lattice = [[1.0 -1.0 1.0]; [1.0 1.0 -1.0]; [-1.0 1.0 1.0]]
        atoms = [1,]
        positions = [[0.0, 0.0, 0.0],]
        cell = Cells.Cell(; lattice=lattice, atoms=atoms, positions=positions)
        bzmesh = BZMeshes.Monkhorst_Pack(cell=cell, size=kgrid, shift=[false, false, false])
        meshmap = MeshMaps.MeshMap(bzmesh)
    end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions