Commit bb7a84fc authored by Lisa Avila's avatar Lisa Avila
Browse files

BUG: changed an assert to an error macro to fix problem with the setget test

parent 62cf3225
......@@ -22,7 +22,7 @@
#include <vtkstd/vector>
#include "vtkGPUInfoListArray.h"
vtkCxxRevisionMacro(vtkGPUInfoList, "1.1");
vtkCxxRevisionMacro(vtkGPUInfoList, "1.2");
// ----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
......@@ -49,7 +49,12 @@ bool vtkGPUInfoList::IsProbed()
// \pre probed: IsProbed()
int vtkGPUInfoList::GetNumberOfGPUs()
{
assert("pre: probed" && this->IsProbed());
if ( !this->IsProbed() )
{
vtkErrorMacro("You must first call the Probe method");
return 0;
}
return static_cast<int>(this->Array->v.size());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment