Miscellaneous Routines

cgio_flush_to_disk

C Signature
int cgio_flush_to_disk(int cgio_num)
Fortran Signature
Parameters
cgio_num IN: Database identifier.
Returns

ier - Error status

Modes

- w m

Description

Forces any buffered data in the database manager to be written to disk. Returns 0 if successfull, else an error code.

cgio_library_version

C Signature
int cgio_library_version(int cgio_num, char *version)
Fortran Signature
Parameters
cgio_num IN: Database identifier.
version OUT: 32-byte character string containing the database library version.
Returns

ier - Error status

Modes

r w m

Description

Gets the current library version for the database given by cgio_num. The version is returned in version which is of maximum length CGIO_MAX_VERSION_LENGTH (32). In C, version should be dimensioned at least 33 in the calling routine to allow for the terminating '0'. The function returns 0 if successfull, else an error code.

cgio_file_version

C Signature
int cgio_file_version(int cgio_num, char *file_version, char *creation_date, char *modified_date)
Fortran Signature
Parameters
cgio_num IN: Database identifier.
file_version OUT: 32-byte character string containing the database file version.
creation_date OUT: 32-byte character string containing the database file creation date.
modified_date OUT: 32-byte character string containing the last modification date for the database file.
Returns

ier - Error status

Modes

r w m

Description

Gets the version, creation and last modified dates, for the database file given by cgio_num. The version is returned in file_version, which is of maximum length CGIO_MAX_VERSION_LENGTH (32). The creation date is returned in creation_date, and the last modified date in modified_date, which are of maximum length CGIO_MAX_DATE_LENGTH (32). In C, these should be dimensioned at least 33 in the calling routine to allow for the terminating '0'. The function returns 0 if successfull, else an error code.