Skip to content

Pass the library to the pointwise macros - #320

Merged
filoferra merged 1 commit into
JuliaParallel:mainfrom
filoferra:pointwise-macros
Oct 27, 2026
Merged

filoferra merged 1 commit into
JuliaParallel:mainfrom
filoferra:pointwise-macros

Conversation

@filoferra

Copy link
Copy Markdown
Collaborator

@simple_fn, @residual_fn, @jacobian_fn and @bd_fn take the library or its type first, @residual_fn(petsclib, f0, Nf), and build the C signature from its PetscInt, PetscReal and PetscScalar.

The old form, which read those three types from consts the caller had to define and so allowed one library per module, still works and warns.

@simple_fn, @residual_fn, @jacobian_fn and @bd_fn take the library or its type first, @residual_fn(petsclib, f0, Nf), and build the C signature from its PetscInt, PetscReal and PetscScalar.

The old form, which read those three types from consts the caller had to define and so allowed one library per module, still works and warns.
@filoferra
filoferra merged commit fcba132 into JuliaParallel:main Oct 27, 2026
5 checks passed
@filoferra
filoferra deleted the pointwise-macros branch October 27, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant