Re: [petsc-users] PetscSFReduceBegin can not handle MPI_CHAR?

2019-04-03 Thread Zhang, Junchao via petsc-users
On Wed, Apr 3, 2019, 10:29 PM Fande Kong mailto:fdkong...@gmail.com>> wrote: Thanks for the reply. It is not necessary for me to use MPI_SUM. I think the better choice is MPIU_REPLACE. Doesn’t MPIU_REPLACE work for any mpi_datatype? Yes. Fande On Apr 3, 2019, at 9:15 PM, Zhang, Junchao mai

Re: [petsc-users] PetscSFReduceBegin can not handle MPI_CHAR?

2019-04-03 Thread Zhang, Junchao via petsc-users
On Wed, Apr 3, 2019 at 3:41 AM Lisandro Dalcin via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: IIRC, MPI_CHAR is for ASCII text data. Also, remember that in C the signedness of plain `char` is implementation (or platform?) dependent. I'm not sure MPI_Reduce() is supposed to / should ha

Re: [petsc-users] PetscSFReduceBegin can not handle MPI_CHAR?

2019-04-03 Thread Smith, Barry F. via petsc-users
It is probably not written down anywhere (where would we write it?) nor does ./configure check it but the consensus is that PETSc now requires MPI 2.0 or later. So developers should feel free to use any MPI 2.0 feature without guards and if you stumble across older code that still has guard

Re: [petsc-users] Bad memory scaling with PETSc 3.10

2019-04-03 Thread Jed Brown via petsc-users
Myriam Peyrounette via petsc-users writes: > Hi all, > > for your information, you'll find attached the comparison of the weak > memory scalings when using : > > - PETSc 3.6.4 (reference) > - PETSc 3.10.4 without specific options > - PETSc 3.10.4 with the three scalability options you mentionned

Re: [petsc-users] Integrate command line arguments -bv_type vecs -bv_type mat to python code

2019-04-03 Thread Jose E. Roman via petsc-users
You could just do E.getBV().setType(SLEPc.BV.Type.VECS) before E.setFromOptions() Jose > El 3 abr 2019, a las 13:05, Jan Grießer via petsc-users > escribió: > > Hello, everybody, > I use Splec4py to solve the lowest eigenvalues and corresponding eigenvectors > of systems up to 20 Mio x 2

[petsc-users] Integrate command line arguments -bv_type vecs -bv_type mat to python code

2019-04-03 Thread Jan Grießer via petsc-users
Hello, everybody, I use Splec4py to solve the lowest eigenvalues and corresponding eigenvectors of systems up to 20 Mio x 20 Mio. My problem so far was that the base was too big. On advice here in the forum I always added -bv_type vecs -bv_type mat to the command line, what solved my problems. I do

Re: [petsc-users] petsc4py - Convert c example code to Python

2019-04-03 Thread Nicola Creati via petsc-users
Hello, thanks to all, I used the wrong RHS and Jacobian function in my conversion. I modified the code and I got the right solution. I'm attaching the final code conversion. Someone could be interested in a Python version of ex13 of the TS component tutorial. """ Python version of the ex13.c