Skip to content

Use PetscRealPart and PetscImaginaryPart in supermeshing.py #1866

Open
@ReubenHill

Description

@ReubenHill

Since we are using PetscScalar we should probably use PetscRealPart and PetscImaginaryPart.

This would be instead of

real_simplex[d*i+j] = creal(simplex[d*i+j]);
imag_simplex[d*i+j] = cimag(simplex[d*i+j]);

in static void seperate_real_and_imag(PetscScalar *simplex, double *real_simplex, double *imag_simplex, int d) - permalink here.

Originally posted by @djanekovic in #1696 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions