Skip to content

Commit

Permalink
bugfix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Oct 28, 2021
1 parent f0b4e16 commit b8abea8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/Density/Density.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ end
# Calculation routine
function ComputeDensity(P,T, s::ConstantDensity)
@unpack ρ = s

return ρ*1.0
if length(T)>1
return Value(ρ).*ones(size(T))
else
return ρ*1.0
end
end

# Print info
Expand Down
2 changes: 1 addition & 1 deletion src/Energy/Conductivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ComputeConductivity(P, T, s::ConstantConductivity)
@unpack k = s

if length(T)>1
return k.*ones(size(T))
return Value(k).*ones(size(T))
else
return Value(k)
end
Expand Down
2 changes: 1 addition & 1 deletion src/Energy/HeatCapacity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
function ComputeHeatCapacity(P, T, s::ConstantHeatCapacity)
@unpack cp = s
if length(T)>1
return cp*ones(size(T))
return Value(cp)*ones(size(T))
else
return Value(cp)
end
Expand Down

0 comments on commit b8abea8

Please sign in to comment.