<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello PETSc users,<br>I am trying to compile PETSC with MUMPS, but I am not sure how I 
compile MUMPS libraries in MAC OSX 10.6.8 . I know that I need BLACS 
and SCALAPACK libraries, but I am having trouble understanding how to 
compile these libraries in MAC OSX 10.6.8.&nbsp; I saw that some users here were able to 
do this in MAC OSX 10.6.8. Would any one of you who have successfully compiled these libraries in MAC OSX 10.6.8 mind sharing their MAKE FILES ? I will 
truly appreciate your help. I am sorry if it is inappropriate to ask for
 a make file. It is just that I am not understanding where to start from. <br><br>NOTE : I already have PETSc compiled and installed and is running fine (in Intel core 2 duo MAC OSX 10.6.8), but I am in need of an efficient direct solver (that can run in a multiprocessor computer, or in a cluster with distributed or shared memory), and surprisingly, PETSc does not come with any default direct solver package, unlike an iterative solver.&nbsp; I was also wondering whether UMFPACK can be used for solving an extremely large sparse system of linear equations in a&nbsp; multiprocessor computer or in a cluster with distributed or shared memory. SuperLU_Dist or SuperLU_MT installation seems more confounding than any other packages, so I am trying to stay away from them.<br><br>Thanks for any help, and sorry if my request for make file is inappropriate.<br><br><br>-Amrit<br><br><br><div><hr id="stopSpelling">Date: Wed, 7 Sep 2011 19:41:16 +0300<br>From: ckontzialis@lycos.com<br>To: petsc-users@mcs.anl.gov<br>Subject: Re: [petsc-users] petsc-users Digest, Vol 33, Issue 13<br><br>
  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    On 09/07/2011 04:53 PM, <a class="ecxmoz-txt-link-abbreviated" href="mailto:petsc-users-request@mcs.anl.gov">petsc-users-request@mcs.anl.gov</a> wrote:
    <blockquote cite="mid:mailman.10240.1315403586.6420.petsc-users@mcs.anl.gov">
      <pre>Send petsc-users mailing list submissions to
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="ecxmoz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/petsc-users</a>
or, via email, send a message with subject or body 'help' to
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:petsc-users-request@mcs.anl.gov">petsc-users-request@mcs.anl.gov</a>

You can reach the person managing the list at
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:petsc-users-owner@mcs.anl.gov">petsc-users-owner@mcs.anl.gov</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of petsc-users digest..."


Today's Topics:

   1. Re:  compilation with mumps on Mac OS 10.6.8 (Kyunghoon Lee)
   2.  Build Petsc with single precision (Sravya Tirukkovalur)
   3. Re:  Build Petsc with single precision (Satish Balay)
   4. Re:  Still no luck (Satish Balay)
   5.  Coloring of a parallel matrix (Kostas Kontzialis)
   6. Re:  Coloring of a parallel matrix (Jed Brown)
   7. Re:  Coloring of a parallel matrix (Barry Smith)
   8.  petsc with slepc (Micheal Lysaght)


----------------------------------------------------------------------

Message: 1
Date: Wed, 7 Sep 2011 12:04:38 +0800
From: Kyunghoon Lee <a class="ecxmoz-txt-link-rfc2396E" href="mailto:aeronova.mailing@gmail.com">&lt;aeronova.mailing@gmail.com&gt;</a>
Subject: Re: [petsc-users] compilation with mumps on Mac OS 10.6.8
To: PETSc users list <a class="ecxmoz-txt-link-rfc2396E" href="mailto:petsc-users@mcs.anl.gov">&lt;petsc-users@mcs.anl.gov&gt;</a>
Message-ID:
        <a class="ecxmoz-txt-link-rfc2396E" href="mailto:CA+ZVpt9npcK+xJg1-Sbs__BvweVV_9tEp48ooc_BYza+m5G5gg@mail.gmail.com">&lt;CA+ZVpt9npcK+xJg1-Sbs__BvweVV_9tEp48ooc_BYza+m5G5gg@mail.gmail.com&gt;</a>
Content-Type: text/plain; charset="windows-1252"

Thanks for the help.  Now I finished the installation successfully. :)

K. Lee.

On Wed, Sep 7, 2011 at 11:49 AM, Barry Smith <a class="ecxmoz-txt-link-rfc2396E" href="mailto:bsmith@mcs.anl.gov">&lt;bsmith@mcs.anl.gov&gt;</a> wrote:

</pre>
      <blockquote>
        <pre>On Sep 6, 2011, at 10:41 PM, Kyunghoon Lee wrote:

</pre>
        <blockquote>
          <pre>Hi Barry,

Thanks for the reply.  I did install g95 through macports. (I could not
</pre>
        </blockquote>
        <pre>find gfortran.)  I wonder g95 can do the job for me.
</pre>
        <blockquote>
          <pre></pre>
        </blockquote>
        <pre>    g95 might work, give it a try. BTW: on Macs you don't need to provide
blas/lapack with --download; Apple provides them on the system.



</pre>
        <blockquote>
          <pre>Re SuperLU_Dist, all I know is I need mumps to deal with complex numbers.
</pre>
        </blockquote>
        <pre>   SuperLU_Dist can also be used with complex numbers (at least with
PETSc-dev/petsc-3.2)

</pre>
        <blockquote>
          <pre>K. Lee.

On Wed, Sep 7, 2011 at 11:21 AM, Barry Smith <a class="ecxmoz-txt-link-rfc2396E" href="mailto:bsmith@mcs.anl.gov">&lt;bsmith@mcs.anl.gov&gt;</a> wrote:

</pre>
          <blockquote>
            <pre>p.s.
I do not need to compile petsc for FORTRAN.
</pre>
          </blockquote>
          <pre> Sadly you do because the packages MUMPS uses are all Fortran.

  So you will need a real Fortran compiler (perhaps gfortran) and you
</pre>
        </blockquote>
        <pre>will also need --download-blacs and you cannot use --download-c-blas-lapack
with scalapack.
</pre>
        <blockquote>
          <pre>  Note you can use SuperLU_Dist instead of MUMPS without a Fortran
</pre>
        </blockquote>
        <pre>compiler.
</pre>
        <blockquote>
          <pre>  Barry

On Sep 6, 2011, at 10:17 PM, Kyunghoon Lee wrote:

</pre>
          <blockquote>
            <pre>Hello all,

I need to compile petsc with mumps.  First I tried

./configure
</pre>
          </blockquote>
        </blockquote>
        <pre>--prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.1-p8
 --download-c-blas-lapack=1 ?download-parmetis=1 --download-scalapack=1
--download-mumps=1
</pre>
        <blockquote>
          <blockquote>
            <pre>but I got the following message:

Fortran error! mpif.h could not be located at: []

So I included "-download-mpich=1," then I got the following:

Should request f-blas-lapack, not --download-c-blas-lapack=yes since
</pre>
          </blockquote>
        </blockquote>
        <pre>you have a fortran compiler?
</pre>
        <blockquote>
          <blockquote>
            <pre>After that, I tried several options with/without
</pre>
          </blockquote>
        </blockquote>
        <pre>--download-f-blas-lapack or --download-mpich=1, but none of them worked out.
 I'd appreciate it if someone can help me with this compilation problem with
mumps.
</pre>
        <blockquote>
          <blockquote>
            <pre>Regards,
K. Lee.

p.s.
I do not need to compile petsc for FORTRAN.

</pre>
          </blockquote>
          <pre>
</pre>
        </blockquote>
        <pre>
</pre>
      </blockquote>
      <pre>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="ecxmoz-txt-link-rfc2396E" href="http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110907/3161e9ae/attachment-0001.htm" target="_blank">&lt;http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110907/3161e9ae/attachment-0001.htm&gt;</a>

------------------------------

Message: 2
Date: Tue, 6 Sep 2011 23:05:26 -0400
From: Sravya Tirukkovalur <a class="ecxmoz-txt-link-rfc2396E" href="mailto:stirukkovalur@rnet-tech.com">&lt;stirukkovalur@rnet-tech.com&gt;</a>
Subject: [petsc-users] Build Petsc with single precision
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>
Message-ID:
        <a class="ecxmoz-txt-link-rfc2396E" href="mailto:CABjTB1gOBgs4AuF7MFiEuM+_WohTdqOCh=zBS9rWFS_iOzB=Bg@mail.gmail.com">&lt;CABjTB1gOBgs4AuF7MFiEuM+_WohTdqOCh=zBS9rWFS_iOzB=Bg@mail.gmail.com&gt;</a>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am trying to build petsc with single precision. The options I am using
are:

./configure options --download-f-blas-lapack=1 --with-x=0 --with-debugging=1
--CFLAGS="-O3 -g -ggdb" --FFLAGS="-O3 -g" --with-hdf5=1 --download-hdf5=1
--with-batch=0 --known-mpi-shared-libraries=no --with-cuda=1
--with-cudac="nvcc -m64" --with-cusp=1 --with-thrust=1 PETSC_ARCH=SOMETHING

Configuration step is being completed successfully. And while doing $make
all, it compiles a few source files and prints an error message which says
cannot build petsc with this options, contact the mailing list.

Did anyone face a similar problem while building petsc with single precision
or has anyone successfully built it?

Thanks

</pre>
    </blockquote>
    <br>
    Barry,<br>
    <br>
    I have the following code for implementing the setting up snes and
    the numerical evaluation of the jacobian:<br>
    <br>
    <br>
    ierr = jacobian_matrix_nz_pattern(sys);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    &nbsp;ierr = MatCreateMPIBAIJ(sys.comm, sys.num-&gt;nbq[sys.con-&gt;n],<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sys.ldof, sys.ldof, sys.gdof, sys.gdof,
    PETSC_NULL,<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sys.idxm, PETSC_NULL, sys.idxn, &amp;sys.P);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    ierr = SNESCreate(sys.comm, &amp;sys.snes);<br>
    &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    &nbsp;&nbsp;&nbsp; ierr = SNESSetFunction(sys.snes, sys.gres[0],
    base_residual_implicit, &amp;sys);<br>
    &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    &nbsp;&nbsp;&nbsp; ierr = MatCreateSNESMF(sys.snes, &amp;sys.J);<br>
    &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    &nbsp;&nbsp;&nbsp; ierr = MatMFFDSetFromOptions(sys.J);<br>
    &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    <br>
    ierr = jacobian_diff_numerical(sys, &amp;sys.P);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ISColoring iscoloring;<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MatFDColoring fdcoloring;<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MatGetColoring(sys.P, MATCOLORING_SL, &amp;iscoloring);<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MatFDColoringCreate(sys.P, iscoloring, &amp;fdcoloring);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ISColoringDestroy(iscoloring);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MatFDColoringSetFromOptions(fdcoloring);<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ierr = SNESSetJacobian(sys.snes, sys.J, sys.P,<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SNESDefaultComputeJacobianColor, fdcoloring);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CHKERRQ(ierr);<br>
    <br>
    <br>
    As you can see I'm using a matrix free algorithm, However, when I
    run the code with with the -snes_mf_operator&nbsp; option I get on return
    the following error:<br>
    <br>
    Timestep&nbsp;&nbsp; 0: dt = 0.008, T = 0, Res[rho] = 0, Res[rhou] = 0,
    Res[rhov] = 0, Res[E] = 0, CFL = 0.177549<br>
    <br>
    /*********************Stage 1 of SSPIRK (3,4)******************/<br>
    <br>
    &nbsp; 0 SNES Function norm 2.755099585674e+01 <br>
    [4]PETSC ERROR: --------------------- Error Message
    ------------------------------------<br>
    [4]PETSC ERROR: Object is in wrong state!<br>
    [4]PETSC ERROR: Must call MatFDColoringSetFunction()!<br>
    <br>
    I haven't use the MatFDColoringSetFunction. But when I try to put it
    I read on the help page:<br>
    <br>
    Notes: This function is usually used automatically by <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/SNES/SNES.html#SNES" target="_blank">SNES</a>
    or <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/TS/TS.html#TS" target="_blank">TS</a>
    (when one uses <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/SNES/SNESSetJacobian.html#SNESSetJacobian" target="_blank">SNESSetJacobian</a>()
    with the argument
    <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/SNES/SNESDefaultComputeJacobianColor.html#SNESDefaultComputeJacobianColor" target="_blank">SNESDefaultComputeJacobianColor</a>()
    or <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/TS/TSSetRHSJacobian.html#TSSetRHSJacobian" target="_blank">TSSetRHSJacobian</a>()
    with the argument <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/TS/TSDefaultComputeJacobianColor.html#TSDefaultComputeJacobianColor" target="_blank">TSDefaultComputeJacobianColor</a>())
    and only needs to be used
    by someone computing a matrix via coloring directly by calling <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/docs/manualpages/MatFD/MatFDColoringApply.html#MatFDColoringApply" target="_blank">MatFDColoringApply</a>()
    <br>
    <br>
    and furthermore I cannot figure out what the arguments are for the
    (*f) function. <br>
    <br>
    Any help?<br>
    <br>
    Kostas<br>
    <br></div>                                               </div></body>
</html>