units of measure in fortran
Is there a library defining a datatype and servic开发者_StackOverflow社区es to deal with quantities associated to a unit of measure in fortran ?
There is the PHYSUNITS F90 module, which might do what you want.
Do mean something like UDUNITS? I find it really useful for time calculations, but most other conversions are just simple multiplication/addition combinations. These are usually too easy to code manually to warrant the extra library dependency of UDUNITS. Note that the more recent version, UDUNITS-2, does not yet have a Fortran interface.
精彩评论