Commit e2f2ed50 authored by Kenneth Leiter's avatar Kenneth Leiter
Browse files

ENH: Add possiblity to read distribution factors of node sets --- currently...

ENH: Add possiblity to read distribution factors of node sets --- currently commented out, but could be enabled in the future.
parent 999d4548
......@@ -450,6 +450,28 @@ XdmfGrid * XdmfExodusReader::read(const char * fileName, XdmfElement * parentEle
// Subtract all node ids by 1 since exodus indices start at 1
*ids - 1;
grid->Insert(set);
/*
if(num_df_in_set > 0)
{
double * node_set_distribution_factors = new double[num_df_in_set];
ex_get_node_set_dist_fact(exodusHandle, nodeSetIds[j], node_set_distribution_factors);
XdmfAttribute * attr = new XdmfAttribute();
attr->SetName("SetAttribute");
attr->SetAttributeType(XDMF_ATTRIBUTE_TYPE_SCALAR);
attr->SetAttributeCenter(XDMF_ATTRIBUTE_CENTER_NODE);
attr->SetDeleteOnGridDelete(true);
XdmfArray * attrVals = attr->GetValues();
attrVals->SetNumberType(XDMF_FLOAT32_TYPE);
attrVals->SetNumberOfElements(num_df_in_set);
attrVals->SetValues(0, node_set_distribution_factors, num_df_in_set, 1, 1);
set->Insert(attr);
delete [] node_set_distribution_factors;
}
*/
delete [] node_set_node_list;
}
delete [] node_set_names[j];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment