[Catalyst2] file writing is different / non existing output directories not created
We've been using the Catalyst in-situ analysis for a couple of years now, and are preparing to upgrade to Catalyst2. One thing I have noticed is that writing analysis results to disk is subtly different:
Catalyst:
w = servermanager.writers.XMLMultiBlockDataWriter(Input=someInput)
coprocessor.RegisterWriter(w, filename='outputFolder/someOutput_%t.vtm', freq=1,paddingamount=0)
Catalyst2
w = servermanager.writers.XMLMultiBlockDataWriter(Input=someInput, FileName='outputFolder/someOutput_{0}.vtm'.format(info.cycle))
w.UpdatePipeline()
I have a question: am I doing this correctly in Catalyst2?
Furthermore, I have noticed that the Catalyst-method, with coprocessor.RegisterWriter
, will automatically create any non-existent output directories: if 'outputFolder' does not exist, it will be created. With Catalyst2, writing fails when 'outputFolder' does not exist. Is there a way this can be created automatically? If not, can that be added somehow?