Skip to content

Commit

Permalink
number format
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Oct 12, 2024
1 parent 48a8f03 commit 33b9368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Energy/Shearheating.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ end

function compute_shearheating(s::AbstractMaterialParamsStruct, args::Vararg{Any,N}) where N
if isempty(s.ShearHeat)
return 0.0 # return zero if not specified
return 0e0 # return zero if not specified

Check warning on line 175 in src/Energy/Shearheating.jl

View check run for this annotation

Codecov / codecov/patch

src/Energy/Shearheating.jl#L175

Added line #L175 was not covered by tests
else
return compute_shearheating(s.ShearHeat[1], args...)
end
Expand Down
4 changes: 2 additions & 2 deletions src/MeltFraction/MeltingParameterization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ end
# Computational routines needed for computations with the MaterialParams structure
function compute_meltfraction(s::AbstractMaterialParamsStruct, args)
if isempty(s.Melting) #in case there is a phase with no melting parametrization
return 0.0 # return zero if not specified
return 0e0 # return zero if not specified
else
return compute_meltfraction(s.Melting[1], args)
end
end

function compute_dϕdT(s::AbstractMaterialParamsStruct, args)
if isempty(s.Melting) #in case there is a phase with no melting parametrization
return 0.0 # return zero if not specified
return 0e0 # return zero if not specified
else
return compute_dϕdT(s.Melting[1], args)
end
Expand Down

0 comments on commit 33b9368

Please sign in to comment.