
AMDG alfC wrote:
This should not compile. I'll look into it. You probably need to fragment it into SI base units.
yes I was thinking something like that, like creating an si::energy_base_unit but then it will be full of base units if I do it this for every dimension. Besides it worked in one direction.
If you could provide either the error message, or even better, the definition of the atomic system, I could help more.
this is gcc 4.4.1, boost-1.40 error messages, atomic.hpp and main.cpp are attached below.
What you're missing is the conversion from s to m kg^-1 Eh^-1/2. (I think the conversion factor should be sqrt(4.359744e-18)) You could also make it work by adding BOOST_UNITS_DEFAULT_CONVERSION( atomic::hartree_energy_base_unit, si::energy ); In Christ, Steven Watanabe