On Thu, Jan 28, 2010 at 5:43 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Matt,<br>
<br>
currently configure dumps the following to the screen<br>
<br>
-------------------------------------------------<br>
Compilers:<br>
C Compiler: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
Fortran Compiler: /home/balay/soft/linux64/mpich2-1.1/bin/mpif90 -fPIC -Wall -Wno-unused-variable -g<br>
Linkers:<br>
Shared linker: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
Dynamic linker: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
PETSc:<br>
**<br>
** Before running "make" your PETSC_ARCH must be specified with:<br>
** ** setenv PETSC_ARCH asterix-foo (csh/tcsh)<br>
** ** PETSC_ARCH=asterix-foo; export PETSC_ARCH (sh/bash)<br>
**<br>
**<br>
** Before running "make" your PETSC_DIR must be specified with:<br>
** ** setenv PETSC_DIR /home/balay/tmp/petsc-dev (csh/tcsh)<br>
** ** PETSC_DIR=/home/balay/tmp/petsc-dev; export PETSC_DIR (sh/bash)<br>
**<br>
**<br>
** Now build the libraries with "make all"<br>
**<br>
Clanguage: C<br>
Scalar type: real<br>
MPI:<br>
Includes: -I/home/balay/soft/linux64/mpich2-1.1/include<br>
X11:<br>
Includes:<br>
Library: -lX11<br>
PETSc shared libraries: enabled<br>
PETSc dynamic libraries: disabled<br>
Memory alignment:16<br>
BLAS/LAPACK: -llapack -lblas<br>
-------------------------------------------------<br>
<br>
Its a bit wildy - and some of the recommendations get missed out. I'd like to to read something like:<br>
<br>
-------------------------------------------------<br>
Compilers:<br>
C Compiler: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
Fortran Compiler: /home/balay/soft/linux64/mpich2-1.1/bin/mpif90 -fPIC -Wall -Wno-unused-variable -g<br>
Linkers:<br>
Shared linker: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
Dynamic linker: /home/balay/soft/linux64/mpich2-1.1/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
PETSc:<br>
PETSC_DIR: /home/balay/tmp/petsc-dev<br>
PETSC_ARCH: asterix-foo<br>
Clanguage: C<br>
Scalar type: real<br>
PETSc shared libraries: enabled<br>
PETSc dynamic libraries: disabled<br>
Memory alignment:16<br>
MPI:<br>
Includes: -I/home/balay/soft/linux64/mpich2-1.1/include<br>
X11:<br>
Includes:<br>
Library: -lX11<br>
BLAS/LAPACK: -llapack -lblas<br>
** *************************************************************<br>
** Before running "make" your PETSC_ARCH must be specified with:<br>
** ** setenv PETSC_ARCH asterix-foo (csh/tcsh)<br>
** ** PETSC_ARCH=asterix-foo; export PETSC_ARCH (sh/bash)<br>
**<br>
**<br>
** Before running "make" your PETSC_DIR must be specified with:<br>
** ** setenv PETSC_DIR /home/balay/tmp/petsc-dev (csh/tcsh)<br>
** ** PETSC_DIR=/home/balay/tmp/petsc-dev; export PETSC_DIR (sh/bash)<br>
**<br>
**<br>
** Now build the libraries with "make all"<br>
** *************************************************************<br>
-------------------------------------------------<br>
<br>
Or simplify the last section to:<br>
<br>
** *************************************************************<br>
** Now build the libraries with "make PETSC_ARCH=asterix-foo PETSC_DIR=/home/balay/tmp/petsc-dev all"<br>
** *************************************************************<br>
<br>
Is there a way to control the order in which this stuff is dumped to<br>
the screen [from the various .py files - so that it goes into the same<br>
'PETSc:' section?]<br></blockquote><div><br>This output happens in config.Framework.cleanup() and all it does is call str() on<br>each guy. If you really want finer control over this output, meaning concatenation into<br>
higher level groups (above the module level), then you should<br><br> a) change to another function like banner() which returns with a group name<br><br> b) change this loop to first group up output and then logWrite() it<br>
<br>However, its not clear to me that we need this. Rather, we might get away with just<br>having PETSc.Configure() give this overall advice at the end.<br><br>What do you think?<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thanks,<br>
<font color="#888888">satish<br>
</font></blockquote></div>-- <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>