From 43e5933e3d650c2fe80a321106a548566bb9562f Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 20 Dec 2019 16:53:26 +0100 Subject: [PATCH] Base: [skip ci] handle acceleration and force m/s^2 --- src/Base/UnitsSchemaMKS.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Base/UnitsSchemaMKS.cpp b/src/Base/UnitsSchemaMKS.cpp index 6b48dca2b9..eee1aa7445 100644 --- a/src/Base/UnitsSchemaMKS.cpp +++ b/src/Base/UnitsSchemaMKS.cpp @@ -158,6 +158,10 @@ QString UnitsSchemaMKS::schemaTranslate(const Quantity &quant, double &factor, Q factor = 1000000000000000000.0; } } + else if (unit == Unit::Acceleration) { + unitString = QString::fromLatin1("m/s^2"); + factor = 1000.0; + } else if ((unit == Unit::Pressure) || (unit == Unit::Stress)) { if (UnitValue < 10.0) {// Pa is the smallest unitString = QString::fromLatin1("Pa");