If PETSC_ARCH is not set, I would just use the default arch generated by configure, like<br>we do in the PETSc configure.<br><br> Matt<br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 11:29 AM, Jose E. Roman <span dir="ltr"><<a href="mailto:jroman@dsic.upv.es">jroman@dsic.upv.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><br>
On 12/12/2008, Jose E. Roman wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
SLEPc's configure.py uses the value of $PETSC_ARCH in order to setup everything for installation. We never had a $SLEPC_ARCH variable because our configure.py does not add platform-dependent functionality.<br>
<br>
Now the problem comes when PETSc has been configured with --prefix and installed with make install. In that case, $PETSC_ARCH is no longer available and SLEPc's configure.py is in trouble.<br>
<br>
A simple workaround would be that PETSc's configure (or make install) would add a variable (e.g. PETSC_ARCH_NAME) in file petscvariables. We parse this file so the arch name would be readily available even if $PETSC_ARCH is undefined.<br>
<br>
Can someone do this? Other solutions are welcome.<br>
<br>
Thanks,<br>
Jose<br>
<br>
</blockquote>
<br></div></div>
Let me explain the situation a bit better.<br>
<br>
In SLEPc's configure.py we now (in slepc-dev) create a directory called $PETSC_ARCH in $SLEPC_DIR, then $PETSC_ARCH/lib contains the compiled SLEPc libraries and $PETSC_ARCH/conf contains log files and a "slepcvariables" file. After building, we allow 'make install' if a --prefix was specified in SLEPc's configure.py (this is not working in slepc-dev yet).<br>
<br>
The thing is that if $PETSC_ARCH is not set, then we cannot create the $PETSC_ARCH directory. I guess it would be ok to create the files in the root $SLEPC_DIR directory, but this may be confusing for users if they expect a $PETSC_ARCH directory, and more complicated for our makefiles.<br>
<br>
Any suggestion?<br>
<br>
The latest SLEPc snapshot is here: <a href="http://www.grycap.upv.es/slepc/download/distrib/pre/slepc-dev-081210.tgz" target="_blank">http://www.grycap.upv.es/slepc/download/distrib/pre/slepc-dev-081210.tgz</a><br><font color="#888888">
<br>
Jose<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>