libsc 2.8.5.210-64a7
The SC library provides support for parallel scientific applications.
|
The general workflow for the scda format provided by sc_scda.h.
All workflows start with sc_scda_fopen_write or sc_scda_fopen_read that creates a file context sc_scda_fcontext_t that never moves backwards.
Then the user can call a sequence of functions out of:
for the case of using sc_scda_fopen_write.
Alternatively, for using sc_scda_fopen_read the user must call sc_scda_fread_section_header that examines the current file section and then call accordingly to the retrieved file section type
Finally, the file context is collectively closed and deallocated by sc_scda_fclose.
All above mentioned sc_scda functions are collective and output an error code (cf. sc_scda_ferror_t) that can be examined by sc_scda_ferror_string.
For more details and the option for encoded data see the functions in sc_scda.h.