Skip to content

Commit

Permalink
fix bug with vectorized
Browse files Browse the repository at this point in the history
  • Loading branch information
cortespea committed Nov 12, 2023
1 parent cde4c8d commit c345fcc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions thermo/phases/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -6027,10 +6027,10 @@ def concentrations_mass_gas(self):
'''
rho_mass = self.rho_mass_gas()
ws = self.ws()
if self.scalar:
concentrations_mass = [rho_mass*wi for wi in ws]
else:
if self.vectorized:
concentrations_mass = rho_mass*ws
else:
concentrations_mass = [rho_mass*wi for wi in ws]
return concentrations_mass

def concentrations_mass_gas_normal(self):
Expand All @@ -6048,10 +6048,10 @@ def concentrations_mass_gas_normal(self):
'''
rho_mass = self.rho_mass_gas_normal()
ws = self.ws()
if self.scalar:
concentrations_mass = [rho_mass*wi for wi in ws]
else:
if self.vectorized:
concentrations_mass = rho_mass*ws
else:
concentrations_mass = [rho_mass*wi for wi in ws]
return concentrations_mass

def concentrations_mass_gas_standard(self):
Expand All @@ -6069,10 +6069,10 @@ def concentrations_mass_gas_standard(self):
'''
rho_mass = self.rho_mass_gas_standard()
ws = self.ws()
if self.scalar:
concentrations_mass = [rho_mass*wi for wi in ws]
else:
if self.vectorized:
concentrations_mass = rho_mass*ws
else:
concentrations_mass = [rho_mass*wi for wi in ws]
return concentrations_mass

def partial_pressures(self):
Expand Down

0 comments on commit c345fcc

Please sign in to comment.