Re: [petsc-users] make error in stefanozampini/hypre-cuda-rebased-v2

2020-03-12 Thread Satish Balay via petsc-users
And I tried this build [cuda+pgi] on a local linux box - and don't see this issue. So I'm not sure what to suggest. Satish - balay@compute-386-01:/scratch/balay/petsc$ ./configure --with-cuda=1 --with-64-bit-indices=1 --download-hypre-configure-arguments=HYPRE_CUDA_SM=70

Re: [petsc-users] Questions about TSAdjoint for time dependent parameters

2020-03-12 Thread Sajid Ali
Hi Hong, For the optimal control example, the cost function has an integral term which necessitates the setup of a sub-TS quadrature. The Jacobian with respect to parameter, (henceforth denoted by Jacp) has dimensions that depend upon the number of steps that the TS integrates for. I'm trying to

Re: [petsc-users] make error in stefanozampini/hypre-cuda-rebased-v2

2020-03-12 Thread Satish Balay via petsc-users
/autofs/nccs-svm1_home1/adams/petsc_install/src/vec/is/sf/impls/basic/cuda/sfpackcuda.cu(334): error: function "atomicMin(long long *, long long)" has already been defined /autofs/nccs-svm1_home1/adams/petsc_install/src/vec/is/sf/impls/basic/cuda/sfpackcuda.cu(345): error: function

Re: [petsc-users] --download-fblaslapack libraries cannot be used

2020-03-12 Thread Satish Balay via petsc-users
I can't figure out what the stack in the attached configure.log. [likely some stuff isn't getting logged in it] Can you retry with branch 'balay/fix-checkFortranLibraries/maint'? Satish On Thu, 12 Mar 2020, Fande Kong wrote: > Thanks, Satish, > > But still have the problem. Please see the

Re: [petsc-users] Question about DMPLEX/P4EST with different Sections

2020-03-12 Thread Matthew Knepley
On Thu, Mar 12, 2020 at 7:40 AM Berend van Wachem wrote: > Dear All, > > I have started to use DMPLEX with P4EST for a computational fluid > dynamics application. I am solving a coupled system of 4 discretised > equations (for 3 velocity components and one pressure) on a mesh. > However, next to

Re: [petsc-users] Inquiry about the setup for multigrid as a preconditioner in Petsc.

2020-03-12 Thread Xiaodong Liu
Thanks. It is very helpful to make me understand the whole process. Xiaodong Liu, PhD X: Computational Physics Division Los Alamos National Laboratory P.O. Box 1663, Los Alamos, NM 87544 505-709-0534 On Thu, Mar 12, 2020 at 3:22 PM Dave May wrote: > You want to look at the bottom of each of

Re: [petsc-users] --download-fblaslapack libraries cannot be used

2020-03-12 Thread Satish Balay via petsc-users
Can you retry with the attached patch? BTW: Its best to use the latest patched version - i.e petsc-3.12.4.tar.gz Satish On Thu, 12 Mar 2020, Fande Kong wrote: > This fixed the fblaslapack issue. Now have another issue about mumps. > > Please see the log file attached. > > Thanks, > > Fande,

Re: [petsc-users] Inquiry about the setup for multigrid as a preconditioner in Petsc.

2020-03-12 Thread Dave May
You want to look at the bottom of each of these web pages https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInjection.html https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInterpolation.html

[petsc-users] Inquiry about the setup for multigrid as a preconditioner in Petsc.

2020-03-12 Thread Xiaodong Liu
Hi, all, I am practising multigrid as a preconditioner in Petsc. From the previous resource, there are 2 main ways to set up the multigrid preconditioner, 1). For general cae, KSPCreate(MPI Comm comm,KSP *ksp); KSPGetPC(KSP ksp,PC *pc); PCSetType(PC pc,PCMG); PCMGSetLevels(pc,int levels,MPI Comm

Re: [petsc-users] --download-fblaslapack libraries cannot be used

2020-03-12 Thread Fande Kong
This did not help. Made no difference. Thanks, Fande, On Thu, Mar 12, 2020 at 1:50 PM Satish Balay wrote: > Does the attached patch make a difference? > > Satish > > On Thu, 12 Mar 2020, Satish Balay via petsc-users wrote: > > > For some reason - the fortran compiler libraries check worked

Re: [petsc-users] --download-fblaslapack libraries cannot be used

2020-03-12 Thread Satish Balay via petsc-users
Does the attached patch make a difference? Satish On Thu, 12 Mar 2020, Satish Balay via petsc-users wrote: > For some reason - the fortran compiler libraries check worked fine without > -lgfortran. > > But now - flbaslapack check is failing without it. > > To work arround - you can use

Re: [petsc-users] --download-fblaslapack libraries cannot be used

2020-03-12 Thread Satish Balay via petsc-users
For some reason - the fortran compiler libraries check worked fine without -lgfortran. But now - flbaslapack check is failing without it. To work arround - you can use option LIBS=-lgfortran Satish On Thu, 12 Mar 2020, Fande Kong wrote: > Hi All, > > I had an issue when configuring petsc on

[petsc-users] Question about DMPLEX/P4EST with different Sections

2020-03-12 Thread Berend van Wachem
Dear All, I have started to use DMPLEX with P4EST for a computational fluid dynamics application. I am solving a coupled system of 4 discretised equations (for 3 velocity components and one pressure) on a mesh. However, next to these 4 variables, I also have a few single field variables