Skip to content
Snippets Groups Projects
Select Git revision
  • barry/2025-03-10/notes-on-preconditioned-gradient-descent
  • barry/2024-04-29/add-fortran-enums
  • release protected
  • tisaac/feature-factorlq
  • jolivet/pc-precision-mumps
  • jolivet/fix-overallocation
  • hsuh/petscnmf-taoterm-v1
  • knepley/feature-plex-transform-cohesive
  • tisaac/feature-nullspace-spanning-vecs
  • tisaac/feature-lmvm-rework
  • main default protected
  • jrwrigh/eval_steps_error
  • barry/2025-03-11/fix-minor-snes-docs/release
  • tisaac/feature-underconstrained-example
  • jolivet/update-scotch
  • zach/plex-rigid-body-remove-zero-modes
  • tisaac/feature-matdensefromvectype
  • tisaac/feature-tao-mesh-independent
  • stefanozampini/tsex30
  • balay/test
  • v3.22.4 protected
  • v3.22.3 protected
  • v3.22.2 protected
  • v3.22.1 protected
  • v3.22.0 protected
  • v3.21.6 protected
  • v3.21.5 protected
  • v3.21.4 protected
  • v3.21.3 protected
  • v3.21.2 protected
  • v3.21.1 protected
  • v3.21.0 protected
  • v3.20.6 protected
  • v3.20.5 protected
  • v3.20.4 protected
  • v3.20.3 protected
  • v3.20.2 protected
  • v3.20.1 protected
  • v3.20.0 protected
  • v3.19.6 protected
40 results

ex1f90.F90

  • Barry Smith's avatar
    5d83a8b1
    This requires some changes to user FORTRAN code · 5d83a8b1
    Barry Smith authored and Satish Balay's avatar Satish Balay committed
    Pass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an array
    Pass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGER
    Pass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]
    Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXX
    
    The compiler will now automatically prevent you from using the wrong argument type for the first three bullets above
    This will also require an update sowing with the new sowing branch this MR is using.
    5d83a8b1
    History
    This requires some changes to user FORTRAN code
    Barry Smith authored and Satish Balay's avatar Satish Balay committed
    Pass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an array
    Pass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGER
    Pass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]
    Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXX
    
    The compiler will now automatically prevent you from using the wrong argument type for the first three bullets above
    This will also require an update sowing with the new sowing branch this MR is using.
ex1f90.F90 4.80 KiB