Hitmap 1.3
|
![]() |
Input/Output for dense array tiles. | |
#define | hit_tileFileWrite(var, file, coord) |
#define | hit_tileFileRead(var, file, coord) |
#define | hit_tileTextFileWrite(var, file, coord, datatype, s1, s2) |
#define | hit_tileTextFileRead(var, file, coord, datatype, s1, s2) |
Functionalities to read/write data from/to files.
This module contains functionalities to read/write the data of whole tile variables from/to files. It includes functions for dense array tiles that can bu used to read/write distributed tiles in parallel. For sparse data structures in includes functionalities to read/write tiles in Harwell-Boeing file format.
#define hit_tileFileRead | ( | var, | |
file, | |||
coord | |||
) |
Read the data elements of the array tile from a binary file.
The variable should have been allocated, or it must be a selection of an allocated variable. The ancestor array coordinates should start at 0, and should not have stride.
[in,out] | var | HitTile* A pointer to a HitTile derived type variable. |
[in] | file | char* Name of the file. |
[in] | coord | Flag for the coordinate system to use.
|
int | True if the variable has assigned memory (allocated, or selection chain of an allocated variable). False otherwise. |
Definition at line 974 of file hit_tile.h.
#define hit_tileFileWrite | ( | var, | |
file, | |||
coord | |||
) |
Write the data elements of the array tile to a binary file.
The variable should have been allocated, or it must be a selection of an allocated variable. The ancestor array coordinates should start at 0, and should not have stride.
The file is completely rewritten. Only the elements in the domain space of the tile are overwritten. The rest of the file positions are not initialized.
[in] | var | HitTile* A pointer to a HitTile derived type variable. |
[in] | file | char* Name of the file. |
[in] | coord | Flag for the coordinate system to use.
|
int | True if the variable has assigned memory (allocated, or selection chain of an allocated variable). False otherwise. |
Definition at line 947 of file hit_tile.h.
#define hit_tileTextFileRead | ( | var, | |
file, | |||
coord, | |||
datatype, | |||
s1, | |||
s2 | |||
) |
Read the data elements of the array tile from a text file.
The variable should have been allocated, or it must be a selection of an allocated variable. The ancestor array coordinates should start at 0, and should not have stride.
[in] | var | HitTile* A pointer to a HitTile derived type variable. |
[in] | file | char* Name of the file. |
[in] | coord | Flag for the coordinate system to use.
|
[in] | datatype | Flag for the type of elements. The following ones are supported:
|
[in] | s1 | int Width for the format of the numbers |
[in] | s2 | int Precision for the format of the numbers (ignored for integers or longs) |
int | True if the variable has assigned memory (allocated, or selection chain of an allocated variable). False otherwise. |
Definition at line 1045 of file hit_tile.h.
#define hit_tileTextFileWrite | ( | var, | |
file, | |||
coord, | |||
datatype, | |||
s1, | |||
s2 | |||
) |
Write the data elements of the array tile to a text file.
The variable should have been allocated, or it must be a selection of an allocated variable. The ancestor array coordinates should start at 0, and should not have stride.
The file is completely rewritten. Only the elements in the domain space of the tile are overwritten. The rest of the file positions are not initialized.
[in] | var | HitTile* A pointer to a HitTile derived type variable. |
[in] | file | char* Name of the file. |
[in] | coord | Flag for the coordinate system to use.
|
[in] | datatype | Flag for the type of elements. The following ones are supported:
|
[in] | s1 | int Width for the format of the numbers |
[in] | s2 | int Precision for the format of the numbers (ignored for integers or longs) |
int | True if the variable has assigned memory (allocated, or selection chain of an allocated variable). False otherwise. |
Definition at line 1011 of file hit_tile.h.