Skip to content

Build libmesh (without --enable-complex) with PETSc (with complex scalars) #4154

@rainiscold

Description

@rainiscold

Hello all,

Can I compile libmesh without enabling complex but with a PETSc that has enabled complex scalars? I ran into an error in this case, it complains that I have to configure libmesh with complex numbers.

I built PETSc with scalar complex, I have no problem building libmesh with "--enable-complex".

The origin of the problem is: I want to solve complex eigenvalue problem in MOOSE. MOOSE can only compile with libmesh (real numbers only). So I want to go around libmesh and manipulate complex numbers in PETSc. See idaholab/moose#29886

Does anyone know any solution to this? Thank you!

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