Skip to content

Commit

Permalink
Update TileUnitCell.m
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisBlackLee committed Nov 25, 2024
1 parent a79994e commit 07a198e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basic_toolbox/TileUnitCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@

cellNum = na * nb * nc;
atomNumPerUnitCell = size(baseUnitCell, 2);
superCell = zeros(5, cellNum * atomNumPerUnitCell);
entryNum = size(baseUnitCell, 1);
superCell = zeros(entryNum, cellNum * atomNumPerUnitCell);

if any(mod(tiles, 1))
error('Invalid tiles');
Expand Down

0 comments on commit 07a198e

Please sign in to comment.