save_anyway.m

From Spinach Documentation Wiki
Revision as of 22:36, 1 January 2018 by Kuprov (talk | contribs) (→‎See also)
Jump to: navigation, search

A wrapper intended to trick SPMD blocks into saving data.

Syntax

    save_anyway(file_name,variable)

Description

Matlab does not permit load and save statements in parallel blocks, unless they are wrapped up like this. The function can only save one variable at a time, its name in the mat file is "variable".

Arguments

   file_name  - a character string specifying the 
                file name

   variable   - the variable to be saved

Outputs

This function writes a file.

See also

redfield_integral_async.m, redfield_integral_serial.m, ensemble_grape_call.


Version 2.1, authors: Ilya Kuprov