Skip to content

Commit

Permalink
remove quad as a defined unit since the name interferes with quad pre…
Browse files Browse the repository at this point in the history
…cision definition in some compilers
  • Loading branch information
phlptp committed Mar 15, 2024
1 parent e2ee4bc commit 3735540
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion units/r20_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,7 @@ namespace precise {
unitD{"N67", "British thermal unit (59 degF)", energy::btu_59},
unitD{"N68", "British thermal unit (60 degF)", energy::btu_60},
unitD{"N69", "calorie (20 degC)", energy::cal_20},
unitD{"N70", "quad", energy::quad},
unitD{ "N70", "quad", {1e15, energy::btu_it} },
unitD{"N71", "therm (EC)", energy::therm_ec},
unitD{"N72", "therm (US)", energy::therm_us},
unitD{
Expand Down
1 change: 0 additions & 1 deletion units/unit_definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,6 @@ namespace precise {
constexpr precise_unit btu_it{1055.05585262, J}; // international table
// btu
constexpr precise_unit btu_iso{1055.06, J}; // rounded btu_it
constexpr precise_unit quad{1e15, btu_it};
constexpr precise_unit tonc{12000.0, btu_th / h};

constexpr precise_unit therm_us{100000.0, btu_59};
Expand Down
5 changes: 2 additions & 3 deletions units/units_conversion_maps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ UNITS_CPP14_CONSTEXPR_OBJECT std::array<std::pair<unit, const char*>, 113>
{unit_cast(precise::other::ppm), "ppm"},
{unit_cast(precise::other::ppb), "ppb"}}};

UNITS_CPP14_CONSTEXPR_OBJECT std::array<std::pair<unit, const char*>, 56>
UNITS_CPP14_CONSTEXPR_OBJECT std::array<std::pair<unit, const char*>, 55>
defined_unit_names_customary{{
{in, "in"},
{unit_cast(precise::in.pow(2)), "in^2"},
Expand Down Expand Up @@ -187,7 +187,6 @@ UNITS_CPP14_CONSTEXPR_OBJECT std::array<std::pair<unit, const char*>, 56>
{unit_cast(precise::pressure::inH2O), "inH2O"},
{unit_cast(precise::pressure::torr), "torr"},
{unit_cast(precise::energy::EER), "EER"},
{unit_cast(precise::energy::quad), "quad"},
{gal, "gal"},
{unit_cast(precise::us::barrel), "bbl"},
{lb, "lb"},
Expand Down Expand Up @@ -2236,7 +2235,7 @@ UNITS_CPP14_CONSTEXPR_OBJECT std::array<
{"buckingham",
{1e-26, precise::cgs::statC_charge* precise::cm.pow(2)}},
{"landauer", {0.0175, precise::energy::eV / precise::data::bit}},
{"quad", precise::energy::quad},
{"quad", {1e15, precise::energy::btu_it}},
{"therm", precise::energy::therm_ec},
{"thm", precise::energy::therm_ec},
{"therm(EC)", precise::energy::therm_ec},
Expand Down

0 comments on commit 3735540

Please sign in to comment.