Skip to content

Commit acdbb29

Browse files
AntigoniChatzidakiFraser Greenroyd
authored andcommitted
Fixed bug with moment and pressure sign conversion when pushing and pulling results
1 parent bdb51e8 commit acdbb29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MidasCivil_Adapter/Convert/Units/MomentFromSI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static double MomentFromSI(this double moment, string forceUnit, string l
6565
switch (lengthUnit)
6666
{
6767
case "M":
68-
return moment.ToKilonewtonCentimetre();
68+
return moment.ToKilonewtonMetre();
6969
case "CM":
7070
return moment.ToKilonewtonCentimetre();
7171
case "MM":

MidasCivil_Adapter/Convert/Units/PressureFromSI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static double PressureFromSI(this double pressure, string forceUnit, stri
5151
case "CM":
5252
return pressure.ToNewtonPerSquareCentimetre();
5353
case "MM":
54-
return pressure.ToNewtonPerMillimetre();
54+
return pressure.ToNewtonPerSquareMillimetre();
5555
case "FT":
5656
throw new Exception("No conversion method found for" + forceUnit + " " + lengthUnit);
5757
case "IN":
@@ -82,7 +82,7 @@ public static double PressureFromSI(this double pressure, string forceUnit, stri
8282
switch (lengthUnit)
8383
{
8484
case "M":
85-
return pressure.ToKilogramForcePerMetre();
85+
return pressure.ToKilogramForcePerSquareMetre();
8686
case "CM":
8787
return pressure.ToKilogramForcePerSquareCentimetre();
8888
case "MM":

MidasCivil_Adapter/Convert/Units/PressureToSI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static double PressureToSI(this double pressure, string forceUnit, string
5151
case "CM":
5252
return pressure.FromNewtonPerSquareCentimetre();
5353
case "MM":
54-
return pressure.FromNewtonPerMillimetre();
54+
return pressure.FromNewtonPerSquareMillimetre();
5555
case "FT":
5656
throw new Exception("No conversion method found for" + forceUnit + " " + lengthUnit);
5757
case "IN":
@@ -82,7 +82,7 @@ public static double PressureToSI(this double pressure, string forceUnit, string
8282
switch (lengthUnit)
8383
{
8484
case "M":
85-
return pressure.FromKilogramForcePerMetre();
85+
return pressure.FromKilogramForcePerSquareMetre();
8686
case "CM":
8787
return pressure.FromKilogramForcePerSquareCentimetre();
8888
case "MM":

0 commit comments

Comments
 (0)