You are mixing up KSPSetType() and KSPCGSetType(). KSPTCQMR can be passed as an
argument of KSPSetType(), not KSPCGSetType(). The former has an argument of
type KSPType, which is a string, while the latter has an argument of type
KSPCGType, which is an enumerate.
Jose
> El 20 jul 2023, a las
Greetings
I hope this email reaches you well. I'm new to using PETSc and so I thought
a good way to familiarize myself with the tools would be to noodle around
with a simple problem and see how different setups of the same problem play
out. I thought it would be prudent to try ex50.c with different
you can try --with-cxx-dialect=11 and see if that works.
with -with-cxx=0 - --download-suitesparse [and other pkgs that require cxx]
won't work - and would need to be installed separately
Jacob,
One more use case for --with-cxx-bindings=0
Satish
On Wed, 19 Jul 2023, Barry Smith wrote:
>
>
Do you need C++, you can configure --with-cxx=0 if you do not need it.
You can also try the main branch of PETSc or slightly different versions of
the compiler.
Barry
> On Jul 19, 2023, at 4:31 PM, Robert Crockett via petsc-users
> wrote:
>
> Hello,
> I am attempting to build PETSc
I think it should work with static libraries and 64bit compilers.
That's how I think --download-f2cblaslapack [etc] work.
Also it works with MS-MPI - even-though its a dll install, the library stub
provides this symbol somehow..
balay@ps5 /cygdrive/c/Program Files (x86)/Microsoft SDKs/MPI/Lib/x
Satish,
So it will always fail on Windows with Windows compilers (both with static
and shared libraries)? Is this true for all PETSc external packages? If so, why
does the installation documentation say that some external packages can work
with Windows compilers? (Presumably PETSc cannot
BTW: Some explanation of configure:
It attempts the following on linux:
>>
Source:
#include "confdefs.h"
#include "conffix.h"
/* Override any gcc2 internal prototype to avoid an error. */
char HYPRE_IJMatrixCreate();
static void _check_HYPRE_IJMatrixCreate() { HYPRE_IJMatrixCreate(); }
int m
You could try skipping this test [and assume --with-hypre-include and
--with-hypre-lib options are correct] - and see if this works.
diff --git a/config/BuildSystem/config/packages/hypre.py
b/config/BuildSystem/config/packages/hypre.py
index 5bc88322aa2..2d6c7932e17 100644
--- a/config/BuildSyst
Here is an update address to join the PETSc Discord space
https://discord.gg/Fqm8r6Gcyb
> On Jul 5, 2023, at 10:04 PM, Barry Smith wrote:
>
>
> We are experimenting with using Discord as our PETSc chat space. PETSc
> users are welcome to join us there https://discord.gg/TAmq3kvB
>
>
You don't indicate what type of libraries you built hypre with; static or
shared. My guess is you ended up with shared
I think the answer to your difficulty is hidden in __cdecl (Satish will know
much better than me). When you are looking for symbols in Windows shared
libraries you have to
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
You may also need
https://petsc.org/release/manualpages/Mat/MatNullSpaceCreate/#matnullspacecreate
and https://petsc.org/release/manualpages/Mat/MatSetNullSpace/
> On Jul 19, 2023, at 6:26 AM, Matthew Knepley wrote:
>
> On Wed, Jul 19, 2023 at 6:23 AM Karthikeyan Chockalingam - STFC UKRI
On Wed, Jul 19, 2023 at 7:59 AM Karsten Bolding <
kars...@bolding-bruggeman.com> wrote:
> Hello
>
> I'm re-implementing a model from mixed C/Fortran to Python where Petsc is
> used for matrix/vector operations.
>
> In the C-code I have:
> ierr = VecDuplicateVecs(templateVec,numTracers,&uef);
> to
Hello
I'm re-implementing a model from mixed C/Fortran to Python where Petsc is
used for matrix/vector operations.
In the C-code I have:
ierr = VecDuplicateVecs(templateVec,numTracers,&uef);
to create uef with numTracers vectors.
Later in the code looping is done of the individual vectors and a
On Wed, Jul 19, 2023 at 6:23 AM Karthikeyan Chockalingam - STFC UKRI <
karthikeyan.chockalin...@stfc.ac.uk> wrote:
> I finally found the answer to my problem. I was not wrongly imposing the
> periodic boundary condition but rather was solving a problem (Poisson
> equation with PBC), which has an i
I finally found the answer to my problem. I was not wrongly imposing the
periodic boundary condition but rather was solving a problem (Poisson equation
with PBC), which has an infinite family of solutions. I was recommended to add
an artificial constraint or use a null-space-aware algebraic solv
16 matches
Mail list logo