Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling Metis Library

Compiling Metis Library 13 years 7 months ago #1385

  • BenoitD
  • BenoitD's Avatar
Hi,

I am trying to recompile telemac2d for parallelism (because I had to change the maxfro parameter in source files).

The note for the procedure says Metis Library must be installed and compiled.

When I download Metis 4.0 from the web, I have the object files in "libmetis.a". How can I create the "libmetis.lib" ? Should I use a C compiler (which one would you advise)? Or is there a way to obtain directly the compiled library ?

Thank you for your help
Best regards,

Benoît
The administrator has disabled public write access.

Re:Compiling Metis Library 13 years 7 months ago #1387

  • bzindovic
  • bzindovic's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 3
Benoit,

When compiling the Windows 32-bit executable of TELEMAC, you can use the ready-made Metis library from the official site: (glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.zip). This version if for gfortran only. If you use Intel Fortran Compiler, you can rename the libmetis.a to libmetis.lib.

Regards,
Budo
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8854

  • Estanislao
  • Estanislao's Avatar
hi,

I am stuck in this step as well. I have just downloaded METIS 4.0. Do I have to run the installer from MinGW Shell?Thanks in advanced

Best regards

Estanislao
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8857

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi,

You don't need to compile METIS. You can find here pre-compiled libraries to use with Windows. There are different libraries for intel fortran and gfortran (MinGW-64).

Costas
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8860

  • Estanislao
  • Estanislao's Avatar
hi costas,

thanks for this link. I saw that there are 2 files of METIS. 1 for gfortran 64 bits. the other for intel fortran 64 and 32 bit. I have a a windows 7 32 bit and I installed gfotran. Do you think i will be able to run METIS file for intel fortran(32bit) in gfortran? Thanks in advanced

Estanislao
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8861

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
No, I don't think that is possible. You need a METIS library that is compiled with the compiler that you will use to compile telemac. Unfortunately, the pre-compiled METIS for gfortran is in 64 bit only. The alternatives are 2:
1. Use intel fortran (which is not free)
2. Use gfortran in scalar mode only.

I hope it helps,
Costas
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8863

  • Estanislao
  • Estanislao's Avatar
hi costas,

I want to install TELEMAC, because i want to runa couple model with TOMAWAC and TELEMAC 2d. Do you think if i use gfrotran in scalar mode(only) i will be able to use the telemac system for this goal?

Thnsk in advanced
The administrator has disabled public write access.

Re:Compiling Metis Library 11 years 5 months ago #8865

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
You can expect a 40% reduction in execution time with the parallel model (2 CPU cores). If your domain is not big, you can get away with scalar mode.

In any case, parallel is the way to go with telemac2d because it is really cpu-intensive. On the other hand, I remember reading in this forum that tomawac cannot run in parallel at this stage (v6p2r1) but that there is a fix in the development version (trunk).

Another solution would be linux if you are able to work you way around them.

I hope it helps,
Costas
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.