Skip to content

Commit

Permalink
Merge pull request #3100 from eschnett/patch-9
Browse files Browse the repository at this point in the history
Update faq.rst
  • Loading branch information
Chuck Atkins authored Mar 11, 2022
2 parents 3e83279 + 1f80a06 commit c9181e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user_guide/source/faq/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ C++11: Should I pass adios2:: objects by value or by reference?
Fortran: Can I pass slices and temporary arrays to adios2_put?
--------------------------------------------------------------

By definition the lifetime of a temporary if the scope of the function is passed to. Therefore,
By definition the lifetime of a temporary is the scope of the function is passed to. Therefore,
you must use sync mode with ``adios2_put``.
Deferred mode will save garbage data since the memory location of a temporary is undefined after ``adios2_put``, not able to reach ``adios2_end_step``, ``adios2_close`` or ``adios2_perform_puts`` where the memory is actually used.

Expand Down

0 comments on commit c9181e5

Please sign in to comment.