Re: [petsc-users] Bug report: using a custom ksp convergence function

2025-01-21 Thread Daniel Stone
e passed in also with KSPSetConvergenceTest() > > > On Jan 21, 2025, at 4:25 AM, Daniel Stone > wrote: > > That works wonderfully, thanks! Should be paired with > > call KSPConvergedDefaultDestroy(ctx,ierr) > > I think. > > Best Regards, > > Daniel >

Re: [petsc-users] Bug report: using a custom ksp convergence function

2025-01-21 Thread Daniel Stone
rovided. I have attached a modified version of ex5f.F90 that demonstrates > how it is constructured before being passed to KSPSetConvergenceTest(). > >Barry > > > > On Jan 20, 2025, at 8:54 AM, Daniel Stone > wrote: > > > > Hello PETSc Community, > > > &

[petsc-users] Bug report: using a custom ksp convergence function

2025-01-20 Thread Daniel Stone
Hello PETSc Community, I think I've found a bug - Go to $PETSC_DIR/src/ksp/ksp/tutorials/ open ex5f.F90, and add the following line in MyKSPConverged(), say around line 336: call KSPConvergedDefault(ksp,n,rnorm,flag,dummy,ierr) It should make sense why someone would want to do this - within a

Re: [petsc-users] Spack build and ptscotch

2024-05-01 Thread Daniel Stone
parately - and use it with petsc. > > I see an effort to migrate scotch build in petsc to cmake > > https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7242/__;!!G_uCfscf7eWS!axLWsOWdCnVQSjIurDkWvFmG4riOizNNPbVM78TQoVScHx7ERMUENiQ-VW2Lh5e83QHhKcA7-HO0nDJ_hTez8JffqQz8h1I$

[petsc-users] Spack build and ptscotch

2024-04-24 Thread Daniel Stone
Hi PETSc community, I've been looking at using Spack to build PETSc, in particular I need to disable the default metis/parmetis dependencies and use PTScotch instead, for our software. I've had quite a bit of trouble with this - it seems like something in the resulting build of our simulator ends

Re: [petsc-users] Confusion/failures about the tests involved in including Hypre

2023-08-01 Thread Daniel Stone
seems to be no hint of the MD flag in any of the cmake files provided with hypre, so it looks like the -MD flag is being added by the cmake Ninja generator as a kind of default (and maybe in a confused way - why the - instead of /?) So the task now seems to be to convince cmake to stop doing this.

[petsc-users] support for mixed block size matrices/AIM in PETSc?

2023-07-24 Thread Daniel Stone
Hello PETSc Users/Developers, A collegue of mine is looking into implementing an adaptive implicit method (AIM) over PETSc in our simulator. This has led to some interesting questions about what can be done with blocked matrices, which I'm not able to answer myself - does anyone have any insight?

Re: [petsc-users] Confusion/failures about the tests involved in including Hypre

2023-07-24 Thread Daniel Stone
> > >>> On Thu, 20 Jul 2023, Barry Smith via petsc-users wrote: > >>> > >>>> > >>>> You cannot use this version of PETSc, 3.19, with the version of hypre > you installed. In hypre they recently changed hypre_Error from an integer > to

Re: [petsc-users] Confusion/failures about the tests involved in including Hypre

2023-07-20 Thread Daniel Stone
> https://github.com/hypre-space/hypre/archive/'+self.gitcommit+'.tar.gz'] > > >> -self.functions = ['HYPRE_IJMatrixCreate'] > > >> +self.functions = [] > > >> self.includes= ['HYPRE.h'] > &

Re: [petsc-users] Confusion/failures about the tests involved in including Hypre

2023-07-20 Thread Daniel Stone
;] > > >> self.liblist = [['libHYPRE.a']] > > >> self.buildLanguages = ['C','Cxx'] > > >> > > >> > > >> Satish > > >> > > >> > > >> On Wed, 19 Jul 2023, Barry Smith wrote: > > >> > > >

[petsc-users] Confusion/failures about the tests involved in including Hypre

2023-07-19 Thread Daniel Stone
Hello, I'm working on getting a petsc build running on windows. One necessary package to include is Hypre. I've been able to build Hypre seperately using cmake, and confirmed that the library works by setting up a VS project to run some of the example programs. My attempted petsc build is being d

[petsc-users] win32fe?

2023-01-31 Thread Daniel Stone
Hello all, I am currently having to figure out a way to get petsc working on windows, using compilers from the intel oneAPI package. This means new compiler names, such as "icx" for the c compiler and "ifx" for the fortran one. I see from the installation instructions, and from old notes from a c

Re: [petsc-users] Configure of 3.16.1 failing on mpich/yaksa

2021-11-09 Thread Daniel Stone
mpich-configure-arguments=string > > Satish > > On Mon, 8 Nov 2021, Daniel Stone wrote: > > > Hello all, > > > > I've been having some configure failures trying to configure petsc, on > > Ubuntu 20, when > > downloading mpich. > > > > &

Re: [petsc-users] Configure of 3.16.1 failing on mpich/yaksa

2021-11-08 Thread Daniel Stone
configure option to disable this. If you > are able to find this option - you can use it via petsc configure with: > > --download-mpich-configure-arguments=string > > Satish > > On Mon, 8 Nov 2021, Daniel Stone wrote: > > > Hello all, > > > > I've been ha

[petsc-users] Configure of 3.16.1 failing on mpich/yaksa

2021-11-08 Thread Daniel Stone
Hello all, I've been having some configure failures trying to configure petsc, on Ubuntu 20, when downloading mpich. This seems to be related to the use of "#!/bin/sh" found in the script mpich-3.4.2/modules/yaksa/src/backend/cuda/cudalt.sh /bin/sh in Ubuntu20 is dash, not bash, and line 35 of

Re: [petsc-users] Is this a bug? MatMultAdd_SeqBAIJ_11

2021-09-21 Thread Daniel Stone
> > > On 21 Sep 2021, at 11:19, Daniel Stone > wrote: > > > > Hello, > > > > If we look at lines 2330-2331 in file baij2.c, it looks like there are > some > > mistakes in assigning the `sum..` variables to the z array, causing > > the function Ma

[petsc-users] Is this a bug? MatMultAdd_SeqBAIJ_11

2021-09-21 Thread Daniel Stone
Hello, If we look at lines 2330-2331 in file baij2.c, it looks like there are some mistakes in assigning the `sum..` variables to the z array, causing the function MatMultAdd_SeqBAIJ_11() to not produce the correct answer. I don't have a good example program to demonstrate this yet - it's current

Re: [petsc-users] Open MPI library version error

2021-05-11 Thread Daniel Stone
s, Daniel On Tue, May 11, 2021 at 10:28 AM Pierre Jolivet wrote: > Hello Daniel, > Which PETSc version are you using? > I think this has been addressed there: > https://gitlab.com/petsc/petsc/-/merge_requests/3671 > > Thanks, > Pierre > > On 11 May 2021, at 11:22 AM, Da

[petsc-users] Open MPI library version error

2021-05-11 Thread Daniel Stone
re harvested and this error is generated, so I can try to get a better idea about what is going on? Thanks, Daniel Stone

Re: [petsc-users] crash with PCASM in parallel

2017-11-25 Thread Daniel Stone
AIJ_MatGetSubmatrices > ~/Src/petsc ((v3.8)) arch-basic > > > > Are you using a the PETSc git repository and some particular branch or > commit in it? > > > > On Nov 25, 2017, at 11:09 AM, Daniel Stone > wrote: > > > > Thanks for the quick response. >

Re: [petsc-users] crash with PCASM in parallel

2017-11-25 Thread Daniel Stone
j rows=1122000, cols=1122000 total: nonzeros=778, allocated nonzeros=778 total number of mallocs used during MatSetValues calls =0 Thanks, Daniel Stone On Fri, Nov 24, 2017 at 4:08 PM, Smith, Barry F. wrote: > > First run under valgrind. https://www.mcs.anl.gov/petsc/ >

[petsc-users] crash with PCASM in parallel

2017-11-24 Thread Daniel Stone
where to start with getting this to work? I can provide a lot more information from the debugger if need. Many thanks in advance, Daniel Stone