<div dir="ltr">
<div>Ok, the, the second option applies... I had forgotten about this observation from the multiple times I installed PETSc in the past.</div><div><br></div><div>Then, two questions come to mind:</div><div><br></div><div>1. Why is it set up like that?</div><div>2. What is the difference in behaviour? I see the same output from both options.</div><div><br></div><div>Thanks again!</div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 18, 2020 at 5:43 PM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It's intentional and been like this for ages. Prefix installs have only<br>
PETSC_DIR (just a path, like other packages), and *must not* set<br>
PETSC_ARCH.<br>
<br>
<a href="mailto:san.temporal@gmail.com" target="_blank">san.temporal@gmail.com</a> writes:<br>
<br>
> Hi all,<br>
><br>
> I have just successfully compiled 3.13.0. But with install this is what I<br>
> get<br>
><br>
> $ make PETSC_DIR=/home/santiago/Documents/installers/petsc/petsc-3.13.0<br>
> PETSC_ARCH=arch-linux2-c-opt install<br>
> *** Using<br>
> PETSC_DIR=/home/santiago/Documents/installers/petsc/petsc-3.13.0<br>
> PETSC_ARCH=arch-linux2-c-opt ***<br>
> *** Installing PETSc at prefix location: /home/santiago/usr/local ***<br>
> ====================================<br>
> Install complete.<br>
> Now to check if the libraries are working do (in current directory):<br>
> make PETSC_DIR=/home/santiago/usr/local PETSC_ARCH="" check<br>
> ====================================<br>
> /usr/bin/make --no-print-directory -f makefile<br>
> PETSC_ARCH=arch-linux2-c-opt<br>
> PETSC_DIR=/home/santiago/Documents/installers/petsc/petsc-3.13.0<br>
> mpi4py-install petsc4py-install libmesh-install mfem-install slepc-install<br>
> hpddm-install amrex-install<br>
> make[2]: Nothing to be done for 'mpi4py-install'.<br>
> make[2]: Nothing to be done for 'petsc4py-install'.<br>
> make[2]: Nothing to be done for 'libmesh-install'.<br>
> make[2]: Nothing to be done for 'mfem-install'.<br>
> make[2]: Nothing to be done for 'slepc-install'.<br>
> make[2]: Nothing to be done for 'hpddm-install'.<br>
> make[2]: Nothing to be done for 'amrex-install'.<br>
><br>
> What is strange to me is that I am instructed to execute a line with<br>
> PETSC_ARCH=", while my environment has PETSC_ARCH=arch-linux2-c-opt<br>
> Why is that?<br>
><br>
> PS: The same happened to me with various other compilations I have just<br>
> tested, with 3.9, 3.10, 3.11, 3.12<br>
><br>
> PS2: I do not recall seeing this ever before, although I may have missed<br>
> it/forgotten.<br>
><br>
> Thanks in advance,<br>
> Santiago<br>
</blockquote></div>