Skip to content

Inconsistent Use of PetscInt #41

@PhilipFackler

Description

@PhilipFackler

Issue applies to:

  • pflow
  • OPFLOW
  • TCOPFLOW
  • SCOPFLOW
  • SOPFLOW
  • CMake and build system
  • Spack
  • Visualization
  • Documentation
  • Other

Summary

Currently we have inconsistent use of PetscInt and standard types (int). This results in build errors when petsc is built with 64-bit integers enabled.

Description how to reproduce the issue

  1. Configure and build petsc with the --with-64-bit-indices flag.
  2. Try to build exago against that petsc build.

ExaGO version

develop

System and environment details

  • ubuntu 22.04
  • gcc 15
  • CPU (x86_64)
  • petsc 3.24

Additional information

No response

Possible fix or workaround

Any integer variable in exago used in calls to petsc functions (or exago functions with PetscInt parameters) should be declared as PetscInt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions