core/unit.c File Reference


Detailed Description

Id
unit.c 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Definition in file unit.c.

Go to the source code of this file.

Functions

int unit_convert (char *from, char *to, double *pValue)
 Convert a value from one unit to another.
int unit_convert_complex (UNIT *pFrom, UNIT *pTo, complex *pValue)
 Convert a complex value from one unit to another.
int unit_convert_ex (UNIT *pFrom, UNIT *pTo, double *pValue)
 Convert a value from one unit to another.
UNITunit_find (char *unit)
 Find a unit.
void unit_init (void)
 Initialize the unit manager.
int unit_test (void)
 Test the unit manager.


GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy