Show
Ignore:
Timestamp:
10/10/2007 03:35:53 PM (15 months ago)
Author:
otter
Message:

Fixed minor unit errors reported by Sven Erik
(requires Advanced.DeduceUnits = true; default = false, i.e.,
these errors are only reported with DeduceUnits=true).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/branches/maintenance/2.2.2/Modelica/Thermal/FluidHeatFlow.mo

    r656 r661  
    11within Modelica.Thermal; 
     2 
    23 
    34package FluidHeatFlow  
     
    13931394        "Part of friction losses fed to medium"; 
    13941395    protected  
     1396      constant Modelica.SIunits.VolumeFlowRate unitVolumeFlowRate = 1; 
    13951397      constant Real small = Modelica.Constants.small; 
    1396       constant Modelica.SIunits.VolumeFlowRate smallVolumeFlowRate = eps; 
     1398      constant Modelica.SIunits.VolumeFlowRate smallVolumeFlowRate = eps*unitVolumeFlowRate; 
    13971399      constant Real eps = Modelica.Constants.eps; 
    13981400      Real yLim = max(min(y,y1),0) "Limited valve opening";