You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have an issue with converting the data files into vtk files.
The conversion is resolved sucessfully but the resulting file has most of it data being set to the same values.
After further snooping and testing I have found that the variable atom on line 72 in vtk.cpp is not changing value and then after a while starts working as it should.
I have found an easy fix, namely, just change the for loop and the int atom to loop over vdc::spliced_atoms_list.size() like so:
for(size_t i=0; i < vdc::sliced_atoms_list.size(); i++){
// get atom ID
unsigned int atom = vdc::sliced_atoms_list[i];
vtkfile << spins[3*atom+0] << " " << spins[3*atom+1] << " " << spins[3*atom+2] << " ";
}
This let's me visualize the data using pyvista but, there is one weird thing that I now noticed - the ID section from the .vtu file has all ID data listed as 0, this happened also before the fix.
Hello,
I have an issue with converting the data files into vtk files.
The conversion is resolved sucessfully but the resulting file has most of it data being set to the same values.
After further snooping and testing I have found that the variable atom on line 72 in vtk.cpp is not changing value and then after a while starts working as it should.
vampire/util/vdc/vtk.cpp
Lines 69 to 75 in 4c9651d
Is there a fix for this?
The text was updated successfully, but these errors were encountered: