Commit 2d323fc4 authored by VTK Developers's avatar VTK Developers Committed by Brad King

Remove trailing whitespace from all source files

Exclude ThirdParty, Utilities/MetaIO, and Utilities/KWSys as these
are maintained outside VTK.

Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
Co-Author: Chris Harris <chris.harris@kitware.com>
Co-Author: Brad King <brad.king@kitware.com>
parent 144f03ca

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

## List all test sources
set(MyTests
TestFlashReader.cxx
TestEnzoReader.cxx
TestEnzoReader.cxx
)
## Create test source list
create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
${MyTests}
${MyTests}
EXTRA_INCLUDE vtkTestDriver.h
)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun ${vtk-module}CxxTests.cxx)
......
vtk_module(vtkAMRCore
GROUPS
StandAlone
DEPENDS
DEPENDS
vtkParallelCore
vtkFiltersGeneral
vtkhdf5
......
......@@ -225,7 +225,7 @@ bool vtkAMRResampleFilter::FoundDonor(
this->NumberOfBlocksTested++;
donorGrid->GetBounds(gbounds);
if ((q[0] < gbounds[0]) || (q[0] > gbounds[1]) ||
(q[1] < gbounds[2]) || (q[1] > gbounds[3]) ||
(q[1] < gbounds[2]) || (q[1] > gbounds[3]) ||
(q[2] < gbounds[4]) || (q[2] > gbounds[5]))
{
return false;
......@@ -467,7 +467,7 @@ int vtkAMRResampleFilter::ProbeGridPointInAMR(
{
assert( "pre: donorCellIdx is invalid" &&
(donorCellIdx >= 0) && (donorCellIdx < donorGrid->GetNumberOfCells()) );
this->NumberOfTimesFoundOnDonorLevel++;
// Lets see if the cell is blanked - if it isn't then we found the highest
// resolution grid that contains the point
......@@ -544,7 +544,7 @@ int vtkAMRResampleFilter::ProbeGridPointInAMR(
return donorCellIdx;
}
// Lets see if this is the highest resolution grid that contains the
// Lets see if this is the highest resolution grid that contains the
// point
if (donorGrid->IsCellVisible(donorCellIdx))
{
......@@ -586,7 +586,7 @@ int vtkAMRResampleFilter::ProbeGridPointInAMR(
}
//-----------------------------------------------------------------------------
void vtkAMRResampleFilter::SearchGridAncestors(double q[3],
void vtkAMRResampleFilter::SearchGridAncestors(double q[3],
vtkOverlappingAMR *amrds,
unsigned int &level,
unsigned int &gridId,
......@@ -620,7 +620,7 @@ void vtkAMRResampleFilter::SearchGridAncestors(double q[3],
cellId = -1;
}
//-----------------------------------------------------------------------------
void vtkAMRResampleFilter::SearchGridDecendants(double q[3],
void vtkAMRResampleFilter::SearchGridDecendants(double q[3],
vtkOverlappingAMR *amrds,
unsigned int maxLevel,
unsigned int &level,
......@@ -670,7 +670,7 @@ void vtkAMRResampleFilter::SearchGridDecendants(double q[3],
//-----------------------------------------------------------------------------
int vtkAMRResampleFilter::
ProbeGridPointInAMRGraph(double q[3], vtkUniformGrid *&donorGrid,
unsigned int &donorLevel, unsigned int &donorGridId,
unsigned int &donorLevel, unsigned int &donorGridId,
vtkOverlappingAMR *amrds, unsigned int maxLevel)
{
assert( "pre: AMR dataset is NULL" && amrds != NULL );
......@@ -771,7 +771,7 @@ void vtkAMRResampleFilter::TransferToGridNodes(
{
g->GetPoint( pIdx, qPoint );
donorCellIdx =
this->ProbeGridPointInAMRGraph(qPoint,donorGrid,
this->ProbeGridPointInAMRGraph(qPoint,donorGrid,
donorLevel, donorGridId,
this->AMRMetaData,maxLevelToLoad );
if( donorCellIdx != -1 )
......@@ -795,11 +795,11 @@ void vtkAMRResampleFilter::TransferToGridNodes(
for(pIdx = 0; pIdx < g->GetNumberOfPoints(); ++pIdx )
{
g->GetPoint( pIdx, qPoint );
donorCellIdx =
this->ProbeGridPointInAMR(qPoint,donorGrid, donorLevel,
this->ProbeGridPointInAMR(qPoint,donorGrid, donorLevel,
amrds,maxLevelToLoad );
if( donorCellIdx != -1 )
{
this->AverageLevel += donorLevel;
......@@ -1074,7 +1074,7 @@ void vtkAMRResampleFilter::AdjustNumberOfSamplesInRegion(
a[2] = fabs(this->BiasVector[2]);
// Find the max component
int bdir =
int bdir =
(a[0] > a[1]) ? ((a[0] > a[2]) ? 0 : 2) : ((a[1] > a[2]) ? 1 : 2);
if (bdir == 0)
......
......@@ -216,7 +216,7 @@ class VTKAMRCORE_EXPORT vtkAMRResampleFilter : public vtkMultiBlockDataSetAlgori
// first. The method returns the ID of the cell w.r.t. the donorGrid that
// contains the probe point q. - Makes use of Parent/Child Info
int ProbeGridPointInAMRGraph(
double q[3],vtkUniformGrid *&donorGrid,
double q[3],vtkUniformGrid *&donorGrid,
unsigned int &donorLevel, unsigned int &donorGridId,
vtkOverlappingAMR *amrds, unsigned int maxLevel );
......@@ -325,7 +325,7 @@ class VTKAMRCORE_EXPORT vtkAMRResampleFilter : public vtkMultiBlockDataSetAlgori
// Find a decendant of the specified grid that contains the point.
// If none is found then the original grid information is returned.
// The search is limited to levels < maxLevel
void SearchGridDecendants(double q[3],
void SearchGridDecendants(double q[3],
vtkOverlappingAMR *amrds,
unsigned int maxLevel,
unsigned int &level,
......@@ -335,7 +335,7 @@ class VTKAMRCORE_EXPORT vtkAMRResampleFilter : public vtkMultiBlockDataSetAlgori
//Description:
// Find an ancestor of the specified grid that contains the point.
// If none is found then the original grid information is returned
void SearchGridAncestors(double q[3],
void SearchGridAncestors(double q[3],
vtkOverlappingAMR *amrds,
unsigned int &level,
unsigned int &gridId,
......
......@@ -19,7 +19,7 @@ SET(CTEST_CUSTOM_MEMCHECK_IGNORE
HeaderTesting-Views
HeaderTesting-VolumeRendering
HeaderTesting-Widgets
PrintSelf-Charts
PrintSelf-Common
PrintSelf-Filtering
......@@ -51,7 +51,7 @@ SET(CTEST_CUSTOM_MEMCHECK_IGNORE
TestSetObjectMacro-Views
TestSetObjectMacro-VolumeRendering
TestSetObjectMacro-Widgets
# this one runs python which then runs two program so no memory checking there
Sockets-image
)
......@@ -148,7 +148,7 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
".*warning.*relational operator.*always evaluates to.*"
".*warning.*controlling expression is constant"
"[Qq]t.*h.*warning.*types cannot be declared in anonymous unions"
# QT on HP-UX uses -ldl while VTK uses -dldl.
"aCC: warning 983: The -ldl library specified on the command line is also added automatically by the compiler driver."
......@@ -224,8 +224,8 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION
# VPIC has endianness checks that are fragile, suppress warnings generated by them for now
"Utilities.VPIC.*warning"
#boost
"boost.*warning.*assignment operator could not be generated"
"boost.*warning.*type name first seen using .* now seen using .*"
......
......@@ -14,7 +14,7 @@
MACRO(CHECK_CXX_SOURCE_RUNS SOURCE VAR COMMENT)
IF("HAVE_${VAR}" MATCHES "^HAVE_${VAR}$")
SET(MACRO_CHECK_FUNCTION_DEFINITIONS
SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
IF(CMAKE_REQUIRED_LIBRARIES)
SET(CHECK_CXX_SOURCE_COMPILES_ADD_LIBRARIES
......@@ -44,14 +44,14 @@ MACRO(CHECK_CXX_SOURCE_RUNS SOURCE VAR COMMENT)
IF(HAVE_${VAR})
SET(${VAR} 1 CACHE INTERNAL "Test ${COMMENT}")
MESSAGE(STATUS "Performing Test ${COMMENT} - Success")
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log
"Performing C++ SOURCE FILE Test ${COMMENT} succeded with the following output:\n"
"${OUTPUT}\n"
"Source file was:\n${SOURCE}\n")
ELSE(HAVE_${VAR})
MESSAGE(STATUS "Performing Test ${COMMENT} - Failed")
SET(${VAR} "" CACHE INTERNAL "Test ${COMMENT}")
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log
"Performing C++ SOURCE FILE Test ${COMMENT} failed with the following output:\n"
"${OUTPUT}\n"
"Source file was:\n${SOURCE}\n")
......
......@@ -2,12 +2,12 @@
# Try to find nVidia's Cg compiler, runtime libraries, and include path.
# Once done this will define
#
# CG_FOUND - system has NVidia Cg and it can be used.
# CG_FOUND - system has NVidia Cg and it can be used.
# CG_INCLUDE_PATH = directory where cg.h resides
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
# CG_COMPILER = full path to cgc (cgc.exe on win32)
#
#
# On OSX default to using the framework version of Cg.
......
......@@ -21,7 +21,7 @@ if(WIN32) # The only platform it makes sense to check for DirectX SDK
)
mark_as_advanced(DirectX_INCLUDE_DIR)
if(DirectX_INCLUDE_DIR)
set(DirectX_ROOT_DIR "${DirectX_INCLUDE_DIR}/..")
set(DirectX_ROOT_DIR "${DirectX_INCLUDE_DIR}/..")
endif(DirectX_INCLUDE_DIR)
# dlls are in DirectX_ROOT_DIR/Developer Runtime/x64|x86
......@@ -29,10 +29,10 @@ if(WIN32) # The only platform it makes sense to check for DirectX SDK
set(DirectX_LIBRARY_PATHS)
if(CMAKE_CL_64)
set(DirectX_LIBRARY_PATHS
set(DirectX_LIBRARY_PATHS
"${DirectX_ROOT_DIR}/Lib/x64")
else(CMAKE_CL_64)
set(DirectX_LIBRARY_PATHS
set(DirectX_LIBRARY_PATHS
"${DirectX_ROOT_DIR}/Lib/x86" "${DirectX_ROOT_DIR}/Lib")
endif(CMAKE_CL_64)
......
......@@ -117,10 +117,10 @@ IF(FFMPEG_INCLUDE_DIR)
IF(FFMPEG_avcodec_LIBRARY)