Skip to content

Error precompiling GridapSolvers + GridapDistributed #100

@Elmanyer

Description

@Elmanyer

Hi @JordiManyer, we are having an error when precompiling with julia@1.11. It is complaining about the function num_fields beign overwritten:

 GridapSolvers → IterativeSolversExt
│  WARNING: Method definition num_fields(GridapDistributed.DistributedFESpace) in module GridapDistributed at /home/pmanyerfuertes/.julia/packages/GridapDistributed/raCar/src/MultiField.jl:95 overwritten in module BlockSolvers at /home/pmanyerfuertes/.julia/packages/GridapSolvers/gwyZl/src/BlockSolvers/StaggeredFEOperators.jl:27.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

Commenting out this line

MultiField.num_fields(space::DistributedFESpace) = 1
works.

Is this line there for a specific reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions