Changeset 138 for trunk


Ignore:
Timestamp:
Nov 13, 2005, 10:24:25 PM (19 years ago)
Author:
dkearney
Message:

1) addition of octave/matlab test scripts, some still need work
2) the rpLibPutDoubleId and rpLibPutStringId functions are not quite working.
3) minor fixes to src/octave/rpLibPutDouble.cc and src/octave/rpUnitsGetBasis.cc

Location:
trunk
Files:
33 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/core/RpString.h

    r115 r138  
    11/*
    22 * ======================================================================
     3 *  AUTHOR: Derrick S. Kearney, Purdue University
    34 *  Copyright (c) 2004-2005  Purdue Research Foundation
    45 *
     
    8687            setSize(sizeWxH);
    8788        }
    88        
     89
    8990        // copy constructor
    9091        RpString ( const RpString& myRpString )
     
    105106        std::string hints;
    106107
    107        
     108
    108109
    109110};
  • trunk/src/Makefile

    r135 r138  
    8282RP_OTHER_DEPS   = RpFortranCommon.o RpBindingsDict.o
    8383RP_OBJS_DEP     = RpVariable.o RpAbout.o RpNumber.o RpString.o RpBoolean.o \
    84                   RpChoice.o RpOption.o RpUnitsStd.o RpUnits.o
     84                  RpChoice.o RpOption.o RpUnitsStd.o RpUnits.o RpValue.o\
     85                  RpValueDouble.o RpValueString.o
    8586
    8687LDLIB_MACOSX = -dynamiclib -o $(LIB_DIR)/$@.dylib
     
    181182        $(CXX) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    182183
     184RpValue.o: $(CORE_SRC)/RpValue.cc
     185        $(CXX) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
     186
     187RpValueDouble.o: $(CORE_SRC)/RpValueDouble.cc
     188        $(CXX) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
     189
     190RpValueString.o: $(CORE_SRC)/RpValueString.cc
     191        $(CXX) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    183192
    184193
  • trunk/src/octave/rpLibPutDouble.cc

    r135 r138  
    6161        if ( args(0).is_real_scalar() &&
    6262             args(1).is_string()      &&
    63              args(2).is_string()      &&
     63             args(2).is_real_scalar() &&
    6464             args(3).is_real_scalar()   ) {
    6565
  • trunk/src/octave/rpUnitsGetBasis.cc

    r135 r138  
    6363                        retHandle =
    6464                            storeObject_UnitsStr(myBasis->getUnitsName());
    65                         // adjust error code
    66                         if (retHandle >= 0) {
    67                             err = 0;
    68                         }
     65                    }
     66
     67                    // adjust error code
     68                    // if there is a basis retHandle will be a positive value
     69                    // if storing was successful. retHandle will be zero if
     70                    // storing failed.
     71                    // if there is no basis, myBasis will be null and
     72                    // retHandle will not change from its original negative
     73                    // value
     74                    if (retHandle != 0) {
     75                        err = 0;
    6976                    }
    7077                }
  • trunk/test/Makefile

    r91 r138  
    102102        $(F77) $(DEBUG) -o $@ $^ $(LIB_RAPPTURE)
    103103
     104RpValue_test: $(SRC_TEST)/RpValue_test.cc
     105        $(CXX) $(DEBUG) $(INCL_CORE) -o $@ $< $(LIB_RP_OBJECTS)
     106
    104107
    105108#### CLEAN UP ############################################################
  • trunk/test/src/RpString_test.cc

    r115 r138  
    11/*
    22 * ======================================================================
     3 *  AUTHOR: Derrick S. Kearney, Purdue University
    34 *  Copyright (c) 2004-2005  Purdue Research Foundation
    45 *
Note: See TracChangeset for help on using the changeset viewer.