2010年10月2日

compile ParMetis-3.1.1 on windows.

1. compile METISLib:

1.1 create library project in IDE;

1.2 add all the source file to the project.

1.3 add “#include <stdlib.h>” in file “metis.h”. This is because the visual c++ can’t find constant variable  “RAND_MAX”;

1.4 compile the project will be ok.

     (include “parmetis.h” to the additional include search folder.

2. compile ParMETISLib:

2.1 create library project in IDE;

2.2 add all the source file to the project.

2.3 add the function declaration into the file “msetup.c”

      MeshType *CreateMesh(void);
      void InitMesh(MeshType *mesh);

2.4 compile the project will be ok.

     (include “parmetis.h” to the additional include search folder.