[Input] Fix CTI to YAML conversion of phases with no elements
This commit is contained in:
parent
67087f874d
commit
edcc9c59fd
1 changed files with 2 additions and 1 deletions
|
|
@ -1087,7 +1087,8 @@ class phase:
|
|||
def get_yaml(self, out):
|
||||
out['name'] = self.name
|
||||
out['thermo'] = self.thermo_model
|
||||
out['elements'] = FlowList(self.elements.split())
|
||||
if self.elements:
|
||||
out['elements'] = FlowList(self.elements.split())
|
||||
|
||||
if len(self.species) == 1 and self.species[0][0] == 'species':
|
||||
# all local species
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue