Skip to content
Snippets Groups Projects
Commit 9aed5974 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added units for tidal tensors to the unit tool

parent 775e346e
No related branches found
No related tags found
No related merge requests found
...@@ -301,6 +301,10 @@ void units_get_base_unit_exponents_array(float baseUnitsExp[5], ...@@ -301,6 +301,10 @@ void units_get_base_unit_exponents_array(float baseUnitsExp[5],
baseUnitsExp[UNIT_TIME] = -2.f; baseUnitsExp[UNIT_TIME] = -2.f;
break; break;
case UNIT_CONV_TIDAL_TENSOR:
baseUnitsExp[UNIT_TIME] = -2.f;
break;
case UNIT_CONV_ENERGY: case UNIT_CONV_ENERGY:
baseUnitsExp[UNIT_MASS] = 1.f; baseUnitsExp[UNIT_MASS] = 1.f;
baseUnitsExp[UNIT_LENGTH] = 2.f; baseUnitsExp[UNIT_LENGTH] = 2.f;
......
...@@ -79,6 +79,7 @@ enum unit_conversion_factor { ...@@ -79,6 +79,7 @@ enum unit_conversion_factor {
UNIT_CONV_MOMENTUM, UNIT_CONV_MOMENTUM,
UNIT_CONV_ANGULAR_MOMENTUM, UNIT_CONV_ANGULAR_MOMENTUM,
UNIT_CONV_FORCE, UNIT_CONV_FORCE,
UNIT_CONV_TIDAL_TENSOR,
UNIT_CONV_ENERGY, UNIT_CONV_ENERGY,
UNIT_CONV_ENERGY_PER_UNIT_MASS, UNIT_CONV_ENERGY_PER_UNIT_MASS,
UNIT_CONV_ENTROPY, UNIT_CONV_ENTROPY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment