History log of /petsc/src/sys/tests/ex15.cxx (Results 1 – 3 of 3)
Revision Date Author Comments
# 941063a0 16-Oct-2025 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# 33de97a6 15-Oct-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jczhang/2025-09-25/fix-petsccomplex' into 'release'

Fix a petsccxxcomplexfix bug

See merge request petsc/petsc!8736


# 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 ...