Skip to content

Commit

Permalink
Merge pull request #246 from jtkrogel/dev
Browse files Browse the repository at this point in the history
nexus: fix for net_spin="low" in generate_physical_system
  • Loading branch information
markdewing authored Jun 1, 2017
2 parents 8a8671e + 5da1c1b commit bc13815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nexus/library/physical_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ def generate_physical_system(**kwargs):
if extensive:
ncells = int(round(structure.volume()/folded_structure.volume()))
net_charge = ncells*net_charge
net_spin = ncells*net_spin
if not isinstance(net_spin,str):
net_spin = ncells*net_spin
#end if
#end if
if tiled_spin!=None:
net_spin = tiled_spin
Expand Down
3 changes: 3 additions & 0 deletions nexus/library/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5387,6 +5387,9 @@ def generate_crystal_structure(lattice=None,cell=None,centering=None,
if kgrid!=None:
structure.add_kmesh(kgrid,kshift)
#end if
if tiling!=None:
structure = structure.tile(tiling)
#end if
return structure
#end if

Expand Down

0 comments on commit bc13815

Please sign in to comment.