diff --git a/nexus/library/physical_system.py b/nexus/library/physical_system.py index ad9c77d6ee..869774f5c2 100644 --- a/nexus/library/physical_system.py +++ b/nexus/library/physical_system.py @@ -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 diff --git a/nexus/library/structure.py b/nexus/library/structure.py index 58457db384..d8373209aa 100755 --- a/nexus/library/structure.py +++ b/nexus/library/structure.py @@ -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