Re: [petsc-dev] FieldSplit with different nonzero pattern

2018-05-08 Thread Pierre Jolivet
Hong, Thank you for the patch. Our application is not crashing anymore. Hopefully this will be merged quickly in master. Thanks, Pierre > On 7 May 2018, at 10:07 PM, Hong wrote: > > Pierre: > I added this support > https://bitbucket.org/petsc/petsc/commits/ef7efd37182b12f7b7ab7c34390aae8e592a8

Re: [petsc-dev] FieldSplit with different nonzero pattern

2018-05-08 Thread Hong
Pierre: > Hong, > Thank you for the patch. > Our application is not crashing anymore. > Hopefully this will be merged quickly in master. > Merged to master. Hong > > > On 7 May 2018, at 10:07 PM, Hong wrote: > > Pierre: > I added this support > https://bitbucket.org/petsc/petsc/commits/ef7efd371

[petsc-dev] calling petsc from a mex file

2018-05-08 Thread Munson, Todd
Hi, I wonder if anyone has experience calling petsc from matlab using mex. I have the simplest possible mexFunction that just calls PetscInitialize() and PetscFinalize(). That part seems to work fine, but when I exit from matlab I get a segmentation violation and a petsc error message. I h

Re: [petsc-dev] calling petsc from a mex file

2018-05-08 Thread Smith, Barry F.
> On May 8, 2018, at 12:30 PM, Munson, Todd wrote: > > > Hi, > > I wonder if anyone has experience calling petsc from matlab using mex. I > have the > simplest possible mexFunction that just calls PetscInitialize() and > PetscFinalize(). That part seems to work fine, but when I exit > f

Re: [petsc-dev] calling petsc from a mex file

2018-05-08 Thread Munson, Todd
> On May 8, 2018, at 1:02 PM, Smith, Barry F. wrote: > > > >> On May 8, 2018, at 12:30 PM, Munson, Todd wrote: >> >> >> Hi, >> >> I wonder if anyone has experience calling petsc from matlab using mex. I >> have the >> simplest possible mexFunction that just calls PetscInitialize() and

Re: [petsc-dev] calling petsc from a mex file

2018-05-08 Thread Smith, Barry F.
Push the branch that does this or send me the code and I'll debug it. I now have some vague memory about this behavior. Barry > On May 8, 2018, at 1:53 PM, Munson, Todd wrote: > > > >> On May 8, 2018, at 1:02 PM, Smith, Barry F. wrote: >> >> >> >>> On May 8, 2018, at 12:30 PM, Mu

Re: [petsc-dev] calling petsc from a mex file

2018-05-08 Thread Munson, Todd
Its in tmunson/tao-pounders-matlab-interface Most of the code is commented out or otherwise inactive. There is a hacked command in src/tao/leastsquares/examples/matlab that I use to compile the mex file. To test, you should be able to start matlab and say "taopounders(); exit". Todd. > On May

Re: [petsc-dev] calling petsc from a mex file

2018-05-08 Thread Smith, Barry F.
Huh $ matlab -nodisplay < M A T L A B (R) > Copyright 1984-2018 The MathWorks, Inc. R2018a (9.4.0.813654) 64-bit (maci64) Februa