Commit 14902d42 authored by COULAUD Olivier's avatar COULAUD Olivier
Browse files

Add [] in delete operation

parent c3a64fa8
......@@ -234,6 +234,8 @@ int main(int argc, char ** argv){
FFmaGenericWriter writer(name) ;
writer.writeHeader(Centre,BoxWith, NbPoints, *ppart) ;
writer.writeArrayOfParticles(ppart, NbPoints);
std::cout << " End of writing "<<std::endl;
//
// Generate file for visualization
//
......@@ -277,7 +279,7 @@ int main(int argc, char ** argv){
}
}
//
delete particles ;
delete [] particles ;
//
return 1;
......
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