#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define EX_TEST_FILENAME "edgeFace.exo"
double coordsX[] = {0., 0., 0., 0., 3., 3., 3., 3., -3., -3., -3., -3.};
double coordsY[] = {-1., 1., 1., -1., -3., 3., 3., -3., -3., 3., 3., -3.};
double coordsZ[] = {-1., -1., 1., 1., -3., -3., 3., 3., -3., -3., 3., 3.};
const char *coordsNames[] = {"X", "Y", "Z"};
int conn1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4};
int conn2[] = {1, 2, 3, 5};
int econn1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 17, 18, 19, 20};
int fconn1[] = {4, 5, 7, 6, 3, 2, 8, 9, 11, 10, 1, 3};
int ebconn1[] = {1, 2, 2, 3, 3, 4, 4, 1, 5, 6, 6, 7, 7, 8, 8, 5, 1, 5, 2, 6,
4, 8, 3, 7, 9, 10, 10, 11, 11, 12, 12, 9, 9, 1, 10, 2, 12, 4, 11, 3};
int fbconn1[] = {12, 11, 10, 9, 5, 6, 7, 8};
int fbconn2[] = {1, 2, 3, 4};
int fbconn3[] = {1, 5, 6, 2, 3, 7, 8, 4, 2, 6, 7, 3, 4, 8, 5, 1,
9, 1, 2, 10, 11, 3, 4, 12, 10, 2, 3, 11, 12, 4, 1, 9};
int nmap1[] = {12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
int edmap1[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20};
int famap1[] = {2, 1, 4, 3, 6, 5, 7, 8, 9, 10, 11};
int emap1[] = {1, 2};
const char *eblk_names[] = {"Eli_WALLACH", "Angelo_NOVI"};
const char *edblk_names[] = {"Aldo_GIUFFRE"};
const char *fablk_names[] = {"Livio_LORENZON", "Claudio_SCARCHILLI", "John_BARTHA"};
const char *nmap_names[] = {"Luigi_PISTILLI"};
const char *edmap_names[] = {"Antonio_CASALE"};
const char *famap_names[] = {"Sandro_SCARCHILLI"};
const char *emap_names[] = {"Benito_STEFANELLI"};
int nset_nodes[] = {5, 6, 9};
int eset_edges[] = {1, 2, 4, 15, 19, 20};
int eset_orient[] = {+1, +1, +1, +1, +1, -1};
double eset_df[] = {2., 2., 0.5, 0.5, 1., 1.};
int fset_faces[] = {3, 9};
int fset_orient[] = {+1, -1};
int sset_elems[] = {1, 1, 1, 2, 2};
int sset_sides[] = {1, 3, 5, 2, 4};
int elset_elems[] = {1, 2};
const char *elset_names[] = {"Clint_EASTWOOD", "Lee_VAN_CLEEF"};
const char *nset_names[] = {"Ennio_MORRICONE"};
const char *eset_names[] = {"Rada_RASSIMOV"};
const char *fset_names[] = {"Enzo_PETITO"};
const char *sset_names[] = {"Luciano_VINCENZONI"};
const char *edge_attr_names1[] = {"Sergio_LEONE"};
const char *face_attr_names1[] = {"GOOD"};
const char *face_attr_names2[] = {"BAD"};
const char *face_attr_names3[] = {"UGLY"};
const char *elem_attr_names1[] = {"SPAGHETTI", "WESTERN"};
double edge_attr_values1[] = {1., 2., 3., 5., 7., 11., 13., 17., 19., 23.,
29., 31., 37., 41., 43., 47., 53., 59., 61., 67.};
double face_attr_values1[] = {71., 73.};
double face_attr_values2[] = {79.};
double face_attr_values3[] = {83., 89., 97., 101., 103., 107., 109., 113.};
double elem_attr_values1[] = {127., 101., 137., 139.};
double vals_glo_var[2][2] = {{36., 37.}, {42., 43.}};
double vals_nod_var[2][12] = {{0.1, 0.8, 0.0, 0.4, 0.3, 0.9, 0.8, 0.5, 0.3, 0.7, 0.4, 0.6},
{0.7, 0.5, 0.3, 0.5, 0.2, 0.7, 0.9, 0.8, 0.0, 0.2, 0.3, 0.5}};
double vals_edge_var1eb1[2][20] = {
{20., 19., 18., 17., 16., 15., 14., 13., 12., 11., 10., 9., 8., 7., 6., 5., 4., 3., 2., 1.},
{21., 20., 19., 18., 17., 16., 15., 14., 13., 12., 11., 10., 9., 8., 7., 6., 5., 4., 3., 2.}};
double vals_edge_var2eb1[2][20] = {
{1., 1., 0., 0., 1., 1., 2., 0., 2., 0., 1., 1., 1., 1., 0., 0., 2., 2., 2., 2.},
{1., 1., 0., 0., 1., 1., 2., 0., 2., 0., 1., 1., 1., 1., 0., 0., 2., 2., 2., 2.}};
double vals_face_var1fb1[2][2] = {{0, 1}, {2, 0}};
double vals_face_var1fb3[2][8] = {{1, 0, 2, 0, 3, 0, 4, 0}, {0, 1, 0, 2, 0, 3, 0, 4}};
double vals_elem_var1eb1[2][2] = {{8, 8}, {0, -8}};
double vals_fset_var1fs1[2][2] = {{1., 3.}, {9., 27.}};
#define EXCHECK(funcall, errmsg) \
if ((funcall) < 0) { \
fprintf(stderr, errmsg); \
free(varParams.edge_var_tab); \
free(varParams.face_var_tab); \
free(varParams.elem_var_tab); \
free(varParams.fset_var_tab); \
return 1; \
}
int ex_have_arg(int argc, char *argv[], const char *aname)
{
int i;
for (i = 0; i < argc; ++i) {
if (!strcmp(argv[i], aname)) {
return 1;
}
}
return 0;
}
{
int exoid;
int appWordSize = 8;
int diskWordSize = 8;
int concatSets = ex_have_arg(argc, argv, "-pcset");
int concatResult = ex_have_arg(argc, argv, "-pvpax");
double t;
"CreateEdgeFace Test",
3,
12,
20,
1,
11,
3,
3,
2,
1,
1,
1,
1,
2,
1,
1,
1,
1,
};
if (exoid <= 0) {
fprintf(stderr, "Unable to open \"%s\" for writing.\n", EX_TEST_FILENAME);
return 1;
}
;
{
int blk;
}
}
}
}
"Unable to write coordinates.\n");
"Unable to write edge block connectivity.\n");
"Unable to write face block 1 connectivity.\n");
"Unable to write face block 2 connectivity.\n");
"Unable to write face block 3 connectivity.\n");
"Unable to write elem block 1 connectivity.\n");
"Unable to write elem block 2 connectivity.\n");
"Unable to write edge block names.\n");
"Unable to write face block names.\n");
"Unable to write element block names.\n");
"Unable to write node map names.\n");
"Unable to write edge map names.\n");
"Unable to write face map names.\n");
"Unable to write element map names.\n");
"Unable to write edge block 1 attribute names.\n");
"Unable to write face block 1 attribute names.\n");
"Unable to write face block 1 attribute names.\n");
"Unable to write face block 1 attribute names.\n");
"Unable to write elem block 1 attribute names.\n");
"Unable to write edge block 1 attribute values.\n");
"Unable to write face block 1 attribute values.\n");
"Unable to write face block 1 attribute values.\n");
"Unable to write face block 1 attribute values.\n");
"Unable to write elem block 1 attribute values.\n");
"Unable to write node set names.\n");
"Unable to write edge set names.\n");
"Unable to write face set names.\n");
"Unable to write side set names.\n");
"Unable to write element set names.\n");
{
ex_set allSets[1 + 1 + 1 + 1 + 2];
ex_set *nodeSets = &allSets[0];
ex_set *edgeSets = &allSets[1];
ex_set *faceSets = &allSets[2];
ex_set *sideSets = &allSets[3];
ex_set *elemSets = &allSets[4];
if (concatSets) {
"Unable to output concatenated sets.\n");
}
else {
}
}
if (concatResult) {
"Unable to write result variable parameter information.\n");
}
else {
"Unable to write global result variable parameters.\n");
"Unable to write nodal result variable parameters.\n");
"Unable to write element result variable parameters.\n");
"Unable to write edge result variable parameters.\n");
"Unable to write face result variable parameters.\n");
"Unable to write faceset result variable parameters.\n");
}
"Unable to write variable name.\n");
"Unable to write variable name.\n");
"Unable to write variable name.\n");
"Unable to write variable name.\n");
t = 1.;
"Unable to write global var 1.\n");
"Unable to write edge block 1 var 1.\n");
"Unable to write edge block 1 var 2.\n");
"Unable to write face block 1 var 1.\n");
"Unable to write face block 3 var 1.\n");
"Unable to write elem block 1 var 1.\n");
"Unable to write face set 1 var 1.\n");
t = 2.;
"Unable to write global var 1.\n");
"Unable to write edge block 1 var 1.\n");
"Unable to write edge block 1 var 2.\n");
"Unable to write face block 1 var 1.\n");
"Unable to write face block 3 var 1.\n");
"Unable to write elem block 1 var 1.\n");
"Unable to write face set 1 var 1.\n");
"Unable to write nodal var 1.\n");
"Unable to write nodal var 1.\n");
return 0;
}
#if !defined(USING_CMAKE)
#endif