[petsc-dev] make test after make install is not right

Satish Balay balay at mcs.anl.gov
Mon Jul 28 11:38:20 CDT 2014


On Mon, 28 Jul 2014, Dominic Meiser wrote:

> > $ make PETSC_DIR=/home/balay/petsc PETSC_ARCH=arch-mpich install
> > *** Using PETSC_DIR=/home/balay/petsc PETSC_ARCH=arch-mpich ***
> > *** Installing PETSc at prefix location: /home/balay/tmp/petsc-install  ***
> > ====================================
> > Install complete. It is useable with PETSC_DIR=/home/balay/tmp/petsc-install
> > [and no more PETSC_ARCH].
> > Now to check if the libraries are working do (in current directory):
> > make PETSC_DIR=/home/balay/tmp/petsc-install test

> Should the above line then be changed to the following:
> 
> make PETSC_DIR=/home/balay/tmp/petsc-install PETSC_ARCH= test
> 
> Or are you saying that this is not always the right line?

It will always work - so the instructions need updating. something like:

>>>>>>>>>>>>
diff --git a/config/install.py b/config/install.py
index ab52e77..b7560eb 100755
--- a/config/install.py
+++ b/config/install.py
@@ -264,11 +264,11 @@ for src, dst in copies:
   def outputInstallDone(self):
     print '''\
 ====================================
-Install complete. It is useable with PETSC_DIR=%s [and no more PETSC_ARCH].
+Install complete.
 Now to check if the libraries are working do (in current directory):
-make PETSC_DIR=%s test
+make PETSC_DIR=%s PETSC_ARCH="" test
 ====================================\
-''' % (self.installDir,self.installDir)
+''' % (self.installDir)
     return
 
   def outputDestDirDone(self):
<<<<<<<<<<



balay at asterix /home/balay/petsc (maint)
$ make PETSC_DIR=/home/balay/petsc PETSC_ARCH=arch-mpich install
*** Using PETSC_DIR=/home/balay/petsc PETSC_ARCH=arch-mpich ***
*** Installing PETSc at prefix location: /home/balay/tmp/petsc-install  ***
====================================
Install complete.
Now to check if the libraries are working do (in current directory):
make PETSC_DIR=/home/balay/tmp/petsc-install PETSC_ARCH="" test
====================================
balay at asterix /home/balay/petsc (maint)
$ make PETSC_DIR=/home/balay/tmp/petsc-install PETSC_ARCH="" test
Running test examples to verify correct installation
Using PETSC_DIR=/home/balay/tmp/petsc-install and PETSC_ARCH=
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
Completed test examples
=========================================
Now to evaluate the computer systems you plan use - do:
make PETSC_DIR=/home/balay/tmp/petsc-install PETSC_ARCH= streams NPMAX=<number of MPI processes you intend to use>
balay at asterix /home/balay/petsc (maint)
$ 


Note: I remove the text 'It is useable with PETSC_DIR=/home/balay/tmp/petsc-install [and no more PETSC_ARCH].' as it
would be inconsistant at that point. I'm not sure if it can be added somewhere else.


Satish




More information about the petsc-dev mailing list