Commit 9f876dc3 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille
Browse files

rm warning for algoThreadProcPeriodic

parent d838ae4d
...@@ -125,7 +125,7 @@ public: ...@@ -125,7 +125,7 @@ public:
*/ */
FFmmAlgorithmThreadProcPeriodic(const FMpi::FComm& inComm, OctreeClass* const inTree, FFmmAlgorithmThreadProcPeriodic(const FMpi::FComm& inComm, OctreeClass* const inTree,
const int inUpperLevel = 2) const int inUpperLevel = 2)
: tree(inTree) , kernels(0), comm(inComm), nbLevelsAboveRoot(inUpperLevel), offsetRealTree(GetFackLevel(inUpperLevel)), : tree(inTree) , kernels(nullptr), comm(inComm), nbLevelsAboveRoot(inUpperLevel), offsetRealTree(GetFackLevel(inUpperLevel)),
numberOfLeafs(0), numberOfLeafs(0),
MaxThreads(omp_get_max_threads()), nbProcess(inComm.processCount()), idProcess(inComm.processId()), MaxThreads(omp_get_max_threads()), nbProcess(inComm.processCount()), idProcess(inComm.processId()),
OctreeHeight(tree->getHeight()),intervals(new Interval[inComm.processCount()]), OctreeHeight(tree->getHeight()),intervals(new Interval[inComm.processCount()]),
...@@ -219,7 +219,7 @@ public: ...@@ -219,7 +219,7 @@ public:
// delete array // delete array
delete [] iterArray; delete [] iterArray;
iterArray = 0; iterArray = nullptr;
} }
private: private:
...@@ -808,7 +808,7 @@ private: ...@@ -808,7 +808,7 @@ private:
octreeIterator = avoidGotoLeftIterator; octreeIterator = avoidGotoLeftIterator;
delete leafsNeedOther[idxLevel]; delete leafsNeedOther[idxLevel];
leafsNeedOther[idxLevel] = 0; leafsNeedOther[idxLevel] = nullptr;
// Compute this cells // Compute this cells
FLOG(computationCounter.tic()); FLOG(computationCounter.tic());
...@@ -1279,7 +1279,7 @@ private: ...@@ -1279,7 +1279,7 @@ private:
if( neighbors[idxNeig] && !offsets[idxNeig].equals(0,0,0) ){ if( neighbors[idxNeig] && !offsets[idxNeig].equals(0,0,0) ){
// Put periodic neighbors into other array // Put periodic neighbors into other array
periodicNeighbors[idxNeig] = neighbors[idxNeig]; periodicNeighbors[idxNeig] = neighbors[idxNeig];
neighbors[idxNeig] = 0; neighbors[idxNeig] = nullptr;
++periodicNeighborsCounter; ++periodicNeighborsCounter;
FReal*const positionsX = periodicNeighbors[idxNeig]->getWPositions()[0]; FReal*const positionsX = periodicNeighbors[idxNeig]->getWPositions()[0];
...@@ -1353,7 +1353,7 @@ private: ...@@ -1353,7 +1353,7 @@ private:
otherP2Ptree.createLeaf(leafIndex)->getSrc()->restore((*recvBuffer[idxProc])); otherP2Ptree.createLeaf(leafIndex)->getSrc()->restore((*recvBuffer[idxProc]));
} }
delete recvBuffer[idxProc]; delete recvBuffer[idxProc];
recvBuffer[idxProc] = 0; recvBuffer[idxProc] = nullptr;
} }
} }
} }
......
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