Xdmf write grid name conflicts
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If I call AddInput and add two inputs from vtkXdmfReaders with the same grid name, the vtkXdmfWriter will give both grids the same name in the output file.
The name "Unnamed\0" is stored on both grids. When the writer retrieves those names, vtkstd::string::assign() is called with the count included the null terminator.
So I get "Unnamed\0\0" and adding the index gives "Unnamed\01\0" (if the index is 1), and the code from then on ignores anything after the first '\0', so the index doesn't show up in the file, and you get two grids with the same name.
If the name array is always NULL terminated, we can just call arrayName = static_cast<char*>(nameArray->GetVoidPointer(0)); and it works fine.
Just wanted to make sure this bug was removed when the new code goes into place.