[petsc-dev] PETSC_USE_COMPLEX

Satish Balay balay at mcs.anl.gov
Thu Oct 25 20:12:41 CDT 2012


On Thu, 25 Oct 2012, Jed Brown wrote:

> This looks fine. Are you going to backout the other change then?

I intended to push the 2nd patch listed here [over the previous commit].

i.e

> > But I figured that flag could be used for PETSC_i part of the code anyway.
> > [the PETSC_i part of the logic should be equivalent after this change].
> >
> > So if its ok - I'll push:
> >
> > >>>>>>
> > asterix:/home/balay/spetsc>hg diff
> > diff --git a/src/sys/objects/pinit.c b/src/sys/objects/pinit.c
> > --- a/src/sys/objects/pinit.c
> > +++ b/src/sys/objects/pinit.c
> > @@ -702,7 +702,7 @@
> >       shared libraries the constructors for global variables
> >       are not called; at least on IRIX.
> >    */
> > -#if defined(PETSC_USE_COMPLEX)
> > +#if defined(PETSC_HAVE_COMPLEX)
> >    {
> >  #if defined(PETSC_CLANGUAGE_CXX)
> >      PetscComplex ic(0.0,1.0);
> > @@ -718,7 +718,7 @@
> >    ierr = MPI_Type_contiguous(2,MPI_FLOAT,&MPIU_C_COMPLEX);CHKERRQ(ierr);
> >    ierr = MPI_Type_commit(&MPIU_C_COMPLEX);CHKERRQ(ierr);
> >  #endif
> > -#endif /* PETSC_USE_COMPLEX */
> > +#endif /* PETSC_HAVE_COMPLEX */
> >
> >    /*
> >       Create the PETSc MPI reduction operator that sums of the first
> > asterix:/home/balay/spetsc>
> > <<<<<<<<<

Satish



More information about the petsc-dev mailing list