I am writing program where a blockvector is geeting modified after every iteration. I am wrting blockvector to .vtu file in every iteration. but .vtu file replicates last entry of vector to all its previous.<br><br>code looks like this<br>
<br> Dune::VTKWriter<GridView> vtkwriter(gv,Dune::VTKOptions::conforming);<br>for(int i=0i<N;i++)<br>{<br>//blockvector gets modified here<br> std::string blkv_str("blkvector");<br> std::stringstream ss;<br>
ss<<i;<br> blkv_str+=ss.str(); // generatrs string as blkvectori i.e i=0 string is blkvector0, for i=1 it is blkvector1<br> vtkwriter.addVertexData(blockvector, blkv_str);<br>}<br> vtkwriter.write("blockvector", Dune::VTKOptions::ascii);<br>
<br clear="all">but in .vtu file I get blkvectorN=blkvectorN-1.....=blkvector1=blkvector0<br>-- <br>Warm Regards,<br>Dhirendra Vaidya<br>VNIT Nagpur<br><br>