#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int num_elem_in_block[10], num_nodes_per_elem[10];
int num_face_in_sset[10], num_nodes_in_nset[10];
int node_list[100], elem_list[100], side_list[100];
int ebids[10], ssids[10], nsids[10];
int prop_array[2];
float x[100], y[100], z[100];
float attrib[1], dist_fact[100];
char *coord_names[3], *qa_record[2][4], *info[3], *var_names[3];
char *block_names[10], *nset_names[10], *sset_names[10];
char *prop_names[2], *attrib_names[2];
char *title = "This is a test";
char *group_names[2];
int CPU_word_size = 0;
int IO_word_size = 4;
&CPU_word_size,
&IO_word_size);
printf("after ex_create for test-groups.exo, rootid = %d\n", rootid);
printf(" cpu word size: %d io word size: %d\n", CPU_word_size, IO_word_size);
int num_groups = 2;
group_names[0] = "Group_0";
group_names[1] = "Group_1";
for (int group = 0; group < num_groups; group++) {
printf("after ex_create_group for group 'Group1' in 'test-groups.exo', exoid = %d\n", exoid);
int num_dim = 3;
int num_nodes = 33;
int num_elem = 7;
int num_elem_blk = 7;
int num_node_sets = 2;
int num_side_sets = 5;
int error =
ex_put_init(exoid, title, num_dim, num_nodes, num_elem, num_elem_blk, num_node_sets,
num_side_sets);
printf("after ex_put_init, error = %d\n", error);
if (error) {
exit(-1);
}
x[0] = 0.0;
y[0] = 0.0;
z[0] = 0.0;
x[1] = 1.0;
y[1] = 0.0;
z[1] = 0.0;
x[2] = 1.0;
y[2] = 1.0;
z[2] = 0.0;
x[3] = 0.0;
y[3] = 1.0;
z[3] = 0.0;
x[4] = 1.0;
y[4] = 0.0;
z[4] = 0.0;
x[5] = 2.0;
y[5] = 0.0;
z[5] = 0.0;
x[6] = 2.0;
y[6] = 1.0;
z[6] = 0.0;
x[7] = 1.0;
y[7] = 1.0;
z[7] = 0.0;
x[8] = 0.0;
y[8] = 0.0;
z[8] = 0.0;
x[9] = 10.0;
y[9] = 0.0;
z[9] = 0.0;
x[10] = 10.0;
y[10] = 0.0;
z[10] = -10.0;
x[11] = 1.0;
y[11] = 0.0;
z[11] = -10.0;
x[12] = 1.0;
y[12] = 10.0;
z[12] = 0.0;
x[13] = 10.0;
y[13] = 10.0;
z[13] = 0.0;
x[14] = 10.0;
y[14] = 10.0;
z[14] = -10.0;
x[15] = 1.0;
y[15] = 10.0;
z[15] = -10.0;
x[16] = 0.0;
y[16] = 0.0;
z[16] = 0.0;
x[17] = 1.0;
y[17] = 0.0;
z[17] = 5.0;
x[18] = 10.0;
y[18] = 0.0;
z[18] = 2.0;
x[19] = 7.0;
y[19] = 5.0;
z[19] = 3.0;
x[20] = 3.0;
y[20] = 0.0;
z[20] = 6.0;
x[21] = 6.0;
y[21] = 0.0;
z[21] = 0.0;
x[22] = 0.0;
y[22] = 0.0;
z[22] = 0.0;
x[23] = 3.0;
y[23] = 2.0;
z[23] = 6.0;
x[24] = 6.0;
y[24] = 2.0;
z[24] = 2.0;
x[25] = 0.0;
y[25] = 2.0;
z[25] = 0.0;
x[26] = 2.7;
y[26] = 1.7;
z[26] = 2.7;
x[27] = 6.0;
y[27] = 1.7;
z[27] = 3.3;
x[28] = 5.7;
y[28] = 1.7;
z[28] = 1.7;
x[29] = 3.7;
y[29] = 0.0;
z[29] = 2.3;
x[30] = 0.0;
y[30] = 0.0;
z[30] = 0.0;
x[31] = 10.0;
y[31] = 0.0;
z[31] = 0.0;
x[32] = 10.0;
y[32] = 10.0;
z[32] = 10.0;
printf("after ex_put_coord, error = %d\n", error);
if (error) {
exit(-1);
}
coord_names[0] = "xcoor";
coord_names[1] = "ycoor";
coord_names[2] = "zcoor";
printf("after ex_put_coord_names, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_attr_param, error = %d\n", error);
if (error) {
exit(-1);
}
if (error) {
exit(-1);
}
if (error) {
exit(-1);
}
{
attrib_names[0] = "Node_attr_1";
attrib_names[1] = "Node_attr_2";
if (error) {
exit(-1);
}
}
int *elem_map = (int *)calloc(num_elem, sizeof(int));
for (int i = 1; i <= num_elem; i++) {
elem_map[i - 1] = i;
}
printf("after ex_put_id_map, error = %d\n", error);
if (error) {
exit(-1);
}
free(elem_map);
block_names[0] = "block_1";
block_names[1] = "block_2";
block_names[2] = "block_3";
block_names[3] = "block_4";
block_names[4] = "block_5";
block_names[5] = "block_6";
block_names[6] = "block_7";
num_elem_in_block[0] = 1;
num_elem_in_block[1] = 1;
num_elem_in_block[2] = 1;
num_elem_in_block[3] = 1;
num_elem_in_block[4] = 1;
num_elem_in_block[5] = 1;
num_elem_in_block[6] = 1;
num_nodes_per_elem[0] = 4;
num_nodes_per_elem[1] = 4;
num_nodes_per_elem[2] = 8;
num_nodes_per_elem[3] = 4;
num_nodes_per_elem[4] = 6;
num_nodes_per_elem[5] = 8;
num_nodes_per_elem[6] = 3;
ebids[0] = 10;
ebids[1] = 11;
ebids[2] = 12;
ebids[3] = 13;
ebids[4] = 14;
ebids[5] = 15;
ebids[6] = 16;
num_nodes_per_elem[0], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
if (error) {
exit(-1);
}
num_nodes_per_elem[1], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
num_nodes_per_elem[2], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
num_nodes_per_elem[3], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
num_nodes_per_elem[4], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
num_nodes_per_elem[5], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
num_nodes_per_elem[6], 1);
printf("after ex_put_elem_block, error = %d\n", error);
if (error) {
exit(-1);
}
for (int i = 0; i < 7; i++) {
printf("after ex_put_names, error = %d\n", error);
}
if (error) {
exit(-1);
}
prop_names[0] = "MATERIAL_PROPERTY_LONG_NAME_32CH";
prop_names[1] = "DENSITY";
printf("after ex_put_prop_names, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
int *connect = (int *)calloc(8, sizeof(int));
connect[0] = 1;
connect[1] = 2;
connect[2] = 3;
connect[3] = 4;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 5;
connect[1] = 6;
connect[2] = 7;
connect[3] = 8;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 9;
connect[1] = 10;
connect[2] = 11;
connect[3] = 12;
connect[4] = 13;
connect[5] = 14;
connect[6] = 15;
connect[7] = 16;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 17;
connect[1] = 18;
connect[2] = 19;
connect[3] = 20;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 21;
connect[1] = 22;
connect[2] = 23;
connect[3] = 24;
connect[4] = 25;
connect[5] = 26;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 17;
connect[1] = 18;
connect[2] = 19;
connect[3] = 20;
connect[4] = 27;
connect[5] = 28;
connect[6] = 30;
connect[7] = 29;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
connect[0] = 31;
connect[1] = 32;
connect[2] = 33;
printf("after ex_put_elem_conn, error = %d\n", error);
if (error) {
exit(-1);
}
free(connect);
attrib[0] = 3.14159;
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
attrib[0] = 6.14159;
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_elem_attr, error = %d\n", error);
if (error) {
exit(-1);
}
attrib_names[0] = "THICKNESS";
for (int i = 0; i < 7; i++) {
printf("after ex_put_elem_attr_names, error = %d\n", error);
if (error) {
exit(-1);
}
}
num_nodes_in_nset[0] = 5;
num_nodes_in_nset[1] = 3;
nsids[0] = 20;
nsids[1] = 21;
printf("after ex_put_node_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
node_list[0] = 10;
node_list[1] = 11;
node_list[2] = 12;
node_list[3] = 13;
node_list[4] = 14;
dist_fact[0] = 1.0;
dist_fact[1] = 2.0;
dist_fact[2] = 3.0;
dist_fact[3] = 4.0;
dist_fact[4] = 5.0;
printf("after ex_put_node_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_node_set_dist_fact, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_node_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
node_list[0] = 20;
node_list[1] = 21;
node_list[2] = 22;
dist_fact[0] = 1.1;
dist_fact[1] = 2.1;
dist_fact[2] = 3.1;
printf("after ex_put_node_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_node_set_dist_fact, error = %d\n", error);
if (error) {
exit(-1);
}
nset_names[0] = "nset_1";
nset_names[1] = "nset_2";
printf("after ex_put_names, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
prop_array[0] = 1000;
prop_array[1] = 2000;
printf("after ex_put_prop_array, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_attr_param, error = %d\n", error);
if (error) {
exit(-1);
}
if (error) {
exit(-1);
}
{
attrib_names[0] = "Nodeset_attribute";
if (error) {
exit(-1);
}
}
num_face_in_sset[0] = 2;
num_face_in_sset[1] = 2;
num_face_in_sset[2] = 7;
num_face_in_sset[3] = 8;
num_face_in_sset[4] = 10;
ssids[0] = 30;
ssids[1] = 31;
ssids[2] = 32;
ssids[3] = 33;
ssids[4] = 34;
printf("after ex_put_side_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
elem_list[0] = 2;
elem_list[1] = 2;
side_list[0] = 4;
side_list[1] = 2;
dist_fact[0] = 30.0;
dist_fact[1] = 30.1;
dist_fact[2] = 30.2;
dist_fact[3] = 30.3;
printf("after ex_put_side_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_dist_fact, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
elem_list[0] = 1;
elem_list[1] = 2;
side_list[0] = 2;
side_list[1] = 3;
dist_fact[0] = 31.0;
dist_fact[1] = 31.1;
dist_fact[2] = 31.2;
dist_fact[3] = 31.3;
printf("after ex_put_side_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_dist_fact, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
elem_list[0] = 3;
elem_list[1] = 3;
elem_list[2] = 3;
elem_list[3] = 3;
elem_list[4] = 3;
elem_list[5] = 3;
elem_list[6] = 3;
side_list[0] = 5;
side_list[1] = 3;
side_list[2] = 3;
side_list[3] = 2;
side_list[4] = 4;
side_list[5] = 1;
side_list[6] = 6;
printf("after ex_put_side_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
elem_list[0] = 4;
elem_list[1] = 4;
elem_list[2] = 4;
elem_list[3] = 4;
elem_list[4] = 6;
elem_list[5] = 6;
elem_list[6] = 6;
elem_list[7] = 6;
side_list[0] = 1;
side_list[1] = 2;
side_list[2] = 3;
side_list[3] = 4;
side_list[4] = 1;
side_list[5] = 2;
side_list[6] = 3;
side_list[7] = 4;
printf("after ex_put_side_set, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_side_set_param, error = %d\n", error);
if (error) {
exit(-1);
}
elem_list[0] = 5;
elem_list[1] = 5;
elem_list[2] = 5;
elem_list[3] = 5;
elem_list[4] = 5;
elem_list[5] = 7;
elem_list[6] = 7;
elem_list[7] = 7;
elem_list[8] = 7;
elem_list[9] = 7;
side_list[0] = 1;
side_list[1] = 2;
side_list[2] = 3;
side_list[3] = 4;
side_list[4] = 5;
side_list[5] = 1;
side_list[6] = 2;
side_list[7] = 3;
side_list[8] = 4;
side_list[9] = 5;
printf("after ex_put_side_set, error = %d\n", error);
if (error) {
exit(-1);
}
sset_names[0] = "sset_1";
sset_names[1] = "sset_2";
sset_names[2] = "sset_3";
sset_names[3] = "sset_4";
sset_names[4] = "sset_5";
printf("after ex_put_names, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_prop, error = %d\n", error);
if (error) {
exit(-1);
}
int num_qa_rec = 2;
qa_record[0][0] = "TESTWT";
qa_record[0][1] = "testwt";
qa_record[0][2] = "07/07/93";
qa_record[0][3] = "15:41:33";
qa_record[1][0] = "";
qa_record[1][1] = " ";
qa_record[1][2] = "";
qa_record[1][3] = " ";
error =
ex_put_qa(exoid, num_qa_rec, qa_record);
printf("after ex_put_qa, error = %d\n", error);
if (error) {
exit(-1);
}
int num_info = 3;
info[0] = "This is the first information record.";
info[1] = "";
info[2] = " ";
printf("after ex_put_info, error = %d\n", error);
if (error) {
exit(-1);
}
int num_glo_vars = 1;
var_names[0] = "glo_vars";
printf("after ex_put_variable_param, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_variable_names, error = %d\n", error);
if (error) {
exit(-1);
}
int num_nod_vars = 2;
var_names[0] = "node_variable_a_very_long_name_0";
var_names[1] = "nod_var1";
printf("after ex_put_variable_param, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_variable_names, error = %d\n", error);
if (error) {
exit(-1);
}
int num_ele_vars = 3;
var_names[0] = "this_variable_name_is_short";
var_names[1] = "this_variable_name_is_just_right";
var_names[2] = "this_variable_name_is_tooooo_long";
printf("after ex_put_variable_param, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_variable_names, error = %d\n", error);
if (error) {
exit(-1);
}
int num_nset_vars = 3;
{
var_names[0] = "ns_var0";
var_names[1] = "ns_var1";
var_names[2] = "ns_var2";
printf("after ex_put_variable_param, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_variable_names, error = %d\n", error);
if (error) {
exit(-1);
}
}
int num_sset_vars = 3;
{
var_names[0] = "ss_var0";
var_names[1] = "ss_var1";
var_names[2] = "ss_var2";
printf("after ex_put_variable_param, error = %d\n", error);
if (error) {
exit(-1);
}
printf("after ex_put_variable_names, error = %d\n", error);
if (error) {
exit(-1);
}
}
int *truth_tab = (int *)calloc((num_elem_blk * num_ele_vars), sizeof(int));
{
int k = 0;
for (int i = 0; i < num_elem_blk; i++) {
for (int j = 0; j < num_ele_vars; j++) {
truth_tab[k++] = 1;
}
}
}
printf("after ex_put_elem_var_tab, error = %d\n", error);
if (error) {
exit(-1);
}
free(truth_tab);
int whole_time_step = 1;
int num_time_steps = 10;
float *glob_var_vals = (float *)calloc(num_glo_vars, CPU_word_size);
float *nodal_var_vals = (float *)calloc(num_nodes, CPU_word_size);
float *elem_var_vals = (float *)calloc(4, CPU_word_size);
float *sset_var_vals = (float *)calloc(10, CPU_word_size);
float *nset_var_vals = (float *)calloc(10, CPU_word_size);
for (int i = 0; i < num_time_steps; i++) {
float time_value = (float)(i + 1) / 100.;
error =
ex_put_time(exoid, whole_time_step, &time_value);
printf("after ex_put_time, error = %d\n", error);
if (error) {
exit(-1);
}
for (int j = 0; j < num_glo_vars; j++) {
glob_var_vals[j] = (float)(j + 2) * time_value;
}
printf("after ex_put_glob_vars, error = %d\n", error);
if (error) {
exit(-1);
}
for (int k = 1; k <= num_nod_vars; k++) {
for (int j = 0; j < num_nodes; j++) {
nodal_var_vals[j] = (float)k + ((float)(j + 1) * time_value);
}
printf("after ex_put_nodal_var, error = %d\n", error);
if (error) {
exit(-1);
}
}
for (int k = 1; k <= num_ele_vars; k++) {
for (int j = 0; j < num_elem_blk; j++) {
for (int m = 0; m < num_elem_in_block[j]; m++) {
elem_var_vals[m] = (float)(k + 1) + (float)(j + 2) + ((float)(m + 1) * time_value);
}
error =
ex_put_elem_var(exoid, whole_time_step, k, ebids[j], num_elem_in_block[j],
elem_var_vals);
printf("after ex_put_elem_var, error = %d\n", error);
if (error) {
exit(-1);
}
}
}
for (int k = 1; k <= num_sset_vars; k++) {
for (int j = 0; j < num_side_sets; j++) {
for (int m = 0; m < num_face_in_sset[j]; m++) {
sset_var_vals[m] = (float)(k + 2) + (float)(j + 3) + ((float)(m + 1) * time_value);
}
error =
ex_put_sset_var(exoid, whole_time_step, k, ssids[j], num_face_in_sset[j],
sset_var_vals);
printf("after ex_put_sset_var, error = %d\n", error);
if (error) {
exit(-1);
}
}
}
for (int k = 1; k <= num_nset_vars; k++) {
for (int j = 0; j < num_node_sets; j++) {
for (int m = 0; m < num_nodes_in_nset[j]; m++) {
nset_var_vals[m] = (float)(k + 3) + (float)(j + 4) + ((float)(m + 1) * time_value);
}
error =
ex_put_nset_var(exoid, whole_time_step, k, nsids[j], num_nodes_in_nset[j],
nset_var_vals);
printf("after ex_put_nset_var, error = %d\n", error);
if (error) {
exit(-1);
}
}
}
whole_time_step++;
printf("after ex_update, error = %d\n", error);
if (error) {
exit(-1);
}
}
free(glob_var_vals);
free(nodal_var_vals);
free(elem_var_vals);
free(sset_var_vals);
free(nset_var_vals);
}
printf("after ex_close, error = %d\n", error);
if (error) {
exit(-1);
}
return 0;
}
@ EX_SIDE_SET
Definition exodusII.h:278
@ EX_NODE_SET
Definition exodusII.h:270
@ EX_NODAL
Definition exodusII.h:268
@ EX_GLOBAL
Definition exodusII.h:285
@ EX_ELEM_MAP
Definition exodusII.h:280
@ EX_ELEM_BLOCK
Definition exodusII.h:275
@ EX_ABORT
Definition exodusII.h:392
@ EX_VERBOSE
Definition exodusII.h:390
SEACAS_DEPRECATED int ex_put_nset_var(int exoid, int time_step, int nset_var_index, ex_entity_id nset_id, int64_t num_nodes_this_nset, const void *nset_var_vals)
Definition ex_put_nset_var.c:47
SEACAS_DEPRECATED int ex_put_nodal_var(int exoid, int time_step, int nodal_var_index, int64_t num_nodes, const void *nodal_var_vals)
Definition ex_put_nodal_var.c:74
SEACAS_DEPRECATED int ex_put_sset_var(int exoid, int time_step, int sset_var_index, ex_entity_id sset_id, int64_t num_faces_this_sset, const void *sset_var_vals)
Definition ex_put_sset_var.c:46
SEACAS_DEPRECATED int ex_put_elem_var(int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, const void *elem_var_vals)
Definition ex_put_elem_var.c:114
#define EX_NOCLASSIC
Definition exodusII.h:109
#define EX_NETCDF4
Definition exodusII.h:106
#define EX_CLOBBER
Definition exodusII.h:101
int ex_put_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t num_entries_in_set, int64_t num_dist_fact_in_set)
Definition ex_put_set_param.c:39
int ex_put_names(int exoid, ex_entity_type obj_type, char *const names[])
Definition ex_put_names.c:37
int ex_put_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const void_int *node_conn, const void_int *elem_edge_conn, const void_int *elem_face_conn)
Definition ex_put_conn.c:44
int ex_create_group(int parent_id, const char *group_name)
Definition ex_create_group.c:17
int ex_put_one_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int attrib_index, const void *attrib)
Definition ex_put_one_attr.c:37
int ex_put_prop_names(int exoid, ex_entity_type obj_type, int num_props, char **prop_names)
Definition ex_put_prop_names.c:97
int ex_put_coord_names(int exoid, char *const coord_names[])
Definition ex_put_coord_names.c:46
int ex_put_coord(int exoid, const void *x_coor, const void *y_coor, const void *z_coor)
Definition ex_put_coord.c:87
int ex_put_prop(int exoid, ex_entity_type obj_type, ex_entity_id obj_id, const char *prop_name, ex_entity_id value)
Definition ex_put_prop.c:77
int ex_put_attr(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const void *attrib)
Definition ex_put_attr.c:37
int ex_put_prop_array(int exoid, ex_entity_type obj_type, const char *prop_name, const void_int *values)
Definition ex_put_prop_array.c:71
int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, const char *name)
Definition ex_put_name.c:85
int ex_put_init(int exoid, const char *title, int64_t num_dim, int64_t num_nodes, int64_t num_elem, int64_t num_elem_blk, int64_t num_node_sets, int64_t num_side_sets)
Definition ex_put_init.c:53
int ex_put_attr_param(int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int num_attrs)
Definition ex_put_attr_param.c:35
int ex_put_block(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const char *entry_descrip, int64_t num_entries_this_blk, int64_t num_nodes_per_entry, int64_t num_edges_per_entry, int64_t num_faces_per_entry, int64_t num_attr_per_entry)
Definition ex_put_block.c:47
int ex_put_set_dist_fact(int exoid, ex_entity_type set_type, ex_entity_id set_id, const void *set_dist_fact)
Definition ex_put_set_dist_fact.c:37
int ex_put_set(int exoid, ex_entity_type set_type, ex_entity_id set_id, const void_int *set_entry_list, const void_int *set_extra_list)
Definition ex_put_set.c:41
int ex_put_attr_names(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, char **names)
int ex_put_id_map(int exoid, ex_entity_type map_type, const void_int *map)
Definition ex_put_id_map.c:37
int ex_put_time(int exoid, int time_step, const void *time_value)
Definition ex_put_time.c:51
int ex_put_variable_names(int exoid, ex_entity_type obj_type, int num_vars, char *const var_names[])
Definition ex_put_variable_names.c:125
int ex_put_variable_param(int exoid, ex_entity_type obj_type, int num_vars)
Definition ex_put_variable_param.c:124
int ex_put_truth_table(int exoid, ex_entity_type obj_type, int num_blk, int num_var, const int *var_tab)
Definition ex_put_truth_table.c:67
int ex_put_var(int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entries_this_obj, const void *var_vals)
Definition ex_put_var.c:77
#define ex_create(path, mode, comp_ws, io_ws)
Definition exodusII.h:591
int ex_put_qa(int exoid, int num_qa_records, char *qa_record[][4])
Definition ex_put_qa.c:63
int ex_opts(int options)
Definition ex_opts.c:56
int ex_put_info(int exoid, int num_info, char *const info[])
Definition ex_put_info.c:73
int ex_close(int exoid)
Definition ex_close.c:47
int ex_update(int exoid)
Definition ex_update.c:30