Changeset 1246 for trunk/packages/vizservers/nanovis
- Timestamp:
- Dec 1, 2008, 8:09:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/RpDX.cpp
r1188 r1246 47 47 48 48 if (filename == NULL) { 49 //resultPtr->AddError("filename is NULL");49 resultPtr->AddError("filename is NULL"); 50 50 return; 51 51 } … … 56 56 _dxobj = DXImportDX((char*)filename,NULL,NULL,NULL,NULL); 57 57 if (_dxobj == NULL) { 58 //resultPtr->AddError("can't import DX file \"%s\"", filename);58 resultPtr->AddError("can't import DX file \"%s\"", filename); 59 59 return; 60 60 } … … 67 67 dxpos = (Array) DXGetComponentValue((Field) _dxobj, (char *)"positions"); 68 68 if (dxpos == NULL) { 69 //resultPtr->AddError("can't get component value of \"positions\"");69 resultPtr->AddError("can't get component value of \"positions\""); 70 70 return; 71 71 } … … 74 74 fprintf(stdout, "_n = %d\n",_n); 75 75 if (type != TYPE_FLOAT) { 76 //resultPtr->AddError("\"positions\" is not type float (type=%d)\n", type);76 resultPtr->AddError("\"positions\" is not type float (type=%d)\n", type); 77 77 return; 78 78 } … … 83 83 pos = (float*) DXGetArrayData(dxpos); 84 84 if (pos == NULL) { 85 //resultPtr->AddError("DXGetArrayData failed to return positions array");85 resultPtr->AddError("DXGetArrayData failed to return positions array"); 86 86 return; 87 87 } … … 91 91 if (DXQueryGridConnections(dxgrid, &_numAxis, NULL) == NULL) { 92 92 // raise error, data is not a regular grid and we cannot handle it 93 //resultPtr->AddError("DX says our grid is not regular, we cannot handle this data");93 resultPtr->AddError("DX says our grid is not regular, we cannot handle this data"); 94 94 return; 95 95 } … … 98 98 if (_positions == NULL) { 99 99 // malloc failed, raise error 100 //resultPtr->AddError("malloc of _positions array failed");100 resultPtr->AddError("malloc of _positions array failed"); 101 101 return; 102 102 } … … 106 106 if (_axisLen == NULL) { 107 107 // malloc failed, raise error 108 //resultPtr->AddError("malloc of _axisLen array failed");108 resultPtr->AddError("malloc of _axisLen array failed"); 109 109 return; 110 110 } … … 113 113 _delta = new float[_numAxis*_numAxis]; 114 114 if (_delta == NULL) { 115 //resultPtr->AddError("malloc of _delta array failed");115 resultPtr->AddError("malloc of _delta array failed"); 116 116 return; 117 117 } … … 120 120 _origin = new float[_numAxis]; 121 121 if (_origin == NULL) { 122 //resultPtr->AddError("malloc of _origin array failed");122 resultPtr->AddError("malloc of _origin array failed"); 123 123 return; 124 124 } … … 127 127 _max = new float[_numAxis]; 128 128 if (_max == NULL) { 129 //resultPtr->AddError("malloc of _max array failed");129 resultPtr->AddError("malloc of _max array failed"); 130 130 return; 131 131 } … … 151 151 _data = new float[_n]; 152 152 if (_data == NULL) { 153 //resultPtr->AddError("malloc of _data array failed");153 resultPtr->AddError("malloc of _data array failed"); 154 154 return; 155 155 } … … 172 172 173 173 default: 174 //resultPtr->AddError("don't know how to handle data of type %d\n", type);174 resultPtr->AddError("don't know how to handle data of type %d\n", type); 175 175 return; 176 176 }
Note: See TracChangeset
for help on using the changeset viewer.