Hi James,
On 10/07/2017 09:29 PM, james.d.martino@gmail.com wrote:
Hi all,
When initializing a problem from a configuration file, there will typically be an options section defining the key/value pairs for various outputs, timestepsolvers, etc as follows:
options = { 'ls' : 'ls', 'ts' : 'ts', 'save_steps' : 50, 'output_format' : 'vtk', 'output_dir' : './output', # set this to a valid directory you have write access to }
However, I have transitioned to initializing my sfepy program via 'interactive' commands. For example, there is a command to interactively set the outputs:
problemInstance.setup_output(output_filename_trunk='fem', output_dir='./output', output_format='vtk', float_format=None, file_per_var=None, linearization=None)
But I have had no luck searching for a command to interactively set the 'save_steps' parameter, since I really do not want to dump a "vtk" mesh every single timestep. Any help here would be greatly appreciated!
Check the example [1] - basically, in each iteration you get the solution, and it is up to you if you save it or not.
Or try setting directly the problem.conf.options.save_steps of your Problem instance.
r.
[1] http://sfepy.org/doc-devel/examples/diffusion/time_poisson_interactive.html