ExodusII
6.05
|
#include <stddef.h>
#include <stdio.h>
#include "exodusII.h"
#include "exodusII_int.h"
#include "netcdf.h"
Functions | |
int | ex_get_qa (int exoid, char *qa_record[][4]) |
int ex_get_qa | ( | int | exoid, |
char * | qa_record[][4] | ||
) |
The function ex_get_qa() reads the QA records from the database. Each QA record contains four MAX_STR_LENGTH-byte
character strings. The character strings are:
Memory must be allocated for the QA records before this call is made. The number of QA records can be determined by invoking ex_inquire().
[in] | exoid | exodus file ID returned from a previous call to ex_create() or ex_open(). |
[out] | qa_record | Returned array containing the QA records. |
The following will determine the number of QA records and read them from the open exodus file:
int num_qa_rec, error, exoid char *qa_record[MAX_QA_REC][4]; \comment{read QA records} num_qa_rec = ex_inquire_int(exoid, EX_INQ_QA); for (i=0; i<num_qa_rec; i++) { for (j=0; j<4; j++) qa_record[i][j] = (char *) calloc ((MAX_STR_LENGTH+1), sizeof(char)); } error = ex_get_qa (exoid, qa_record);