LutzGross / esys-escript.github.io

Other
29 stars 13 forks source link

saveResults function to fix the case when SILO is not installed. #5

Open LutzGross opened 3 years ago

LutzGross commented 3 years ago

It would be helpful to have a function which combines saveVTK and saveSilo into a single function call where one can define the prefered formats are given as an argument. Default should be preferredFormat=['silo', 'vtk'] meaning that it first is trying to use 'silo'. if this is not working as SILO is not installed the fallback is vtk (we may add ther formats at a later stage). Also the function should return the file name being used. It would be great of it could also deal with the cases where Data objects are not expanded by creating a termporary, expanded copy.

LutzGross commented 2 years ago

does this already exist?