Commits

BarryFSmith committed 7f1f71b Merge

Merge branch 'barry/fix-complex-examples' into next

Comments (0)

Files changed (1)

src/sys/objects/options.c

 
   if (name[0] == '+') name++;
   if (name[0] == 'i') {
-#if defined(PETSC_HAVE_COMPLEX)
+#if defined(PETSC_USE_COMPLEX)
     *a = PETSC_i;
 #else
     SETERRQ1(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Input string %s is imaginary but complex not supported ",name);
       name++;
     }
     if (name[0] == 'i') {
-#if defined(PETSC_HAVE_COMPLEX)
+#if defined(PETSC_USE_COMPLEX)
       *a = -PETSC_i;
 #else
      SETERRQ1(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Input string %s is imaginary but complex not supported ",name);
         ierr = PetscOptionsStringToReal(name,&re);CHKERRQ(ierr);
       }
     }
-#if defined(PETSC_HAVE_COMPLEX)
+#if defined(PETSC_USE_COMPLEX)
     *a = re + im*PETSC_i;
 #else
     if (im != 0.0) SETERRQ1(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Input string %s is complex but complex not supported ",name);