[petsc-users] MATSETVALUES: Fortran problem

Barry Smith bsmith at petsc.dev
Fri Mar 15 09:07:39 CDT 2024



> On Mar 15, 2024, at 9:53 AM, Frank Bramkamp <bramkamp at nsc.liu.se> wrote:
> 
> This Message Is From an External Sender
> This message came from outside your organization.
> Dear PETSc Team,
> 
> I am using the latest petsc version 3.20.5.
> 
> 
> I would like to create a matrix using
> MatCreateSeqAIJ
> 
> To insert values, I use MatSetValues.
> It seems that the Fortran interface/stubs are missing for MatsetValues, as the linker does not find any subroutine with that name.
> MatSetValueLocal seems to be fine.

   Please send the exact error message (cut and paste), there are definitely Fortran stubs for this function but it could be you exact parameter input does not have a stub yet.

   Barry

> 
> 
> Typically I am using a blocked matrix format (BAIJ), which works fine in fortran.
> Soon we want to try PETSC on GPUs, using the format MATAIJCUSPARSE, since there seems not to be a blocked format available in PETSC for GPUs so far.
> Therefore I first want to try the pointwise format MatCreateSeqAIJ format on a CPU, before using the GPU format.
> 
> I think that CUDA also supports a block format now ?! Maybe that would be also useful to have one day.
> 
> 
> Greetings, Frank Bramkamp
> 
> 
> 
> 
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240315/7502ab5c/attachment-0001.html>


More information about the petsc-users mailing list