-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from numericalEFT/type-stable
Type stable
- Loading branch information
Showing
8 changed files
with
58 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
name = "BrillouinZoneMeshes" | ||
uuid = "9f696214-9961-49f3-89a2-cb1ea204eb6e" | ||
authors = ["Xiansheng Cai", "Tao Wang", "Kun Chen"] | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
CompositeGrids = "b5136c89-beeb-4521-9139-60d2cac8be56" | ||
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
QHull = "a8468747-bd6f-53ef-9e5c-744dbc5c59e7" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665" | ||
Spglib = "f761d5c5-86db-4880-b97f-9680a7cccfb5" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
spglib_jll = "ac4a9f1e-bdb2-5204-990c-47c8b2f70d4e" | ||
Spglib = "f761d5c5-86db-4880-b97f-9680a7cccfb5" | ||
|
||
[compat] | ||
AbstractTrees = "0.3, 0.4" | ||
CompositeGrids = "0.0.6, 0.1" | ||
StaticArrays = "1" | ||
Roots = "2.0" | ||
Spglib = "0.6.0" | ||
julia = "1.6" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" | ||
QHull = "a8468747-bd6f-53ef-9e5c-744dbc5c59e7" | ||
|
||
|
||
[targets] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
using BrillouinZoneMeshes | ||
using Test | ||
|
||
@testset "Type Stable?" begin | ||
DIM = 2 | ||
N1, N2 = 3, 5 | ||
lattice = Matrix([1/N1/2 0; 0 1.0/N2/2]') .* 2π | ||
# so that bzmesh[i,j] = (2i-1,2j-1) | ||
cell = BZMeshes.Cell(lattice=lattice) | ||
mesh = BaseMesh.UMesh(br=cell, origin=ones(DIM) ./ 2, size=(N1, N2), shift=zeros(DIM)) | ||
|
||
@inferred mesh[1] | ||
end |