-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to use CLHEP and SI unit systems instead of Gaussian CGS (#…
…1076) * Add compile time switch for unit system Due to units like "gram" and "centimeter" being non-integer, more floating point error is accumulated, leading to slight mismatches for eps_electric and atomic_mass. * Update documentation to reflect native unit system * Update lldb script * Define molarity units * Add inverse length for macro cross section * Add unit traits for unit systems * Rename NativeUnit to Native and replace some custom units * Use unit-independent nomenclature for IO data * Define SI units and add unit test * fixup! Define SI units and add unit test * Fix unit mass for CLHEP system * Add magnetic field in CLHEP * Address review feedback * Move helper traits classes out of Quantity.hh * fixup! Move helper traits classes out of Quantity.hh * Address review feedback * Fix clhep unit mass and field * Use `if constexpr` to avoid sensitive FP arithmetic * Address @pcanal comments
- Loading branch information
Showing
52 changed files
with
778 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.