Skip to content

Commit d0d1721

Browse files
authored
Merge pull request #373 from wjrforcyber/fix_HMetis
Fix(write_hmetis): Remain the obj number when omitting POs explictly
2 parents 75ef060 + 6046bbe commit d0d1721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/io/ioWriteHMetis.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void Io_WriteHMetis( Abc_Ntk_t *pNtk, char *pFileName, int fSkipPo, int fWeightE
7272
Vec_PtrPush( vHyperEdges, vHyperEdgeEach );
7373
}
7474

75-
nHyperNodesNum = fSkipPo ? Abc_NtkObjNum( pNtk ) - Abc_NtkPoNum( pNtk ) : Abc_NtkObjNum( pNtk );
75+
nHyperNodesNum = Abc_NtkObjNum( pNtk );
7676

7777
// write the number of hyperedges and the number of vertices
7878
if ( fWeightEdges )
@@ -103,7 +103,7 @@ void Io_WriteHMetis( Abc_Ntk_t *pNtk, char *pFileName, int fSkipPo, int fWeightE
103103
fprintf( pFHMetis, "\n" );
104104
}
105105
// comments should be started with "%" in hMetis format
106-
fprintf( pFHMetis, "\n%%This file was written by ABC on %s\n", Extra_TimeStamp() );
106+
fprintf( pFHMetis, "%%This file was written by ABC on %s\n", Extra_TimeStamp() );
107107
fprintf( pFHMetis, "%%For information about hMetis format, refer to %s\n", "https://karypis.github.io/glaros/files/sw/hmetis/manual.pdf" );
108108
Vec_PtrFreeFree( vHyperEdges );
109109
fclose( pFHMetis );

0 commit comments

Comments
 (0)