Skip to content
Snippets Groups Projects
Commit 8a34000d authored by Armin Leonhard Roediger's avatar Armin Leonhard Roediger Committed by Cristian Lalescu
Browse files

Renamed write_slab to write_rslab. And added clarifying comment for this

method.
parent 363a9652
No related branches found
No related tags found
1 merge request!148Feature/write slab
Pipeline #266472 passed
...@@ -89,7 +89,7 @@ class field ...@@ -89,7 +89,7 @@ class field
const std::string field_name, const std::string field_name,
const int iteration, const int iteration,
const bool read = true); const bool read = true);
int write_slab( int write_rslab(
const std::string fname, const std::string fname,
const std::string field_name, const std::string field_name,
const int iteration, const int iteration,
......
...@@ -345,10 +345,14 @@ int field<rnumber, be, fc>::io( ...@@ -345,10 +345,14 @@ int field<rnumber, be, fc>::io(
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
/** Writes a slab of a real field to a file. The slab starts at index 0
* and ends at thickness in the lowest dimension (z-direction).
* All other dimensions are kept untouched.
*/
template <typename rnumber, template <typename rnumber,
field_backend be, field_backend be,
field_components fc> field_components fc>
int field<rnumber, be, fc>::write_slab( int field<rnumber, be, fc>::write_rslab(
const std::string fname, const std::string fname,
const std::string field_name, const std::string field_name,
const int iteration, const int iteration,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment