Skip to content

Commit

Permalink
Merge pull request #251 from kleis-technology/fix/tkm_scale
Browse files Browse the repository at this point in the history
fix: tkm scale: ton * km has scale 1000 * 1000
  • Loading branch information
pevab authored Jul 12, 2023
2 parents 46842dd + 45c95a1 commit edef627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/ch/kleis/lcaplugin/core/prelude/Prelude.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Prelude {
companion object {
val mass = Dimension.of("mass")
val length = Dimension.of("length")
val temperature = Dimension.of("temperature")
private val temperature = Dimension.of("temperature")
val area = length.multiply(length)
val volume = length.multiply(area)
val energy = Dimension.of("energy")
Expand Down Expand Up @@ -74,7 +74,7 @@ class Prelude {
EUnitLiteral(UnitSymbol.of("W"), 1.0, power),
EUnitLiteral(UnitSymbol.of("m2a"), 1.0, land_use),
EUnitLiteral(UnitSymbol.of("m3a"), 1.0, land_use),
EUnitLiteral(UnitSymbol.of("tkm"), 1.0, transport),
EUnitLiteral(UnitSymbol.of("tkm"), 1e3 * 1e3, transport),
EUnitLiteral(UnitSymbol.of("my"), 365 * 24 * 3600.0, length_time),
EUnitLiteral(UnitSymbol.of("personkm"), 1000.0, person_distance),
EUnitLiteral(UnitSymbol.of("kgy"), 365 * 24 * 3600.0, mass_time),
Expand Down

0 comments on commit edef627

Please sign in to comment.