From 4a83836f28376dd8fbf0576906c9b4705943cafd Mon Sep 17 00:00:00 2001
From: scemama Table of Contents
@@ -241,8 +241,8 @@ for the JavaScript code in this tag.
See templatorfront.org
As the size of the dataset should be extensible, the simplest
@@ -256,8 +256,8 @@ The offset can be used with fseek(69L*offset, SEEK_SET)
We need to declare the number of rows of the dataset as @@ -278,7 +278,7 @@ If the offset+num > nmax, we need to extend the dataset.
stdint.h
Memory allocation of structures can be facilitated by using the @@ -483,8 +483,8 @@ The maximum string size for the filenames is 4096 characters.
All calls to TREXIO are thread-safe. @@ -492,10 +492,10 @@ TREXIO front end is modular, which simplifies implementation of new back ends.
The C
templates that correspond to each of the abovementioned
@@ -2008,8 +2008,8 @@ precision (see Table above).
The Fortran
templates that provide an access to the C
API calls from Fortran.
@@ -2094,8 +2094,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
def write_$group_num$(trexio_file, num_w: int) -> None:
@@ -2180,8 +2180,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
This section concerns API calls related to datasets. @@ -2262,8 +2262,8 @@ This section concerns API calls related to datasets.
The C templates that correspond to each of the abovementioned functions can be found below. @@ -2274,13 +2274,13 @@ The basic (non-suffixed) API call on datasets deals with double precision (see T
trexio_exit_code
@@ -2408,8 +2408,8 @@ The basic (non-suffixed) API call on datasets deals with double precision (see T
trexio_exit_code
@@ -2550,11 +2550,11 @@ The basic (non-suffixed) API call on datasets deals with double precision (see T
trexio_exit_code rc; +trexio_exit_code rc; int64_t $group_dset_dim$ = 0; /* Error handling for this call is added by the generator */ @@ -2710,8 +2710,8 @@ rc = trexio_read_$group_dset_dim$_64(file, &($group_dset_dim$));
trexio_exit_code
@@ -2785,8 +2785,8 @@ rc = trexio_read_$group_dset_dim$_64(file, &($group_dset_dim$));
The Fortran
templates that provide an access to the C
API calls from Fortran
.
@@ -2871,8 +2871,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
def write_$group_dset$(trexio_file, dset_w) -> None:
@@ -3067,8 +3067,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
Sparse data structures are used typically for large tensors such as @@ -3209,12 +3209,12 @@ For the values,
This section concerns API calls related to datasets of strings. @@ -3254,8 +3254,8 @@ This section concerns API calls related to datasets of strings.
First parameter is the TREXIO
file handle. Second parameter is the variable to be written/read
@@ -3502,8 +3502,8 @@ to/from the TREXIO
file (except for trexio_has_
functi
The Fortran
templates that provide an access to the C
API calls from Fortran
.
@@ -3599,8 +3599,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
def write_$group_dset$(trexio_file, dset_w: list) -> None:
@@ -3716,12 +3716,12 @@ These templates are based on the use of iso_c_binding
. Pointers hav
This section concerns API calls related to string attributes. @@ -3761,8 +3761,8 @@ This section concerns API calls related to string attributes.
trexio_exit_code
@@ -3861,8 +3861,8 @@ This section concerns API calls related to string attributes.
The Fortran
templates that provide an access to the C
API calls from Fortran.
@@ -3939,8 +3939,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
def write_$group_str$(trexio_file, str_w: str) -> None:
@@ -4030,8 +4030,8 @@ These templates are based on the use of iso_c_binding
. Pointers hav
The function below adapts the original C-based trexio_open
for Fortran.
@@ -4165,7 +4165,7 @@ two code are identical, i.e. if the assert
statement pass.
#define $GROUP$_GROUP_NAME "$group$" @@ -343,8 +343,8 @@ for the JavaScript code in this tag.
typedef struct trexio_hdf5_s { @@ -358,8 +358,8 @@ for the JavaScript code in this tag.
trexio_exit_code
@@ -439,8 +439,8 @@ for the JavaScript code in this tag.
trexio_exit_code
@@ -556,8 +556,8 @@ for the JavaScript code in this tag.
trexio_exit_code
@@ -686,8 +686,8 @@ for the JavaScript code in this tag.
trexio_exit_code
@@ -898,8 +898,8 @@ for the JavaScript code in this tag.
trexio_exit_code
@@ -1026,7 +1026,7 @@ for the JavaScript code in this tag.
The "file" produced by the text back end is a directory with one @@ -361,8 +361,8 @@ The file is written when closed, or when the flush function is called.
typedef struct $group$_s { @@ -380,8 +380,8 @@ The file is written when closed, or when the flush function is called.
typedef struct rdm_s { @@ -407,8 +407,8 @@ The file is written when closed, or when the flush function is called.
trexio_exit_code
@@ -509,8 +509,8 @@ The file is written when closed, or when the flush function is called.
trexio_exit_code
@@ -535,8 +535,8 @@ The file is written when closed, or when the flush function is called.
$group$_t* @@ -805,8 +805,8 @@ trexio_text_read_$group$ (trexio_text_t*
trexio_exit_code @@ -870,8 +870,8 @@ trexio_text_read_$group$ (trexio_text_t*
Memory is allocated when reading. The following function frees memory. @@ -916,8 +916,8 @@ Memory is allocated when reading. The following function frees memory.
trexio_exit_code
@@ -979,8 +979,8 @@ Memory is allocated when reading. The following function frees memory.
The group_dset
array is assumed allocated with the appropriate size.
@@ -1076,8 +1076,8 @@ The group_dset
array is assumed allocated with the appropriate size
The group_dset
array is assumed allocated with the appropriate size.
@@ -1178,8 +1178,8 @@ The group_dset
array is assumed allocated with the appropriate size
trexio_exit_code
@@ -1253,12 +1253,12 @@ The group_dset
array is assumed allocated with the appropriate size
rdm_t* trexio_text_read_rdm(trexio_text_t* const file);
@@ -1353,8 +1353,8 @@ The group_dset
array is assumed allocated with the appropriate size
trexio_exit_code trexio_text_flush_rdm(trexio_text_t* const file);
@@ -1396,8 +1396,8 @@ The group_dset
array is assumed allocated with the appropriate size
Memory is allocated when reading. The followig function frees memory. @@ -1433,8 +1433,8 @@ Memory is allocated when reading. The followig function frees memory.
The one_e
array is assumed allocated with the appropriate size.
@@ -1500,8 +1500,8 @@ The one_e
array is assumed allocated with the appropriate size.
two_e
is a sparse data structure, which can be too large to fit
@@ -1609,7 +1609,7 @@ file for each sparse float structure.
index
type which is an
1-based int
in the Fortran interface and 0-based otherwise.
-As we expect our files to be archived in open-data repositories, we @@ -397,7 +397,7 @@ which have participated to the creation of the file, a list of authors of the file, and a textual description.
-