Skip to content

Commit 203da21

Browse files
committed
Register heat_flux
1 parent 2c547c5 commit 203da21

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

metatomic-torch/src/units.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -586,14 +586,15 @@ static UnitValue parse_unit_expression(const std::string& unit) {
586586

587587

588588
static const auto QUANTITY_DIMS = std::unordered_map<std::string, Dimension>{
589-
{"length", DIM_LENGTH},
590-
{"energy", DIM_ENERGY},
591-
{"force", {{1, -2, 1, 0, 0}}}, // energy/length
592-
{"pressure", {{-1, -2, 1, 0, 0}}}, // energy/length^3
593-
{"momentum", {{1, -1, 1, 0, 0}}}, // mass*length/time
594-
{"mass", DIM_MASS},
595-
{"velocity", {{1, -1, 0, 0, 0}}}, // length/time
596-
{"charge", DIM_CHARGE},
589+
{"length", DIM_LENGTH},
590+
{"energy", DIM_ENERGY},
591+
{"force", {{1, -2, 1, 0, 0}}}, // energy/length
592+
{"pressure", {{-1, -2, 1, 0, 0}}}, // energy/length^3
593+
{"momentum", {{1, -1, 1, 0, 0}}}, // mass*length/time
594+
{"mass", DIM_MASS},
595+
{"velocity", {{1, -1, 0, 0, 0}}}, // length/time
596+
{"charge", DIM_CHARGE},
597+
{"heat_flux", {{3, -3, 1, 0, 0}}}, // energy*velocity
597598
};
598599

599600

0 commit comments

Comments
 (0)