Re: [petsc-users] Problem with MatMPIAIJSetPreallocation

2024-11-26 Thread Matthew Thomas via petsc-users
Hello, I found a type elsewhere in my code and have fixed this issue. Thanks, Matt On 27 Nov 2024, at 12:06 PM, Matthew Thomas wrote: Hello, When I use MatMPIAIJSetPreallocation I get an argument out of range error, as below, [15]PETSC ERROR: Argument out of range [15]PETSC ERROR: New non

[petsc-users] Problem with MatMPIAIJSetPreallocation

2024-11-26 Thread Matthew Thomas via petsc-users
Hello, When I use MatMPIAIJSetPreallocation I get an argument out of range error, as below, [15]PETSC ERROR: Argument out of range [15]PETSC ERROR: New nonzero at (8,421) caused a malloc. Use MatSetOption(A, MAT_NEW_NONZERO_ALLOCATION_ERR, PETSC_FALSE) to turn off this check However, wh