Ignore:
Timestamp:
Oct 5, 2005 8:17:26 AM (19 years ago)
Author:
dkearney
Message:
  1. More cleaning of RpUnits and RpLibrary? code
  2. added rp_result code to c++/fortran/c code
  3. added rp_children, rp_lib_node[comp,type,id] for fortran code (need to test)
  4. adjusted convert function to recognize statements as follows:

convert("5J","neV")
convert("3.12075e+28neV","J")

  1. made joules a metric unit in RpUnits.cc
  2. tested examples/app-fermi/fortran/fermi.f with new rappture library.

added units conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cee/RpUnitsCInterface.h

    r76 r83  
    1 
     1/*
     2 * ----------------------------------------------------------------------
     3 *  INTERFACE: C Rappture Units Header
     4 *
     5 * ======================================================================
     6 *  AUTHOR:  Derrick Kearney, Purdue University
     7 *  Copyright (c) 2005
     8 *  Purdue Research Foundation, West Lafayette, IN
     9 * ======================================================================
     10 */
    211
    312#ifdef __cplusplus
     
    2029
    2130    const char* getUnitsName(RpUnits* unit);
    22    
     31
    2332    double getExponent(RpUnits* unit);
    24    
     33
    2534    RpUnits* getBasis(RpUnits* unit);
    2635
     
    3544                            int showUnits,
    3645                            int* result );
    37    
     46
    3847    const char* convert_str (   const char* fromVal,
    3948                                const char* toUnitsName,
    4049                                int showUnits,
    4150                                int* result );
    42    
     51
    4352    const char* convert_obj_str (   RpUnits* fromUnits,
    4453                                    RpUnits* toUnits,
    4554                                    double val,
    4655                                    int showUnits   );
    47    
     56
    4857    const char* convert_obj_str_result( RpUnits* fromUnits,
    4958                                        RpUnits* toUnits,
     
    5564                            const char* toUnitsName,
    5665                            int* result );
    57    
     66
    5867    double convert_obj_double ( RpUnits* fromUnits,
    5968                                RpUnits* toUnits,
Note: See TracChangeset for help on using the changeset viewer.