CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Compiled SU2 with metis 64bit

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2014, 00:23
Question Compiled SU2 with metis 64bit
  #1
New Member
 
zhen yi
Join Date: Mar 2014
Posts: 16
Rep Power: 12
codezy is on a distinguished road
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?
codezy is offline   Reply With Quote

Old   April 5, 2014, 00:35
Default
  #2
Member
 
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13
ceanwang is on a distinguished road
Quote:
Originally Posted by codezy View Post
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.
ceanwang is offline   Reply With Quote

Old   April 5, 2014, 00:36
Default thanks
  #3
New Member
 
zhen yi
Join Date: Mar 2014
Posts: 16
Rep Power: 12
codezy is on a distinguished road
Quote:
Originally Posted by ceanwang View Post
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
codezy is offline   Reply With Quote

Old   April 5, 2014, 00:47
Default
  #4
Member
 
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13
ceanwang is on a distinguished road
Quote:
Originally Posted by codezy View Post
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.
ceanwang is offline   Reply With Quote

Old   April 5, 2014, 00:48
Default
  #5
New Member
 
zhen yi
Join Date: Mar 2014
Posts: 16
Rep Power: 12
codezy is on a distinguished road
Quote:
Originally Posted by ceanwang View Post
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!
codezy is offline   Reply With Quote

Reply

Tags
64bit, metis, su2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 06:28
SU2 suite has moved to GitHub! fpalacios SU2 News & Announcements 0 August 12, 2013 03:07
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 03:48
Metis on OF 2.0.0 pere OpenFOAM Running, Solving & CFD 0 February 29, 2012 07:28
Linux+CFD: is 64bit really a need? CAVT Hardware 2 August 27, 2010 18:12


All times are GMT -4. The time now is 05:10.