Exodus  7.10
ex_put_qa.c File Reference
#include "exodusII.h"
#include "exodusII_int.h"
#include "netcdf.h"
#include <stddef.h>
#include <stdio.h>
#include <string.h>

Functions

int ex_put_qa (int exoid, int num_qa_records, char *qa_record[][4])
 

Function Documentation

◆ ex_put_qa()

int ex_put_qa ( int  exoid,
int  num_qa_records,
char *  qa_record[][4] 
)

The function ex_put_qa() writes the QA records to the database. Each QA record contains four MAX_STR_LENGTH-byte character strings. The character strings are:

  • the analysis code name
  • the analysis code QA descriptor
  • the analysis date
  • the analysis time
Returns
In case of an error, ex_put_qa() returns a negative number; a warning will return a positive number. Possible causes of errors include:
  • data file not properly opened with call to ex_create() or ex_open()
  • data file opened for read only.
  • QA records already exist in file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]num_qa_recordsThe number of QA records.
[in]qa_recordArray containing the QA records. To only define the number of qa records instead of defining and outputting, pass NULL for qa_record argument.

The following code segment will write out two QA records:

int num_qa_rec, error, exoid;
char *qa_record[2][4];
/* write QA records */
num_qa_rec = 2;
qa_record[0][0] = "TESTWT1";
qa_record[0][1] = "testwt1";
qa_record[0][2] = "07/07/93";
qa_record[0][3] = "15:41:33";
qa_record[1][0] = "FASTQ";
qa_record[1][1] = "fastq";
qa_record[1][2] = "07/07/93";
qa_record[1][3] = "16:41:33";
error = ex_put_qa (exoid, num_qa_rec, qa_record);