Skip to content

Commit

Permalink
Added pressure unit mmHg
Browse files Browse the repository at this point in the history
  • Loading branch information
david-polak authored and OpenModelica-Hudson committed Oct 31, 2017
1 parent bf377fa commit d01f3d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/runtime/unitparser.cpp
Expand Up @@ -1143,6 +1143,8 @@ void UnitParser::initSIUnits() {
Rational(0), Rational(5, 9), Rational(0), true);

addDerived("pressure", "bar", "bar", "Pa", Rational(0), Rational(100000), Rational(0), true);
addDerived("pressure", "millimeter of mercury", "mmHg", "Pa", Rational(0),
Rational(133322387415, 1000000000), Rational(0), true);

addDerived("time", "millisecond", "ms", "s", Rational(-3), Rational(1), Rational(0), true);
addDerived("time", "minute", "min", "s", Rational(0), Rational(60), Rational(0), true);
Expand Down Expand Up @@ -1317,4 +1319,3 @@ void TestScanner() {
}
cout << "\n";
}

0 comments on commit d01f3d6

Please sign in to comment.