Changeset 1109


Ignore:
Timestamp:
Aug 11, 2008, 8:59:06 PM (16 years ago)
Author:
dkearney
Message:

removing tabs

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/matlab/rpLibResult.cc

    r1085 r1109  
    33 *  INTERFACE: Matlab Rappture Library Source
    44 *
    5  *    [err] = rpLibResult(lib)
     5 *    [err] = rpLibResult(lib,status)
    66 *
    77 * ======================================================================
  • trunk/packages/vizservers/nanovis/RpDX.cpp

    r1028 r1109  
    4747
    4848    if (filename == NULL) {
    49         resultPtr->AddError("filename is NULL");
    50         return;
     49        resultPtr->AddError("filename is NULL");
     50        return;
    5151    }
    5252    // open the file with libdx
     
    5656    _dxobj = DXImportDX((char*)filename,NULL,NULL,NULL,NULL);
    5757    if (_dxobj == NULL) {
    58         resultPtr->AddError("can't import DX file \"%s\"", filename);
    59         return;
     58        resultPtr->AddError("can't import DX file \"%s\"", filename);
     59        return;
    6060    }
    6161
     
    6666
    6767    // FIXME: nanowire will need a different way to parse out the positions
    68     //        array since it uses a productarray to store its positions. 
    69     //        Possibly use DXGetProductArray().
     68    //        array since it uses a productarray to store its positions.
     69    //        Possibly use DXGetProductArray().
    7070    dxpos = (Array) DXGetComponentValue((Field) _dxobj, (char *)"positions");
    7171    if (dxpos == NULL) {
    72         resultPtr->AddError("can't get component value of \"positions\"");
    73         return;
     72        resultPtr->AddError("can't get component value of \"positions\"");
     73        return;
    7474    }
    7575    DXGetArrayInfo(dxpos, &_n, &type, &category, &_rank, &_shape);
     
    8686    pos = (float*) DXGetArrayData(dxpos);
    8787    if (pos == NULL) {
    88         resultPtr->AddError("DXGetArrayData failed to return positions array");
    89         return;
     88        resultPtr->AddError("DXGetArrayData failed to return positions array");
     89        return;
    9090    }
    9191
     
    9595        // raise error, data is not a regular grid and we cannot handle it
    9696        resultPtr->AddError("DX says our grid is not regular, we cannot handle this data");
    97         return;
     97        return;
    9898    }
    9999
     
    101101    if (_positions == NULL) {
    102102        // malloc failed, raise error
    103         resultPtr->AddError("malloc of _positions array failed");
    104         return;
     103        resultPtr->AddError("malloc of _positions array failed");
     104        return;
    105105    }
    106106    memcpy(_positions,pos,sizeof(float)*_n*_numAxis);
     
    110110        // malloc failed, raise error
    111111        resultPtr->AddError("malloc of _axisLen array failed");
    112         return;
     112        return;
    113113    }
    114114    memset(_axisLen, 0, _numAxis);
     
    117117    if (_delta == NULL) {
    118118        resultPtr->AddError("malloc of _delta array failed");
    119         return;
     119        return;
    120120    }
    121121    memset(_delta, 0, _numAxis*_numAxis);
     
    124124    if (_origin == NULL) {
    125125        resultPtr->AddError("malloc of _origin array failed");
    126         return;
     126        return;
    127127    }
    128128    memset(_origin, 0, _numAxis);
     
    131131    if (_max == NULL) {
    132132        resultPtr->AddError("malloc of _max array failed");
    133         return;
     133        return;
    134134    }
    135135    memset(_max, 0, _numAxis);
     
    155155    if (_data == NULL) {
    156156        resultPtr->AddError("malloc of _data array failed");
    157         return;
     157        return;
    158158    }
    159159
     
    173173    default:
    174174        resultPtr->AddError("don't know how to handle data of type %d\n", type);
    175         return;
     175        return;
    176176    }
    177177
  • trunk/src/core/RpDXWriter.h

    r1086 r1109  
    5555
    5656    size_t* _positions;    // array holding the number of x,y,z points
    57     double* _delta;      // array holding deltas of the uniform mesh
    58     double* _origin;     // array holding coord of origin
     57    double* _delta;        // array holding deltas of the uniform mesh
     58    double* _origin;       // array holding coord of origin
    5959
    6060    DXWriter& _writeDxToBuffer(SimpleCharBuffer *dxfile);
Note: See TracChangeset for help on using the changeset viewer.