save_anyway.m

From Spinach Documentation Wiki
Revision as of 22:35, 1 January 2018 by Kuprov (talk | contribs) (Created page with "{{DISPLAYTITLE:save_anyway.m}} A wrapper intended to trick SPMD blocks into saving data. ==Syntax== save_anyway(file_name,variable) ==Description== Matlab does not per...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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


Version 2.1, authors: Ilya Kuprov