allow one homogenization

quite useless ...
This commit is contained in:
Martin Diehl 2020-10-30 22:26:02 +01:00
parent c29e3650f3
commit aecf2f539e
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ class ConfigMaterial(Config):
@staticmethod
def _constituents(N=1,**kwargs):
"""Construct list of constituents."""
N_material=1
for v in kwargs.values():
if hasattr(v,'__len__') and not isinstance(v,str): N_material = len(v)