@@ -1366,6 +1366,13 @@ namespace Ioex {
13661366
13671367 // See which connectivity options were defined for this block.
13681368 // X -> Node is always defined.
1369+
1370+ // X -> Polyhedral or Polygonal?
1371+ if (type == "nfaced" || type .substr (0 ,6 ) == "nsided" ) {
1372+ block -> field_add (
1373+ Ioss ::Field ("entity_counts" , block -> field_int_type (), "Real[" + std ::to_string (1 ) + "]" , Ioss ::Field ::MESH ));
1374+ }
1375+
13691376 // X -> Face?
13701377 if (faces_per_X > 0 && rank_offset < 1 ) {
13711378 std ::string storage = "Real[" + std ::to_string (faces_per_X ) + "]" ;
@@ -2579,6 +2586,9 @@ namespace Ioex {
25792586 }
25802587 }
25812588 }
2589+ else if (field .get_name () == "entity_counts" ) {
2590+ get_entity_count_data (get_file_pointer (), EX_ELEM_BLOCK , id , data );
2591+ }
25822592 }
25832593 else if (role == Ioss ::Field ::MAP ) {
25842594 int component_count = field .get_component_count (Ioss ::Field ::InOut ::INPUT );
@@ -2719,6 +2729,9 @@ namespace Ioex {
27192729 // (eb_offset+1...eb_offset+1+my_face_count) to global face ids.
27202730 get_map (EX_FACE_BLOCK ).map_implicit_data (data , field , num_to_get , eb -> get_offset ());
27212731 }
2732+ else if (field .get_name () == "entity_counts" ) {
2733+ get_entity_count_data (get_file_pointer (), EX_FACE_BLOCK , id , data );
2734+ }
27222735 else {
27232736 num_to_get = Ioss ::Utils ::field_warning (eb , field , "input" );
27242737 }
0 commit comments