Skip to content

SNES solver with neutral_full_velocity model #3235

@malamast

Description

@malamast

Hi everyone,

I try to test the neutral_full_velocity component with the SNES solver but it gives me an PETSC ERROR "Argument out of range".
The same model / input file works fine with CVODE.
The model is here: https://github.com/boutproject/hermes-3/blob/master/src/neutral_full_velocity.cxx#L76C3-L76C9

The output file says:

            SNES steady state solver
            3d fields = 4, 2d fields = 5 neq=28800, local_N=2880
    Creating vector
    Create SNES
    Setting Jacobian matrix sizes
            Option solver:stencil:square = 0 (default)
            Option solver:stencil:cross = 0 (default)
            Option solver:stencil:taxi = 2 (default)
    Pre-allocating Jacobian
    Marking non-zero Jacobian entries
    Assembling Jacobian matrix

the error file says:

      [9]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
      [9]PETSC ERROR: Argument out of range
      [9]PETSC ERROR: New nonzero at (5,89) caused a malloc. Use MatSetOption(A, MAT_NEW_NONZERO_ALLOCATION_ERR, PETSC_FALSE) to turn off this check

With the neutral_mixed component we solve only 3d fields = 7. Now, with the neutral_full_velocity component we have 3d fields = 4, 2d fields = 5. I use the latest "next" bout++ branch. Anyone have a clue what’s going down?

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions