Skip to content

Commit 89ffeed

Browse files
Merge pull request #1129 from CombustionToolbox/develop
Solve: typo phases
2 parents 66bd99b + f4984ca commit 89ffeed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

+combustiontoolbox/+core/@ChemicalSystem/findProducts.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
NS = length(listSpecies_DB);
7878
FLAG_REMOVE = false(NS, 1);
7979
for i = 1:NS
80-
if self.DB.(listSpecies_DB{i}).phase == 1
80+
if obj.database.species.(listSpecies_DB{i}).phase ~= 0
8181
FLAG_REMOVE(i) = true;
8282
end
8383

+combustiontoolbox/+databases/@NasaDatabase/NasaDatabase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@
419419
temp.Tintervals = str2double(tline(1:2));
420420
temp.refCode = tline(4:9);
421421
temp.formula = tline(11:50);
422-
temp.phase = str2double(tline(51:52));
422+
temp.phase = double(str2double(tline(51:52)) ~= 0);
423423
temp.W = str2double(tline(53:65)) * 1e-3; % [kg/mol]
424424
temp.hf = str2double(tline(66:80));
425425

0 commit comments

Comments
 (0)