Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix molarity scaling. #2414

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

thorstenhater
Copy link
Contributor

fixes #2413

@thorstenhater thorstenhater requested a review from jlubo September 20, 2024 10:16
@@ -82,7 +82,8 @@ constexpr inline auto C = ::units::precise::coulomb;

// mol and molarity
using ::units::precise::mol;
constexpr inline auto M = mol / m.pow(3);
// M = mol/l = mol/dm^3 = mmol/m^3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// M = mol/l = mol/dm^3 = mmol/m^3
// M = mol/l = mol/dm^3 = mol/(m^3/1000)

@@ -82,7 +82,8 @@ constexpr inline auto C = ::units::precise::coulomb;

// mol and molarity
using ::units::precise::mol;
constexpr inline auto M = mol / m.pow(3);
// M = mol/l = mol/dm^3 = mmol/m^3
constexpr inline auto M = milli * mol / m.pow(3);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
constexpr inline auto M = milli * mol / m.pow(3);
constexpr inline auto L = milli * m.pow(3);
constexpr inline auto M = mol / L;

@jlubo jlubo merged commit 3f31da1 into arbor-sim:master Sep 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected molar concentration unit
2 participants