CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Compiled SU2 with metis 64bit (https://www.cfd-online.com/Forums/su2/132718-compiled-su2-metis-64bit.html)

codezy April 4, 2014 23:23

Compiled SU2 with metis 64bit
 
Hello guys,

I used SU2-3.0.0 'eagle'
My metis version is 5.1.0. But when I compile Metis 64bit (set IDXTYPEWIDTH to 64) .There are some compile errors occured below:

......
......
../src/geometry_structure.cpp(5371): error: argument of type "int *" is incompatible with parameter of type "idx_t={int64_t={l ong}} *"
METIS_SetDefaultOptions(options);
^
../src/geometry_structure.cpp(5373): error: argument of type "int *" is incompatible with parameter of type "idx_t={int64_t={l ong}} *"
METIS_PartMeshNodal(&ne, &nn, eptr, elmnts, NULL, NULL, &nparts, NULL, NULL, &edgecut, epart, npart);
......
......

The new version SU2 with an externals, but is also could not work well XD. And the version of metis is 5.0.2.

So how could I use metis 5.1.0 64bit?

ceanwang April 4, 2014 23:35

Quote:

Originally Posted by codezy (Post 483963)
Hello guys,

I used SU2-3.0.0 'eagle'
My metis version is 5.1.0. But when I compile Metis 64bit (set IDXTYPEWIDTH to 64) .There are some compile errors occured below:

......
......
../src/geometry_structure.cpp(5371): error: argument of type "int *" is incompatible with parameter of type "idx_t={int64_t={l ong}} *"
METIS_SetDefaultOptions(options);
^
../src/geometry_structure.cpp(5373): error: argument of type "int *" is incompatible with parameter of type "idx_t={int64_t={l ong}} *"
METIS_PartMeshNodal(&ne, &nn, eptr, elmnts, NULL, NULL, &nparts, NULL, NULL, &edgecut, epart, npart);
......
......

The new version SU2 with an externals, but is also could not work well XD. And the version of metis is 5.0.2.

So how could I use metis 5.1.0 64bit?


I think you should change su2 side 'int' into 'int64'.
It's better su2 can have some kind mechanism to check metis version and adept accordingly.

codezy April 4, 2014 23:36

thanks
 
Quote:

Originally Posted by ceanwang (Post 483964)
I think you should change su2 side 'int' into 'int64'.
It's better su2 can have some kind mechanism to check metis version and adept accordingly.

Thank you very much, could you tell me more details? How could I chang int into int64?

Thanks a lot

ceanwang April 4, 2014 23:47

Quote:

Originally Posted by codezy (Post 483965)
Thank you very much, could you tell me more details? How could I chang int into int64?

Thanks a lot

change the source file:
src/geometry_structure.cpp

If you are lucky, it may work.

The change may cause other compile errors. Then you have more to fix.

good luck.

codezy April 4, 2014 23:48

Quote:

Originally Posted by ceanwang (Post 483966)
change the source file:
src/geometry_structure.cpp

If you are lucky, it may work.

The change may cause other compile errors. Then you have more to fix.

good luck.

Thank you!


All times are GMT -4. The time now is 11:53.