METIS in fortran or C

149 views
Skip to first unread message

Carl Gauss

unread,
Oct 9, 2013, 2:11:26 PM10/9/13
to tango-...@googlegroups.com
Hi,

If i want to use MA57, i need include all source code for MA57 with its dependencies is in a file called ma57ad.f. Currently, the dependencies are files:

(i) From BLAS: dgemm.f, dgemv.f, dtpsv.f, idamax.f, lsame.f,
               xerbla.f;
(ii) From HSL: fd15ad.f, ma57ad.f, mc21ad.f, mc34ad.f, mc47ad.f,
               mc59ad.f, mc64ad.f, mc71ad.f;
(iii) MeTiS dummy routine (metis.f).

The MeTiS package can be downloaded in

http://glaros.dtc.umn.edu/gkhome/views/metis/metis/download.html

which is described like

"The distribution of METIS 5.x contains a number of files that total to over 35,000 lines of code. It is written entirely in ANSI C, and is  portable on most Unix systems that have an ANSI C compiler (the GNU C  compiler will do)."

I'm in Debian. Now, MA57 is a fortran code and MeTiS is a C code, how can i use MA57 with MeTiS in this case?

Regards,
Gauss

John Gardenghi

unread,
Oct 9, 2013, 3:06:49 PM10/9/13
to Carl Gauss, tango-...@googlegroups.com
Hello Carl,

Thanks for your interest in Algencan.

The metis routine that is addressed in the dependency list is the one that is contained in the "fakemetis.f" (or something like this, depending on the version of MA57 you have) file that comes with MA57 distribution. It is actually just a "dummy" subroutine, almost empty, that does not play the same role that the metis package plays, and this is the one we refer in the dependency list.

According to HSL documentation, the required metis subroutine is optional. It is not essential to MA57 to work. In this context, Algencan 2.4.0, by default, only supports this "dummy" routine. To run MA57 with true metis library, we would have to link the libmetis.a library (generated by the Metis distribution you might have downloaded) when we generate algencan executable, which requires some changes in Algencan makefiles. So, it depends on your problem. In general, MA57 with this "dummy" subroutine works pretty well.

Regards,
John.
--
You received this message because you are subscribed to the Google Groups "TANGO Project - ALGENCAN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tango-projec...@googlegroups.com.
To post to this group, send email to tango-...@googlegroups.com.
Visit this group at http://groups.google.com/group/tango-project.
For more options, visit https://groups.google.com/groups/opt_out.

Carl Gauss

unread,
Oct 9, 2013, 3:47:08 PM10/9/13
to tango-...@googlegroups.com, Carl Gauss
Hello John,

Thank for you instructions. It worked perfectly.

Regards,
Gauss
Reply all
Reply to author
Forward
0 new messages