ExodusII  6.05
ex_put_coord_names.c File Reference
#include <stddef.h>
#include <stdio.h>
#include "exodusII.h"
#include "exodusII_int.h"
#include "netcdf.h"

Functions

int ex_put_coord_names (int exoid, char *coord_names[])

Function Documentation

int ex_put_coord_names ( int  exoid,
char *  coord_names[] 
)

The function ex_put_coord_names() writes the names (MAX_STR_LENGTH-characters in length) of the coordinate arrays to the database. Memory must be allocated for the character strings before this function is invoked.

In case of an error, ex_put_coord_names() returns a negative number; a warning will return a positive number. Possible causes of errors include:

Parameters:
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]coord_namesArray containing num_dim names of length MAX_STR_LENGTH of the nodal coordinate arrays.

The following coding will write the coordinate names to an open exodus file :

int error, exoid;

char *coord_names[3];
coord_names[0] = "xcoor";
coord_names[1] = "ycoor";
coord_names[2] = "zcoor";

error = ex_put_coord_names (exoid, coord_names);
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines