Re: [petsc-users] Error during PETSc build on Edison

2018-01-29 Thread Amneet Bhalla
Hi Satish --- I am trying GNU. I am configuring with these additional flags, and it seems to be past that point. I will let you know if it works fine all the way. The reason I am not using prebuilt PETSc on NERSC is that I want to be consistent with C++, C, and fortran compilers with all the 3rd

Re: [petsc-users] Error during PETSc build on Edison

2018-01-29 Thread Satish Balay
On Tue, 30 Jan 2018, Satish Balay wrote: > 1. cray provides prebuilt petsc libraries. Does that work for you? > > 2. verylikely you need: > > --with-clib-autodetect=0 > --with-cxxlib-autodetect=0 Also --with-fortranlib-autodetect=0 > LIBS=-lstdc++ > > If it doesn't work - send

Re: [petsc-users] combine two matrices with different non-zero structure

2018-01-29 Thread Smith, Barry F.
Marius, We don't provide a way to insert a "generic" sparse matrix into a bigger matrices (dense matrices coming from element stiffness matrices yes) so I don't see any simple solution. Does the submatrix you pull out have any particular structure, what does it represent? Barry > On

Re: [petsc-users] Error during PETSc build on Edison

2018-01-29 Thread Satish Balay
1. cray provides prebuilt petsc libraries. Does that work for you? 2. verylikely you need: --with-clib-autodetect=0 --with-cxxlib-autodetect=0 LIBS=-lstdc++ If it doesn't work - send configure.log Satish On Tue, 30 Jan 2018, Amneet Bhalla wrote: > Hi, > > I am trying to build PETSc

Re: [petsc-users] Error during PETSc build on Edison

2018-01-29 Thread Smith, Barry F.
We always need configure.log (it has all the information about what went wrong). --with-c++-support shouldn't exist as an option. Barry > On Jan 29, 2018, at 10:05 PM, Amneet Bhalla wrote: > > Hi, > > I am trying to build PETSc (v3.7.7) locally in my home

[petsc-users] Error during PETSc build on Edison

2018-01-29 Thread Amneet Bhalla
Hi, I am trying to build PETSc (v3.7.7) locally in my home directory on NERSC (Edison). However, I am getting the following error during the configuration stage. === TESTING: checkFortranNameMangling from

[petsc-users] combine two matrices with different non-zero structure

2018-01-29 Thread Marius Buerkle
Hi !   I have the followng problem. I create a Submatrix containing a subset of row/columns of the original matrix. After some matrix multiplications the non-zero strucutre of the resulting matrix changed. Now I want to insert this submatix back into the original one keeping only the non-zero

Re: [petsc-users] Parallel Matrix Causes a Deadlock

2018-01-29 Thread Smith, Barry F.
> On Jan 29, 2018, at 3:18 AM, Ali Berk Kahraman > wrote: > > Yes, that is exactly what I am trying to do. > > In the documentation it says that MatGetRow cannot be used to alter the > entries, it is only for examining them. So if I understand correctly, do you >

Re: [petsc-users] Parallel Matrix Causes a Deadlock

2018-01-29 Thread Ali Berk Kahraman
Yes, that is exactly what I am trying to do. In the documentation it says that MatGetRow cannot be used to alter the entries, it is only for examining them. So if I understand correctly, do you suggest: 1:MatGetRow, get the row 2:MatSetValues, set the values 3:Do not call assembly, instead