[petsc-dev] VecView problem in fortran

Adrian Croucher a.croucher at auckland.ac.nz
Mon Mar 16 20:00:01 CDT 2015


hi,

The attached minimal C test program to create a Vec and view it produces 
the output I expect:

acro018 at des108:~/software/PETSc/tests/dmda$ mpirun -np 2 testc
Vec Object: 2 MPI processes
   type: mpi
Process [0]
0
0
0
0
0
Process [1]
0
0
0
0
0

But the attached Fortran program, which I thought should do the same, 
produces no output at all. Am I missing something? I'm running 'next' 
branch.

Cheers, Adrian

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 84611

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.F90
Type: text/x-fortran
Size: 528 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150317/db8e627e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testc.c
Type: text/x-csrc
Size: 436 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150317/db8e627e/attachment-0001.bin>


More information about the petsc-dev mailing list