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 c345fcc commit 67cc71b
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 @@ -5940,10 +5940,10 @@ def concentrations_gas(self):
'''
rho = self.rho_gas()
zs = self.zs
if self.scalar:
concentrations = [rho*zi for zi in zs]
else:
if self.vectorized:
concentrations = rho*zs
else:
concentrations = [rho*zi for zi in zs]
return concentrations

def concentrations_gas_normal(self):
Expand All @@ -5961,10 +5961,10 @@ def concentrations_gas_normal(self):
'''
rho = self.rho_gas_normal()
zs = self.zs
if self.scalar:
concentrations = [rho*zi for zi in zs]
else:
if self.vectorized:
concentrations = rho*zs
else:
concentrations = [rho*zi for zi in zs]
return concentrations

def concentrations_gas_standard(self):
Expand All @@ -5982,10 +5982,10 @@ def concentrations_gas_standard(self):
'''
rho = self.rho_gas_standard()
zs = self.zs
if self.scalar:
concentrations = [rho*zi for zi in zs]
else:
if self.vectorized:
concentrations = rho*zs
else:
concentrations = [rho*zi for zi in zs]
return concentrations

def concentrations_mass(self):
Expand Down

0 comments on commit 67cc71b

Please sign in to comment.