Changeset 165 for trunk/src/matlab


Ignore:
Timestamp:
Jan 31, 2006, 2:49:49 PM (19 years ago)
Author:
dkearney
Message:

1) removing matlab and octave tests for put*id functions
2) adding old fortran examples
3) minor changes to matlab and octave to fix rpUnitsGetBasis
4) rpUnitsMakeMetric does not work in matlab
5) changes to fortran bindings to return proper error codes.
6) added debugging to matlab compiling options and changed outdir location in Makefile

Location:
trunk/src/matlab
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matlab/rpLibGetDouble.cc

    r162 r165  
    33 *  INTERFACE: Matlab Rappture Library Source
    44 *
    5  *    [nodeHandle,err] = rpLibGetDouble(libHandle,path)
     5 *    [retVal,err] = rpLibGetDouble(libHandle,path)
    66 *
    77 * ======================================================================
     
    1717
    1818/**********************************************************************/
    19 // METHOD: [retStr,err] = rpLibGetDouble(libHandle,path)
     19// METHOD: [retVal,err] = rpLibGetDouble(libHandle,path)
    2020/// Query the value of a node.
    2121/**
  • trunk/src/matlab/rpUnitsGetBasis.cc

    r154 r165  
    5252            myBasis = myUnit->getBasis();
    5353            if (myBasis) {
     54                // there was a basis, store it an return
    5455                retHandle = storeObject_UnitsStr(myBasis->getUnitsName());
    5556                if (retHandle) {
    5657                    err = 0;
    5758                }
     59            }
     60            else {
     61                // there was no basis for this unit
     62                // return negative handle and set err = 0
     63                retHandle = -1;
     64                err = 0;
    5865            }
    5966        }
  • trunk/src/matlab/rpUnitsMakeMetric.cc

    r154 r165  
    4949             retVal = RpUnits::makeMetric(basis);
    5050        }
     51        else {
     52            std::string errMsg = "Error while retrieving basis handle.\n";
     53            errMsg += "Possibly invalid handle?\n";
     54            mexErrMsgTxt(errMsg.c_str());
     55        }
    5156    }
    5257
Note: See TracChangeset for help on using the changeset viewer.