| #
108513bb
|
| 15-Oct-2025 |
Junchao Zhang <jczhang@mcs.anl.gov> |
sys: fix a petsccxxcomplexfix bug
With the old code, if PetscReal is double, then the following code,
float a = 0.5; PetscScalar b = a * PETSC_i;
will render b to 0 + 0i, because we only defined P
sys: fix a petsccxxcomplexfix bug
With the old code, if PetscReal is double, then the following code,
float a = 0.5; PetscScalar b = a * PETSC_i;
will render b to 0 + 0i, because we only defined PETSC_CXX_COMPLEX_FIX(PetscInt), which forced 'a' to be promoted to integer 0.
show more ...
|