1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-23 04:43:57 +01:00

Little changes in the bash script

This commit is contained in:
Anthony Scemama 2021-03-18 17:30:48 +01:00
parent 71bb61dd5b
commit 241ae3a74a
8 changed files with 4709 additions and 942 deletions

28
src/build_trex.sh Normal file → Executable file
View File

@ -1,22 +1,30 @@
#!/bin/bash #!/bin/bash
if [[ $(basename $PWD) != "src" ]] ; then
echo "This script should run in the src directory"
exit -1
fi
# We want the script to crash on the 1st error:
set -e
echo "create populated directories" echo "create populated directories"
mkdir -p templates_front/populated mkdir -p templates_front/populated
mkdir -p templates_text/populated mkdir -p templates_text/populated
mkdir -p templates_hdf5/populated mkdir -p templates_hdf5/populated
# It is important to ad '--' to rm because it tells rm that what follows are
# not options. It is safer.
echo "remove existing templates" echo "remove existing templates"
rm templates_front/*.c rm -- templates_front/*.{c,h}
rm templates_text/*.c rm -- templates_text/*.{c,h}
rm templates_hdf5/*.c rm -- templates_hdf5/*.{c,h}
rm templates_front/*.h
rm templates_text/*.h
rm templates_hdf5/*.h
echo "clean populated directories" echo "clean populated directories"
rm templates_front/populated/* rm -- templates_front/populated/*
rm templates_text/populated/* rm -- templates_text/populated/*
rm templates_hdf5/populated/* rm -- templates_hdf5/populated/*
echo "tangle org files to generate templates" echo "tangle org files to generate templates"
cd templates_front cd templates_front
@ -32,7 +40,7 @@ emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "templator_
cd .. cd ..
echo "run generator script to populate templates" echo "run generator script to populate templates"
python generator.py python3 generator.py
sleep 2 sleep 2

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,6 @@
M-x org-babel-tangle M-x org-babel-tangle
*/ */
#ifndef _TREXIO_H #ifndef _TREXIO_H
#define _TREXIO_H #define _TREXIO_H
@ -12,19 +10,19 @@
typedef int32_t trexio_exit_code; typedef int32_t trexio_exit_code;
#define TREXIO_FAILURE ( (trexio_exit_code) -1 ) #define TREXIO_FAILURE ( (trexio_exit_code) -1 )
#define TREXIO_SUCCESS ( (trexio_exit_code) 0 ) #define TREXIO_SUCCESS ( (trexio_exit_code) 0 )
#define TREXIO_INVALID_ARG_1 ( (trexio_exit_code) 1 ) #define TREXIO_INVALID_ARG_1 ( (trexio_exit_code) 1 )
#define TREXIO_INVALID_ARG_2 ( (trexio_exit_code) 2 ) #define TREXIO_INVALID_ARG_2 ( (trexio_exit_code) 2 )
#define TREXIO_INVALID_ARG_3 ( (trexio_exit_code) 3 ) #define TREXIO_INVALID_ARG_3 ( (trexio_exit_code) 3 )
#define TREXIO_INVALID_ARG_4 ( (trexio_exit_code) 4 ) #define TREXIO_INVALID_ARG_4 ( (trexio_exit_code) 4 )
#define TREXIO_INVALID_ARG_5 ( (trexio_exit_code) 5 ) #define TREXIO_INVALID_ARG_5 ( (trexio_exit_code) 5 )
#define TREXIO_END ( (trexio_exit_code) 10 ) #define TREXIO_END ( (trexio_exit_code) 10 )
#define TREXIO_READONLY ( (trexio_exit_code) 11 ) #define TREXIO_READONLY ( (trexio_exit_code) 11 )
#define TREXIO_ERRNO ( (trexio_exit_code) 12 ) #define TREXIO_ERRNO ( (trexio_exit_code) 12 )
#define TREXIO_INVALID_ID ( (trexio_exit_code) 20 ) #define TREXIO_INVALID_ID ( (trexio_exit_code) 20 )
#define TREXIO_ALLOCATION_FAILED ( (trexio_exit_code) 21 ) #define TREXIO_ALLOCATION_FAILED ( (trexio_exit_code) 21 )
#define TREXIO_INVALID_NUM ( (trexio_exit_code) 22 ) #define TREXIO_INVALID_NUM ( (trexio_exit_code) 22 )
typedef int32_t back_end_t; typedef int32_t back_end_t;
@ -38,20 +36,34 @@ typedef struct trexio_s trexio_t;
trexio_t* trexio_open(const char* file_name, const char mode, const back_end_t back_end); trexio_t* trexio_open(const char* file_name, const char mode, const back_end_t back_end);
trexio_exit_code trexio_close(trexio_t* file); trexio_exit_code trexio_close(trexio_t* file);
trexio_exit_code trexio_read_nucleus_charge(trexio_t* file, double* nucleus_charge);
trexio_exit_code trexio_write_nucleus_charge(trexio_t* file, const double* nucleus_charge);
trexio_exit_code trexio_read_nucleus_coord(trexio_t* file, double* nucleus_coord);
trexio_exit_code trexio_write_nucleus_coord(trexio_t* file, const double* nucleus_coord);
trexio_exit_code trexio_read_ecp_lmax_plus_1(trexio_t* file, int64_t* ecp_lmax_plus_1);
trexio_exit_code trexio_write_ecp_lmax_plus_1(trexio_t* file, const int64_t* ecp_lmax_plus_1);
trexio_exit_code trexio_read_ecp_z_core(trexio_t* file, int64_t* ecp_z_core);
trexio_exit_code trexio_write_ecp_z_core(trexio_t* file, const int64_t* ecp_z_core);
trexio_exit_code trexio_read_ecp_local_n(trexio_t* file, int64_t* ecp_local_n);
trexio_exit_code trexio_write_ecp_local_n(trexio_t* file, const int64_t* ecp_local_n);
trexio_exit_code trexio_read_ecp_local_exponent(trexio_t* file, double* ecp_local_exponent);
trexio_exit_code trexio_write_ecp_local_exponent(trexio_t* file, const double* ecp_local_exponent);
trexio_exit_code trexio_read_ecp_local_coef(trexio_t* file, double* ecp_local_coef);
trexio_exit_code trexio_write_ecp_local_coef(trexio_t* file, const double* ecp_local_coef);
trexio_exit_code trexio_read_ecp_local_power(trexio_t* file, int64_t* ecp_local_power);
trexio_exit_code trexio_write_ecp_local_power(trexio_t* file, const int64_t* ecp_local_power);
trexio_exit_code trexio_read_ecp_non_local_n(trexio_t* file, int64_t* ecp_non_local_n);
trexio_exit_code trexio_write_ecp_non_local_n(trexio_t* file, const int64_t* ecp_non_local_n);
trexio_exit_code trexio_read_ecp_non_local_exponent(trexio_t* file, double* ecp_non_local_exponent);
trexio_exit_code trexio_write_ecp_non_local_exponent(trexio_t* file, const double* ecp_non_local_exponent);
trexio_exit_code trexio_read_ecp_non_local_coef(trexio_t* file, double* ecp_non_local_coef);
trexio_exit_code trexio_write_ecp_non_local_coef(trexio_t* file, const double* ecp_non_local_coef);
trexio_exit_code trexio_read_ecp_non_local_power(trexio_t* file, int64_t* ecp_non_local_power);
trexio_exit_code trexio_write_ecp_non_local_power(trexio_t* file, const int64_t* ecp_non_local_power);
trexio_exit_code trexio_read_nucleus_num(trexio_t* file, int64_t* num); trexio_exit_code trexio_read_nucleus_num(trexio_t* file, int64_t* num);
trexio_exit_code trexio_write_nucleus_num(trexio_t* file, const int64_t num); trexio_exit_code trexio_write_nucleus_num(trexio_t* file, const int64_t num);
trexio_exit_code trexio_read_ecp_local_num_n_max(trexio_t* file, int64_t* num);
trexio_exit_code trexio_read_nucleus_coord(trexio_t* file, double* coord); trexio_exit_code trexio_write_ecp_local_num_n_max(trexio_t* file, const int64_t num);
trexio_exit_code trexio_write_nucleus_coord(trexio_t* file, const double* coord); trexio_exit_code trexio_read_ecp_non_local_num_n_max(trexio_t* file, int64_t* num);
trexio_exit_code trexio_write_ecp_non_local_num_n_max(trexio_t* file, const int64_t num);
trexio_exit_code trexio_read_nucleus_charge(trexio_t* file, double* charge);
trexio_exit_code trexio_write_nucleus_charge(trexio_t* file, const double* charge);
trexio_exit_code trexio_read_rdm_one_e(trexio_t* file, double* one_e);
trexio_exit_code trexio_write_rdm_one_e(trexio_t* file, const double* one_e);
trexio_exit_code trexio_buffered_read_rdm_two_e(trexio_t* file, const int64_t offset, const int64_t size, int64_t* index, double* value);
trexio_exit_code trexio_buffered_write_rdm_two_e(trexio_t* file, const int64_t offset, const int64_t size, const int64_t* index, const double* value);
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,12 @@
/* This file was generated from the trexio.org org-mode file. /* This file was generated from the org-mode file.
To generate it, open trexio.org in Emacs and execute To generate it, open templator_hdf5.org file in Emacs and execute
M-x org-babel-tangle M-x org-babel-tangle
*/ */
#ifndef _TREXIO_HDF5_H #ifndef _TREXIO_HDF5_H
#define _TREXIO_HDF5_H #define _TREXIO_HDF5_H
#include "trexio.h" #include "trexio.h"
#include "trexio_private.h"
#include "trexio_s.h" #include "trexio_s.h"
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
@ -20,79 +17,44 @@
#include "hdf5.h" #include "hdf5.h"
#include "hdf5_hl.h" // needed for high-level APIs like H5LT, requires additional linking in Makefile #include "hdf5_hl.h" // needed for high-level APIs like H5LT, requires additional linking in Makefile
typedef struct slab_s {
uint64_t a;
uint64_t b;
uint64_t c;
uint64_t d;
} slab_t;
typedef struct dset_s {
hid_t dset_id;
hid_t dspace_id;
hid_t dtype_id;
uint64_t* dims;
uint32_t rank;
const char* dset_name;
} dset_t;
typedef struct h5nucleus_s {
uint64_t num;
double *coord;
double *charge;
dset_t* h5_coord;
dset_t* h5_charge;
} h5nucleus_t;
typedef struct h5electron_s {
uint64_t alpha_num;
uint64_t beta_num;
} h5electron_t;
typedef struct trexio_hdf5_s { typedef struct trexio_hdf5_s {
trexio_t parent ; trexio_t parent ;
hid_t file_id; hid_t file_id;
hid_t nucleus_group; hid_t nucleus_group;
hid_t electron_group; hid_t ecp_group;
//... other groups' id
const char* file_name; const char* file_name;
} trexio_hdf5_t; } trexio_hdf5_t;
trexio_exit_code trexio_hdf5_init(trexio_t* file); trexio_exit_code trexio_hdf5_init(trexio_t* file);
trexio_exit_code trexio_hdf5_finalize(trexio_t* file); trexio_exit_code trexio_hdf5_finalize(trexio_t* file);
trexio_exit_code trexio_hdf5_read_nucleus_num (const trexio_t* file, uint64_t* num);
typedef struct one_index_s { trexio_exit_code trexio_hdf5_write_nucleus_num (const trexio_t* file, const uint64_t num);
double value; trexio_exit_code trexio_hdf5_read_ecp_local_num_n_max (const trexio_t* file, uint64_t* num);
int64_t i; trexio_exit_code trexio_hdf5_write_ecp_local_num_n_max (const trexio_t* file, const uint64_t num);
} one_index_t; trexio_exit_code trexio_hdf5_read_ecp_non_local_num_n_max (const trexio_t* file, uint64_t* num);
trexio_exit_code trexio_hdf5_write_ecp_non_local_num_n_max (const trexio_t* file, const uint64_t num);
typedef struct two_index_s { trexio_exit_code trexio_hdf5_read_nucleus_charge(const trexio_t* file, double* nucleus_charge, const uint32_t rank, const uint64_t* dims);
double value; trexio_exit_code trexio_hdf5_write_nucleus_charge(const trexio_t* file, const double* nucleus_charge, const uint32_t rank, const uint64_t* dims);
int64_t i; trexio_exit_code trexio_hdf5_read_nucleus_coord(const trexio_t* file, double* nucleus_coord, const uint32_t rank, const uint64_t* dims);
int64_t j; trexio_exit_code trexio_hdf5_write_nucleus_coord(const trexio_t* file, const double* nucleus_coord, const uint32_t rank, const uint64_t* dims);
} two_index_t; trexio_exit_code trexio_hdf5_read_ecp_lmax_plus_1(const trexio_t* file, int64_t* ecp_lmax_plus_1, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_write_ecp_lmax_plus_1(const trexio_t* file, const int64_t* ecp_lmax_plus_1, const uint32_t rank, const uint64_t* dims);
typedef struct three_index_s { trexio_exit_code trexio_hdf5_read_ecp_z_core(const trexio_t* file, int64_t* ecp_z_core, const uint32_t rank, const uint64_t* dims);
double value; trexio_exit_code trexio_hdf5_write_ecp_z_core(const trexio_t* file, const int64_t* ecp_z_core, const uint32_t rank, const uint64_t* dims);
int64_t i; trexio_exit_code trexio_hdf5_read_ecp_local_n(const trexio_t* file, int64_t* ecp_local_n, const uint32_t rank, const uint64_t* dims);
int64_t j; trexio_exit_code trexio_hdf5_write_ecp_local_n(const trexio_t* file, const int64_t* ecp_local_n, const uint32_t rank, const uint64_t* dims);
int64_t k; trexio_exit_code trexio_hdf5_read_ecp_local_exponent(const trexio_t* file, double* ecp_local_exponent, const uint32_t rank, const uint64_t* dims);
} three_index_t; trexio_exit_code trexio_hdf5_write_ecp_local_exponent(const trexio_t* file, const double* ecp_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_read_ecp_local_coef(const trexio_t* file, double* ecp_local_coef, const uint32_t rank, const uint64_t* dims);
typedef struct four_index_s { trexio_exit_code trexio_hdf5_write_ecp_local_coef(const trexio_t* file, const double* ecp_local_coef, const uint32_t rank, const uint64_t* dims);
double value; trexio_exit_code trexio_hdf5_read_ecp_local_power(const trexio_t* file, int64_t* ecp_local_power, const uint32_t rank, const uint64_t* dims);
int64_t i; trexio_exit_code trexio_hdf5_write_ecp_local_power(const trexio_t* file, const int64_t* ecp_local_power, const uint32_t rank, const uint64_t* dims);
int64_t j; trexio_exit_code trexio_hdf5_read_ecp_non_local_n(const trexio_t* file, int64_t* ecp_non_local_n, const uint32_t rank, const uint64_t* dims);
int64_t k; trexio_exit_code trexio_hdf5_write_ecp_non_local_n(const trexio_t* file, const int64_t* ecp_non_local_n, const uint32_t rank, const uint64_t* dims);
int64_t l; trexio_exit_code trexio_hdf5_read_ecp_non_local_exponent(const trexio_t* file, double* ecp_non_local_exponent, const uint32_t rank, const uint64_t* dims);
} four_index_t; trexio_exit_code trexio_hdf5_write_ecp_non_local_exponent(const trexio_t* file, const double* ecp_non_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_read_ecp_non_local_coef(const trexio_t* file, double* ecp_non_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_read_nucleus_num(const trexio_t* file, uint64_t* num); trexio_exit_code trexio_hdf5_write_ecp_non_local_coef(const trexio_t* file, const double* ecp_non_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_write_nucleus_num(const trexio_t* file, const uint64_t num); trexio_exit_code trexio_hdf5_read_ecp_non_local_power(const trexio_t* file, int64_t* ecp_non_local_power, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_write_ecp_non_local_power(const trexio_t* file, const int64_t* ecp_non_local_power, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_read_nucleus_coord(const trexio_t* file, double* coord, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_hdf5_write_nucleus_coord(const trexio_t* file, const double* coord, const uint32_t rank, const uint64_t* dims);
#endif #endif

View File

@ -3,13 +3,10 @@
M-x org-babel-tangle M-x org-babel-tangle
*/ */
#ifndef _TREXIO_S_H #ifndef _TREXIO_S_H
#define _TREXIO_S_H #define _TREXIO_S_H
#include "trexio.h" #include "trexio.h"
#include "trexio_private.h"
#include <pthread.h> #include <pthread.h>
#include <assert.h> #include <assert.h>
@ -20,5 +17,4 @@ struct trexio_s {
char mode; char mode;
char padding[7]; /* Ensures the proper alignment of back-ends */ char padding[7]; /* Ensures the proper alignment of back-ends */
}; };
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@ -20,26 +20,53 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
typedef struct nucleus_s { typedef struct nucleus_s {
FILE* file; FILE* file;
double* coord; double* nucleus_charge;
double* charge; double* nucleus_coord;
uint64_t num; uint64_t nucleus_num;
uint64_t dims_charge[16]; uint64_t dims_nucleus_charge[16];
uint64_t dims_coord[16]; uint64_t dims_nucleus_coord[16];
uint32_t rank_charge; uint32_t rank_nucleus_charge;
uint32_t rank_coord; uint32_t rank_nucleus_coord;
int to_flush; int to_flush;
} nucleus_t; } nucleus_t;
typedef struct ecp_s {
typedef struct electron_s {
FILE* file; FILE* file;
uint64_t alpha_num; int64_t* ecp_lmax_plus_1;
uint64_t beta_num; int64_t* ecp_z_core;
int to_flush; int64_t* ecp_local_n;
} electron_t; double* ecp_local_exponent;
double* ecp_local_coef;
int64_t* ecp_local_power;
int64_t* ecp_non_local_n;
double* ecp_non_local_exponent;
double* ecp_non_local_coef;
int64_t* ecp_non_local_power;
uint64_t ecp_local_num_n_max;
uint64_t ecp_non_local_num_n_max;
uint64_t dims_ecp_lmax_plus_1[16];
uint64_t dims_ecp_z_core[16];
uint64_t dims_ecp_local_n[16];
uint64_t dims_ecp_local_exponent[16];
uint64_t dims_ecp_local_coef[16];
uint64_t dims_ecp_local_power[16];
uint64_t dims_ecp_non_local_n[16];
uint64_t dims_ecp_non_local_exponent[16];
uint64_t dims_ecp_non_local_coef[16];
uint64_t dims_ecp_non_local_power[16];
uint32_t rank_ecp_lmax_plus_1;
uint32_t rank_ecp_z_core;
uint32_t rank_ecp_local_n;
uint32_t rank_ecp_local_exponent;
uint32_t rank_ecp_local_coef;
uint32_t rank_ecp_local_power;
uint32_t rank_ecp_non_local_n;
uint32_t rank_ecp_non_local_exponent;
uint32_t rank_ecp_non_local_coef;
uint32_t rank_ecp_non_local_power;
int to_flush;
} ecp_t;
typedef struct rdm_s { typedef struct rdm_s {
FILE* file; FILE* file;
uint64_t dim_one_e; uint64_t dim_one_e;
@ -51,12 +78,10 @@ typedef struct rdm_s {
typedef struct trexio_text_s { typedef struct trexio_text_s {
trexio_t parent ; trexio_t parent ;
int lock_file; int lock_file;
nucleus_t* nucleus;
nucleus_t* nucleus; ecp_t* ecp;
electron_t* electron;
rdm_t* rdm; rdm_t* rdm;
} trexio_text_t; } trexio_text_t;
trexio_exit_code trexio_text_init(trexio_t* file); trexio_exit_code trexio_text_init(trexio_t* file);
trexio_exit_code trexio_text_lock(trexio_t* file); trexio_exit_code trexio_text_lock(trexio_t* file);
@ -64,22 +89,42 @@ trexio_exit_code trexio_text_lock(trexio_t* file);
trexio_exit_code trexio_text_finalize(trexio_t* file); trexio_exit_code trexio_text_finalize(trexio_t* file);
trexio_exit_code trexio_text_unlock(trexio_t* file); trexio_exit_code trexio_text_unlock(trexio_t* file);
nucleus_t* trexio_text_read_nucleus(trexio_text_t* file);
trexio_exit_code trexio_text_flush_nucleus(const trexio_text_t* file);
trexio_exit_code trexio_text_free_nucleus(trexio_text_t* file); trexio_exit_code trexio_text_free_nucleus(trexio_text_t* file);
trexio_exit_code trexio_text_free_ecp(trexio_text_t* file);
nucleus_t* trexio_text_read_nucleus(trexio_text_t* file);
ecp_t* trexio_text_read_ecp(trexio_text_t* file);
trexio_exit_code trexio_text_flush_nucleus(const trexio_text_t* file);
trexio_exit_code trexio_text_flush_ecp(const trexio_text_t* file);
trexio_exit_code trexio_text_read_nucleus_num(const trexio_t* file, uint64_t* num); trexio_exit_code trexio_text_read_nucleus_num(const trexio_t* file, uint64_t* num);
trexio_exit_code trexio_text_write_nucleus_num(const trexio_t* file, const uint64_t num); trexio_exit_code trexio_text_write_nucleus_num(const trexio_t* file, const uint64_t num);
trexio_exit_code trexio_text_read_ecp_local_num_n_max(const trexio_t* file, uint64_t* num);
trexio_exit_code trexio_text_read_nucleus_coord(const trexio_t* file, double* coord, const uint32_t rank, const uint64_t* dims); trexio_exit_code trexio_text_write_ecp_local_num_n_max(const trexio_t* file, const uint64_t num);
trexio_exit_code trexio_text_write_nucleus_coord(const trexio_t* file, const double* coord, const uint32_t rank, const uint64_t* dims); trexio_exit_code trexio_text_read_ecp_non_local_num_n_max(const trexio_t* file, uint64_t* num);
trexio_exit_code trexio_text_write_ecp_non_local_num_n_max(const trexio_t* file, const uint64_t num);
trexio_exit_code trexio_text_read_nucleus_charge(const trexio_t* file, double* charge, const uint32_t rank, const uint64_t* dims); trexio_exit_code trexio_text_read_nucleus_charge(const trexio_t* file, double* nucleus_charge, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_nucleus_charge(const trexio_t* file, const double* charge, const uint32_t rank, const uint64_t* dims); trexio_exit_code trexio_text_write_nucleus_charge(const trexio_t* file, const double* nucleus_charge, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_nucleus_coord(const trexio_t* file, double* nucleus_coord, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_nucleus_coord(const trexio_t* file, const double* nucleus_coord, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_lmax_plus_1(const trexio_t* file, int64_t* ecp_lmax_plus_1, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_lmax_plus_1(const trexio_t* file, const int64_t* ecp_lmax_plus_1, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_z_core(const trexio_t* file, int64_t* ecp_z_core, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_z_core(const trexio_t* file, const int64_t* ecp_z_core, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_local_n(const trexio_t* file, int64_t* ecp_local_n, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_local_n(const trexio_t* file, const int64_t* ecp_local_n, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_local_exponent(const trexio_t* file, double* ecp_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_local_exponent(const trexio_t* file, const double* ecp_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_local_coef(const trexio_t* file, double* ecp_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_local_coef(const trexio_t* file, const double* ecp_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_local_power(const trexio_t* file, int64_t* ecp_local_power, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_local_power(const trexio_t* file, const int64_t* ecp_local_power, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_non_local_n(const trexio_t* file, int64_t* ecp_non_local_n, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_non_local_n(const trexio_t* file, const int64_t* ecp_non_local_n, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_non_local_exponent(const trexio_t* file, double* ecp_non_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_non_local_exponent(const trexio_t* file, const double* ecp_non_local_exponent, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_non_local_coef(const trexio_t* file, double* ecp_non_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_non_local_coef(const trexio_t* file, const double* ecp_non_local_coef, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_read_ecp_non_local_power(const trexio_t* file, int64_t* ecp_non_local_power, const uint32_t rank, const uint64_t* dims);
trexio_exit_code trexio_text_write_ecp_non_local_power(const trexio_t* file, const int64_t* ecp_non_local_power, const uint32_t rank, const uint64_t* dims);
rdm_t* trexio_text_read_rdm(trexio_text_t* file); rdm_t* trexio_text_read_rdm(trexio_text_t* file);
trexio_exit_code trexio_text_flush_rdm(const trexio_text_t* file); trexio_exit_code trexio_text_flush_rdm(const trexio_text_t* file);
@ -91,5 +136,4 @@ trexio_exit_code trexio_text_write_rdm_one_e(const trexio_t* file, const double*
trexio_exit_code trexio_text_buffered_read_rdm_two_e(const trexio_t* file, const uint64_t offset, const uint64_t size, int64_t* index, double* value); trexio_exit_code trexio_text_buffered_read_rdm_two_e(const trexio_t* file, const uint64_t offset, const uint64_t size, int64_t* index, double* value);
trexio_exit_code trexio_text_buffered_write_rdm_two_e(const trexio_t* file, const uint64_t offset, const uint64_t size, const int64_t* index, const double* value); trexio_exit_code trexio_text_buffered_write_rdm_two_e(const trexio_t* file, const uint64_t offset, const uint64_t size, const int64_t* index, const double* value);
#endif #endif