Commit 3bece470 authored by pugmire's avatar pugmire

merge from 1.12RC


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7984 18c085ea-50e0-402c-830e-de6fd14e8384
parent d94fb9f7
......@@ -1777,6 +1777,9 @@ avtStreamlineFilter::DomainToRank(DomainType &domain)
//
// Dave Pugmire, Mon Jun 8 2009, 11:44:01 EDT 2009
// Added color by secondary variable. Remove vorticity/ghostzones flags.
//
// Dave Pugmire, Thu Jul 30 20:47:08 PDT 2009
// Move cell centering back to avtStreamlinePlot
//
// ****************************************************************************
......@@ -1793,20 +1796,9 @@ avtStreamlineFilter::IntegrateDomain(avtStreamlineWrapper *slSeg,
// prepare streamline integration ingredients
vtkVisItInterpolatedVelocityField* velocity1 = vtkVisItInterpolatedVelocityField::New();
// See if we have cell cenetered data...
vtkCellDataToPointData *cellToPt1 = NULL;
if (ds->GetPointData()->GetVectors() == NULL)
{
cellToPt1 = vtkCellDataToPointData::New();
cellToPt1->SetInput(ds);
cellToPt1->Update();
velocity1->SetDataSet(cellToPt1->GetOutput());
}
else
velocity1->SetDataSet(ds);
velocity1->SetDataSet(ds);
if (coloringMethod == STREAMLINE_COLOR_VARIABLE)
ds->GetPointData()->SetActiveScalars(coloringVariable.c_str());
......@@ -1896,8 +1888,6 @@ avtStreamlineFilter::IntegrateDomain(avtStreamlineWrapper *slSeg,
slSeg->status = avtStreamlineWrapper::TERMINATE;
velocity1->Delete();
if (cellToPt1)
cellToPt1->Delete();
if (DebugStream::Level5())
debug5<<"::IntegrateDomain() result= "<<result<<endl;
......
......@@ -186,14 +186,18 @@ avtStreamlinePlot::GetMapper(void)
// Test to make sure we have a valid variable before asking for its
// centering.
//
// Dave Pugmire, Thu Jul 30 20:47:08 PDT 2009
// Move cell centering back to here. (Moved from avtStreamlineFilter).
// Also, fixed a bug in the commented out code.
//
// ****************************************************************************
avtDataObject_p
avtStreamlinePlot::ApplyOperators(avtDataObject_p input)
{
#ifdef ENGINE
avtDataObject_p dob = input;
avtDataObject_p dob = input;
// Try to determine the centering. If we have an expression, we won't
// be able to. So be conservative and assume the worst.
avtCentering centering = AVT_ZONECENT;
......@@ -202,12 +206,11 @@ avtStreamlinePlot::ApplyOperators(avtDataObject_p input)
// If the variable centering is zonal, convert it to nodal or the
// streamline filter will not play with it.
//if(centering == AVT_ZONECENT)
if (0)
if(centering == AVT_ZONECENT)
{
if(shiftCenteringFilter != NULL)
delete shiftCenteringFilter;
shiftCenteringFilter = new avtShiftCenteringFilter(AVT_ZONECENT);
shiftCenteringFilter = new avtShiftCenteringFilter(AVT_NODECENT);
shiftCenteringFilter->SetInput(input);
dob = shiftCenteringFilter->GetOutput();
}
......
Markdown is supported
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