Re: [petsc-users] BuildSystem looks for libOpenCL.a

2024-06-25 Thread David Andrs
I spotted the problem. There is no libOpenCL.so in /usr/lib/x86_64-linux-gnu, only .so.1 and .so.1.0.0. That’s why OpenCL is not found. I have

Re: [petsc-users] BuildSystem looks for libOpenCL.a

2024-06-25 Thread Barry Smith
Did you have a problem with the install? Are you concerned with self.liblist = [['libOpenCL.a'], ['-framework opencl'], ['libOpenCL.lib']] ? Even though only the .a library is listed that should be a stand-in for both the static and shared library and it should automatical

[petsc-users] BuildSystem looks for libOpenCL.a

2024-06-25 Thread David Andrs
Hello! Is there a reason why the PETSc build system looks for libOpenCL.a, but not for libOpenCL.so on linux platforms? I have a machine with

Re: [petsc-users] Issues Compiling petsc4py with Cython

2024-06-25 Thread Satish Balay
Best to get latest petsc and build petsc4py along with petsc: For example: balay@ petsc-gpu-02: /scratch/balay$ wget -q https: //urldefense. us/v3/__https: //web. cels. anl. gov/projects/petsc/download/release-snapshots/petsc-3. 21. 2. tar. gz__;!!G_uCfscf7eWS!cU65HojMoX4qnDw9h2E_i8frWwq0jfbCE

Re: [petsc-users] Problem about compiling PETSc-3.21.2 under Cygwin

2024-06-25 Thread Satish Balay
On Tue, 25 Jun 2024, Gang Li wrote: > The same error when I restart this build using a fresh tarball. Did you use winzip or similar windows utility to 'untar' the tarball? Can you try from cygwin shell: tar -czf petsc-3. 21. 2. tar. gz And see ZjQcmQRYFpfptBannerStart T

Re: [petsc-users] Issues Compiling petsc4py with Cython

2024-06-25 Thread Stefano Zampini
Which version of petsc4py is it? Il giorno mar 25 giu 2024 alle ore 20:35 maitri ksh ha scritto: > I am currently working on integrating petsc4py, but I am encountering > persistent compilation issues related to Cython. Below are the details of > my setup and the errors I am facing. I would grea

[petsc-users] Issues Compiling petsc4py with Cython

2024-06-25 Thread maitri ksh
I am currently working on integrating petsc4py, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how to resolve these issues. System Configuration: - *PET

Re: [petsc-users] Trying to develop my own Krylov solver

2024-06-25 Thread Barry Smith
Make sure that you are using the latest PETSc if at all possible Also copy over a makefile from the cg directory (you do not need to edit any makefiles) You also need to add it to KSPRegisterAll() You will need to do make clean before running make all to compiler your new code.

Re: [petsc-users] Trying to develop my own Krylov solver

2024-06-25 Thread Matthew Knepley
On Tue, Jun 25, 2024 at 12:05 PM Julien BRUCHON via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hi, Based on 'cg. c', I'm trying to develop my own Krylov solver (a > projected conjugate gradient). I want to integrate this into my C++ code, > where I already have an interface for PETSC which wo

[petsc-users] Trying to develop my own Krylov solver

2024-06-25 Thread Julien BRUCHON via petsc-users
Hi, Based on 'cg.c', I'm trying to develop my own Krylov solver (a projected conjugate gradient). I want to integrate this into my C++ code, where I already have an interface for PETSC which works well. However, I have the following questions : - Where am I sensed to put my 'cg_projected.c'

Re: [petsc-users] Modelica + PETSc?

2024-06-25 Thread Zou, Ling via petsc-users
Thank you, Matt. To clarify, I myself have no idea about the Modelica implementation/interface to solver, so I was looking for if any such efforts have been done so I could leverage them. -Ling From: Matthew Knepley Date: Monday, June 24, 2024 at 10:39 AM To: Zou, Ling Cc: petsc-users@mcs.anl.

Re: [petsc-users] Problem about compiling PETSc-3.21.2 under Cygwin

2024-06-25 Thread Barry Smith
What do file /cygdrive/e/Major/Codes/libraries/PETSc/petsc-3.21.2/lib/petsc/conf/rules_doc.mk and file /cygdrive/e/Major/Codes/libraries/PETSc/petsc-3.21.2/lib/petsc/conf/rules_util.mk return? > On Jun 25, 2024, at 9:59 AM, Gang Li wrote: > > Hi Barry, > > It is: > Administrator@YC-

Re: [petsc-users] Problem about compiling PETSc-3.21.2 under Cygwin

2024-06-25 Thread Barry Smith
Please do ls /cygdrive/e/Major/Codes/libraries/PETSc/petsc-3.21.2/lib/petsc/conf and send the results > On Jun 25, 2024, at 4:44 AM, Gang Li wrote: > > This Message Is From an External Sender > This message came from outside your organization. > Hi Barry and Satish, > > Thanks for your h

Re: [petsc-users] DMPlexBuildFromCellList node ordering for tetrahedral elements

2024-06-25 Thread onur.notonur via petsc-users
In my workflow, I was trying to use multiple mesh sources, and to achieve that, I converted them to an HDF5 file along with all other complementary information regarding my PDE. This approach seemed beneficial at first, but it's hard to manage now. (Also, I didn't know about DMPlexGenerate() :)

Re: [petsc-users] DMPlexBuildFromCellList node ordering for tetrahedral elements

2024-06-25 Thread Matthew Knepley
On Tue, Jun 25, 2024 at 4:50 AM onur.notonur via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hi, I'm trying to implement a Tetgen mesh importer for my > Petsc/DMPlex-based solver. I am encountering some issues and suspect they > might be due to my import process. The Tetgen mesh definitions ca

[petsc-users] DMPlexBuildFromCellList node ordering for tetrahedral elements

2024-06-25 Thread onur.notonur via petsc-users
Hi, I'm trying to implement a Tetgen mesh importer for my Petsc/DMPlex-based solver. I am encountering some issues and suspect they might be due to my import process. The Tetgen mesh definitions can be found here for reference: https://urldefense.us/v3/__https://wias-berlin.de/software/tetgen/f