mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Merge topic 'dashboard_warnings'
51e600e7e Remove no_discard warnings from unneeded calls of a rng e17726ad0 Correct implicit signed conversion warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2082
This commit is contained in:
commit
12c29b5529
@ -38,12 +38,12 @@ void TestCosmoCenterFinder(const char* fileName)
|
||||
}
|
||||
|
||||
// Read in number of particles and locations
|
||||
int nParticles;
|
||||
vtkm::Id nParticles;
|
||||
inFile >> nParticles;
|
||||
|
||||
float* xLocation = new float[nParticles];
|
||||
float* yLocation = new float[nParticles];
|
||||
float* zLocation = new float[nParticles];
|
||||
float* xLocation = new float[static_cast<std::size_t>(nParticles)];
|
||||
float* yLocation = new float[static_cast<std::size_t>(nParticles)];
|
||||
float* zLocation = new float[static_cast<std::size_t>(nParticles)];
|
||||
std::cout << "Running MBP on " << nParticles << std::endl;
|
||||
|
||||
for (vtkm::Id p = 0; p < nParticles; p++)
|
||||
|
@ -59,7 +59,6 @@ void createVectors(std::size_t numPts,
|
||||
{
|
||||
//Test some other vector combinations
|
||||
std::uniform_real_distribution<vtkm::Float64> randomDist(-10.0, 10.0);
|
||||
randomDist(randGenerator);
|
||||
|
||||
vecs1.resize(numPts);
|
||||
vecs2.resize(numPts);
|
||||
|
@ -59,7 +59,6 @@ void createVectors(std::size_t numPts,
|
||||
{
|
||||
//Test some other vector combinations
|
||||
std::uniform_real_distribution<vtkm::Float64> randomDist(-10.0, 10.0);
|
||||
randomDist(randGenerator);
|
||||
|
||||
vecs1.resize(numPts);
|
||||
vecs2.resize(numPts);
|
||||
|
@ -48,7 +48,6 @@ void createVectors(std::vector<vtkm::Vec<T, 3>>& vecs1, std::vector<vtkm::Vec<T,
|
||||
|
||||
//Test some other vector combinations
|
||||
std::uniform_real_distribution<vtkm::Float64> randomDist(-10.0, 10.0);
|
||||
randomDist(randGenerator);
|
||||
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user