Re: [petsc-users] error in configuring PETSc

2023-11-08 Thread Barry Smith
You need --download-sowing-cc=gcc-11 --download-sowing-cxx=g++-11 > On Nov 8, 2023, at 7:28 PM, 张胜 wrote: > > Thank you for your suggestion. However, similar error still occurs. The > configure.log has been attached. > > - 原始邮件 - > 发件人: "Satish Balay" > 收件人: "zs1996" > 抄送:

Re: [petsc-users] DMPlex and Gmsh

2023-11-08 Thread Matthew Knepley
On Wed, Nov 8, 2023 at 4:50 PM Blaise Bourdin wrote: > Hi, > > I think that you need to use the magical keyword “ > -dm_plex_gmsh_mark_vertices” for that > I try to describe the options here: https://petsc.org/main/manualpages/DMPlex/DMPlexCreateGmsh/ Thanks, Matt > Blaise > >

Re: [petsc-users] Storing Values using a Triplet for using later

2023-11-08 Thread Matthew Knepley
On Wed, Nov 8, 2023 at 2:40 PM Brandon Denton via petsc-users < petsc-users@mcs.anl.gov> wrote: > Good Afternoon, > > Is there a structure within PETSc that allows storage of a value using a > triple similar to PetscHMapIJSet with the key using a struct{PetscScalar i, > j, k;}? > > I'm trying to

Re: [petsc-users] DMPlex and Gmsh

2023-11-08 Thread Blaise Bourdin
Hi, I think that you need to use the magical keyword “-dm_plex_gmsh_mark_vertices” for that Blaise On Nov 8, 2023, at 1:13 PM, Sharan Roongta wrote: Caution: External email.  Dear Petsc team,   I want to load a .msh file generated using

Re: [petsc-users] Storing Values using a Triplet for using later

2023-11-08 Thread Barry Smith
PETSc hashing is done by leveraging the great package khash. Take a look at include/petsc/private/hashtable.h and hashijkey.h for how we use kash to automatically generate the code for a particular key. Just make your tolerance smaller than the smallest diameters of your cells. Barry

Re: [petsc-users] Storing Values using a Triplet for using later

2023-11-08 Thread Jed Brown
I don't think you want to hash floating point values, but I've had a number of reasons to want spatial hashing for near-neighbor queries in PETSc and that would be a great contribution. (Spatial hashes have a length scale and compute integer bins.) Brandon Denton via petsc-users writes: >

[petsc-users] Storing Values using a Triplet for using later

2023-11-08 Thread Brandon Denton via petsc-users
Good Afternoon, Is there a structure within PETSc that allows storage of a value using a triple similar to PetscHMapIJSet with the key using a struct{PetscScalar i, j, k;}? I'm trying to access mesh information (the shape function coefficients I will calculate prior to their use) who's values

[petsc-users] DMPlex and Gmsh

2023-11-08 Thread Sharan Roongta
Dear Petsc team, I want to load a .msh file generated using Gmsh software into the DMPlex object. There are several things I would want to clarify, but I would like to start with "Physical tags". If I have defined "Physical Points", "Physical Surface", and "Physical Volume" in my .geo file,

Re: [petsc-users] error in configuring PETSc

2023-11-08 Thread Satish Balay via petsc-users
Suggest attaching text logs (copy/paste) - instead of screenshots. Try: ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 --download-fftw --download-openmpi --download-fblaslapack --with-zlibs=yes --with-szlib=no --with-c2html=0 --with-x=0 --download-hdf5-fortran-bindings=1

[petsc-users] error in configuring PETSc

2023-11-08 Thread 张胜
Dear PETSc developer, I use the following commands to configure petsc, but errors occur: ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 --download-fftw --download-openmpi --download-fblaslapack --free-line-length-0 -g -fallow-argument-mismatch --enable-shared

Re: [petsc-users] Better solver and preconditioner to use multiple GPU

2023-11-08 Thread Jed Brown
What sort of problem are you solving? Algebraic multigrid like gamg or hypre are good choices for elliptic problems. Sparse triangular solves have horrific efficiency even on one GPU so you generally want to do your best to stay away from them. "Ramoni Z. Sedano Azevedo" writes: > Hey! > > I

Re: [petsc-users] Better solver and preconditioner to use multiple GPU

2023-11-08 Thread Barry Smith
Unfortunately, ILU(3) is not something that runs well on GPUs so ideally, we should find a preconditioner that works well in terms of iteration count but also runs well on GPUs. You can start by saying a bit about the nature of your problem. Is it a PDE? What type of discretization?

Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-08 Thread Barry Smith
Send the file $PETSC_ARCH/lib/petsc/conf/configure.log > On Nov 8, 2023, at 12:20 AM, 程奔 wrote: > > Hello, > Recently I try to install PETSc with Cygwin since I'd like to use PETSc with > Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list > the

[petsc-users] Better solver and preconditioner to use multiple GPU

2023-11-08 Thread Ramoni Z. Sedano Azevedo
Hey! I am using PETSC in Fortran code and we apply the MPI process to parallelize the code. At the moment, the options that have been used are -ksp_monitor_true_residual -ksp_type bcgs -pc_type bjacobi -sub_pc_type ilu -sub_pc_factor_levels 3 -sub_pc_factor_fill 6 Now, we want to use multiple

Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-08 Thread 程奔
Sorry, the configure is ./configure --prefix=/cygdrive/g/mypetsc/petsc2023 --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include

[petsc-users] Fortran, Hypre, PETSc, 64bit-integers

2023-11-08 Thread Bastian Löhrer
Hello all, I am wondering about the right datatype to use for Hypre routines in a Fortran code. The Hypre manual provides a conversion table from C to Fortran on page 80      https://hypre.readthedocs.io/_/downloads/en/latest/pdf/ but the small example that