[petsc-dev] fix conflict between triangle and spai
Matthew Knepley
knepley at gmail.com
Thu Apr 30 11:12:45 CDT 2020
What branch should I make fixes in?
Thanks,
Matt
On Thu, Apr 30, 2020 at 11:18 AM Satish Balay <balay at mcs.anl.gov> wrote:
> I've attempted a build with master [aka triangle-1.6] - there was a fix I
> had to add to triangle to compile.
>
> When I run CI - many petsc examples give diffs. Likely triangle-1.6 was
> never tested with petsc.
>
> https://gitlab.com/petsc/petsc/pipelines/140824859
>
> So won't make this change now.
>
> Satish
>
> On Tue, 28 Apr 2020, Matthew Knepley wrote:
>
> > On Tue, Apr 28, 2020 at 10:23 AM Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > > And I see:
> > >
> > > $ git branch -r
> > > origin/HEAD -> origin/master
> > > origin/maint-1.3
> > > origin/master
> > >
> > > master has triangle-1.6 changes. However petsc is installing and using
> > > triangle-1.3 i.e maint.
> > >
> > > Matt - any idea why this discrepancy?
> > >
> >
> > I have no idea. It should not be doing that.
> >
> > That change looks fine to me.
> >
> > Thanks,
> >
> > Matt
> >
> >
> > > Satish
> > >
> > > On Tue, 28 Apr 2020, Satish Balay via petsc-dev wrote:
> > >
> > > > I get the following error with triangle+spai build with gcc-10 [this
> is
> > > on linux though - ignore osx in PETSC_ARCH]
> > > >
> > > > CLINKER arch-ci-osx-cxx-pkgs-opt/lib/libpetsc.so.3.13.0
> > > > /usr/bin/ld:
> > >
> /home/balay/petsc/arch-ci-osx-cxx-pkgs-opt/lib/libtriangle.a(triangle.o):/home/balay/petsc/arch-ci-osx-cxx-pkgs-opt/externalpackages/Triangle/src/triangle.c:667:
> > > multiple definition of `epsilon';
> > >
> /home/balay/petsc/arch-ci-osx-cxx-pkgs-opt/lib/libspai.a(spai.o):(.bss+0x188):
> > > first defined here
> > > >
> > > >
> > > > Matt,
> > > >
> > > > Any objection to this change to triangle?
> > > >
> > > > diff --git a/src/triangle.c b/src/triangle.c
> > > > index 8e915a1..76f6d84 100644
> > > > --- a/src/triangle.c
> > > > +++ b/src/triangle.c
> > > > @@ -664,7 +664,7 @@ long samples; /* Number of random
> > > samples for point location. */
> > > > unsigned long randomseed; /* Current random
> number
> > > seed. */
> > > >
> > > > REAL splitter; /* Used to split REAL factors for exact
> > > multiplication. */
> > > > -REAL epsilon; /* Floating-point machine
> > > epsilon. */
> > > > +static REAL epsilon; /* Floating-point machine
> > > epsilon. */
> > > > REAL resulterrbound;
> > > > REAL ccwerrboundA, ccwerrboundB, ccwerrboundC;
> > > > REAL iccerrboundA, iccerrboundB, iccerrboundC;
> > > >
> > > > Satish
> > > >
> > >
> > >
> >
> >
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200430/e39da141/attachment.html>
More information about the petsc-dev
mailing list