trick/trick_source/trick_swig/swig_convert_units.hh
Alex Lin 552f73d3a5 Math with temperature values is not as expected.
For addition and subtraction,  we created a new routine that
only scales second units to the first.  We apply it to all
conversions when adding and subtracting, but it only changes
the temperature results, because that is the only units that
has a bias factor. The comparision conversion routines were not
changed.

refs #202
2016-03-16 17:03:18 -05:00

12 lines
468 B
C++

#ifndef SWIG_CONERT_UNITS_HH
#define SWIG_CONERT_UNITS_HH
#include <string>
int convert_united_value( std::string & to_units , std::string & from_units , long long * val ) ;
int convert_united_value( std::string & to_units , std::string & from_units , double * val ) ;
int scale_united_value( std::string & to_units , std::string & from_units , long long * val ) ;
int scale_united_value( std::string & to_units , std::string & from_units , double * val ) ;
#endif