Re: [petsc-users] Example for adaptive high-order FEM in PETSc

2019-01-13 Thread Mark Adams via petsc-users
On Sat, Jan 12, 2019 at 6:59 PM Manav Bhatia via petsc-users < petsc-users@mcs.anl.gov> wrote: > I have been studying the source code and the manual entries in the > documentation and have a better understanding of setting up a high-order DG > analysis. > > I have been able to identify the routine

Re: [petsc-users] Example for adaptive high-order FEM in PETSc

2019-01-13 Thread Jed Brown via petsc-users
Mark Adams via petsc-users writes: >> The following is still unclear and I would appreciate some guidance: >> >> — A implicit DG solve of the inviscid Euler equations would require >> Jacobian contributions from the Riemann Solver at element interfaces. I do >> not see the ability to define Jacob

[petsc-users] Using real and complex matrices together

2019-01-13 Thread Evan Um via petsc-users
Hi PETSC users, Inside my codes, I have both complex and real matrices. To solve complex matrices, I build and use complex version of PETSC. In this case, is there any way to use real matrices too? Do you have such a PETSC code example? Until now, I have used complex matrices to represent real mat

Re: [petsc-users] Using real and complex matrices together

2019-01-13 Thread Jed Brown via petsc-users
It is not supported, sorry. Some users do it with careful linking via multiple shared libraries, but that is fragile and doesn't interoperate. Evan Um via petsc-users writes: > Hi PETSC users, > > Inside my codes, I have both complex and real matrices. To solve complex > matrices, I build and u

Re: [petsc-users] Example for adaptive high-order FEM in PETSc

2019-01-13 Thread Mark Adams via petsc-users
> > > > > The Riemann solver computes the flux and the Jacobian is assembled in > PETSc. > > If you run this example with an implicit integrator, it uses FD coloring > to compute the Jacobian. Manav wants an analytic Jacobian. I was > hoping Matt could answer this; I haven't used Plex in that way

[petsc-users] C++ compilation error

2019-01-13 Thread Choudhary, Devyani D via petsc-users
Hi, I am trying to make a simple hello world script using a makefile that includes petsc, and am getting the error "g++: error: unrecognized command line option ‘-wd1572’" I am not sure how to fix it. Please let me know if you have some ideas on how to fix this. Thank you

Re: [petsc-users] C++ compilation error

2019-01-13 Thread Balay, Satish via petsc-users
Presumably PETSc is buit with intel compilers - but somehow gcc/g++ is getting used via your makefile. Do you get this error when you use PETSc example with a petsc makefile? Perhaps you need to format your makefile using petsc makefile format. For ex: check src/tao/leastsquares/examples/tutorials

Re: [petsc-users] C++ compilation error

2019-01-13 Thread Matthew Knepley via petsc-users
On Sun, Jan 13, 2019 at 2:58 PM Choudhary, Devyani D via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hi, > > > I am trying to make a simple hello world script using a makefile that > includes petsc, and am getting the error > > "g++: error: unrecognized command line option ‘-wd1572’" > > I am

Re: [petsc-users] C++ compilation error

2019-01-13 Thread Choudhary, Devyani D via petsc-users
Thank you for the response Satish, but I am still encountering the same issue. Following is my makefile: PETSC_DIR=/usr/local/pacerepov1/petsc/3.8.3/mvapich2-2.1/intel-15.0/opt/lib/petsc/ include ${PETSC_DIR}/conf/variables include ${PETSC_DIR}/conf/rules include ${PETSC_DIR}/conf/test hello:

Re: [petsc-users] Using real and complex matrices together

2019-01-13 Thread Povolotskyi, Mykhailo via petsc-users
Hi Evan, I’m one of those users, who has multiple shared libraries. It is quite stable since I create wrappers around the PETSc functions and hide the native PETSc symbols. But, yes, the interoperations are not possible. Michael. Sent from Mail

Re: [petsc-users] C++ compilation error

2019-01-13 Thread Balay, Satish via petsc-users
Do you get this error with any petsc example – say src/ksp/ksp/examples /tutorials/ex2 ? Also, copy paste the complete output from make – when building example or your Test code. Satish From: petsc-users on behalf of Choudhary, Devyani D via petsc-users Sent

[petsc-users] Operand '<' error

2019-01-13 Thread Choudhary, Devyani D via petsc-users
Hi, I am trying to compare two PetscScalar values, but am getting this error: error: no operator "<" matches these operands operand types are: PetscScalar < PetscScalar Please do share if you know how to resolve this error. Sincerely, Devyani

Re: [petsc-users] Operand '<' error

2019-01-13 Thread Smith, Barry F. via petsc-users
complex numbers cannot be larger than other complex numbers or smaller. If you want to compare the real parts you can use PetscRealPart(a) < PetscRealPart(b) similarly for imaginary parts Barry > On Jan 13, 2019, at 5:06 PM, Choudhary, Devyani D via petsc-users > wrote: > > H

Re: [petsc-users] C++ compilation error

2019-01-13 Thread Balay, Satish via petsc-users
Glad you figured this out. Thanks for the update. Satish On Sun, 13 Jan 2019, Choudhary, Devyani D wrote: > It was the issue with the compiler, and is resolved now. I can run the > examples now. > > Thank you for your help. > > > Devyani > > > From: Balay, S