1- // Copyright(C) 1999-2024 National Technology & Engineering Solutions
1+ // Copyright(C) 1999-2025 National Technology & Engineering Solutions
22// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
33// NTESS, the U.S. Government retains certain rights in this software.
44//
@@ -454,72 +454,78 @@ namespace Ioss {
454454 if (quiet ) {
455455 return false;
456456 }
457- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: N mismatch ({} vs. {})\n" ,
458- fmt ::join (this -> m_ijk , ":" ), fmt ::join (rhs .m_ijk , ":" ));
457+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {}: IJK mismatch ({} vs. {})\n" ,
458+ this -> name (), fmt ::join (this -> m_ijk , ":" ), fmt ::join (rhs .m_ijk , ":" ));
459459 same = false;
460460 }
461461
462462 if (this -> m_offset != rhs .m_offset ) {
463463 if (quiet ) {
464464 return false;
465465 }
466- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: OFFSET mismatch ({} vs. {})\n" ,
467- fmt ::join (this -> m_offset , ":" ), fmt ::join (rhs .m_offset , ":" ));
466+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : OFFSET mismatch ({} vs. {})\n" ,
467+ this -> name (), fmt ::join (this -> m_offset , ":" ), fmt ::join (rhs .m_offset , ":" ));
468468 same = false;
469469 }
470470
471471 if (this -> m_ijkGlobal != rhs .m_ijkGlobal ) {
472472 if (quiet ) {
473473 return false;
474474 }
475- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Global N mismatch ({} vs. {})\n" ,
476- fmt ::join (this -> m_ijkGlobal , ":" ), fmt ::join (rhs .m_ijkGlobal , ":" ));
475+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Global N mismatch ({} vs. {})\n" ,
476+ this -> name (), fmt ::join (this -> m_ijkGlobal , ":" ), fmt ::join (rhs .m_ijkGlobal , ":" ));
477477 same = false;
478478 }
479479
480480 if (this -> m_nodeOffset != rhs .m_nodeOffset ) {
481481 if (quiet ) {
482482 return false;
483483 }
484- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Node Offset mismatch ({} vs. {})\n" ,
485- this -> m_nodeOffset , rhs .m_nodeOffset );
484+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Node Offset mismatch ({} vs. {})\n" ,
485+ this -> name (), this -> m_nodeOffset , rhs .m_nodeOffset );
486486 same = false;
487487 }
488488
489489 if (this -> m_cellOffset != rhs .m_cellOffset ) {
490490 if (quiet ) {
491491 return false;
492492 }
493- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Cell Offset mismatch ({} vs. {})\n" ,
494- this -> m_cellOffset , rhs .m_cellOffset );
493+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Cell Offset mismatch ({} vs. {})\n" ,
494+ this -> name (), this -> m_cellOffset , rhs .m_cellOffset );
495495 same = false;
496496 }
497497
498498 if (this -> m_nodeGlobalOffset != rhs .m_nodeGlobalOffset ) {
499499 if (!quiet ) {
500500 return false;
501501 }
502- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Node Global Offset mismatch ({} vs. {})\n" ,
503- this -> m_nodeGlobalOffset , rhs .m_nodeGlobalOffset );
502+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Node Global Offset mismatch ({} vs. {})\n" ,
503+ this -> name (), this -> m_nodeGlobalOffset , rhs .m_nodeGlobalOffset );
504504 same = false;
505505 }
506506
507507 if (this -> m_cellGlobalOffset != rhs .m_cellGlobalOffset ) {
508508 if (quiet ) {
509509 return false;
510510 }
511- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Cell Global Offset mismatch ({} vs. {})\n" ,
512- this -> m_cellGlobalOffset , rhs .m_cellGlobalOffset );
511+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Cell Global Offset mismatch ({} vs. {})\n" ,
512+ this -> name (), this -> m_cellGlobalOffset , rhs .m_cellGlobalOffset );
513513 same = false;
514514 }
515515
516516 if (this -> m_blockLocalNodeIndex != rhs .m_blockLocalNodeIndex ) {
517517 if (quiet ) {
518518 return false;
519519 }
520+ if (this -> m_blockLocalNodeIndex .size () != rhs .m_blockLocalNodeIndex .size ()) {
520521 fmt ::print (Ioss ::OUTPUT (),
521- "StructuredBlock: Block Local Node Index mismatch ({} entries vs. {} entries)\n" ,
522- this -> m_blockLocalNodeIndex .size (), rhs .m_blockLocalNodeIndex .size ());
522+ "StructuredBlock {}: Block Local Node Index mismatch ({} entries vs. {} entries)\n" ,
523+ this -> name (), this -> m_blockLocalNodeIndex .size (), rhs .m_blockLocalNodeIndex .size ());
524+ }
525+ else {
526+ fmt ::print (Ioss ::OUTPUT (),
527+ "StructuredBlock {}: Block Local Node Index contents mismatch.\n" , this -> name ());
528+ }
523529 same = false;
524530 }
525531
@@ -529,7 +535,7 @@ namespace Ioss {
529535 if (quiet ) {
530536 return false;
531537 }
532- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Global ID Map mismatch\n" );
538+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Global ID Map mismatch\n" , this -> name () );
533539
534540 same = false;
535541 }
@@ -549,8 +555,8 @@ namespace Ioss {
549555 return l .m_connectionName < r .m_connectionName ;
550556 });
551557 if (!vec_equal (lhzc , rhzc )) {
552- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Zone Connectivity mismatch (size {} vs {})\n" ,
553- this -> m_zoneConnectivity .size (), rhs .m_zoneConnectivity .size ());
558+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Zone Connectivity mismatch (size {} vs {})\n" ,
559+ this -> name (), this -> m_zoneConnectivity .size (), rhs .m_zoneConnectivity .size ());
554560 same = false;
555561 }
556562 }
@@ -571,14 +577,14 @@ namespace Ioss {
571577 return l .m_bcName < r .m_bcName ;
572578 });
573579 if (!vec_equal (lhbc , rhbc )) {
574- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: Boundary Conditions mismatch\n" );
580+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : Boundary Conditions mismatch\n" , this -> name () );
575581 same = false;
576582 }
577583 }
578584
579585 if (!quiet ) {
580586 if (!Ioss ::EntityBlock ::equal (rhs )) {
581- fmt ::print (Ioss ::OUTPUT (), "StructuredBlock: EntityBlock mismatch\n" );
587+ fmt ::print (Ioss ::OUTPUT (), "StructuredBlock {} : EntityBlock mismatch\n" , this -> name () );
582588 same = false;
583589 }
584590 }
0 commit comments