Discussion:
[petsc-users] PetscBool in PETSc 3.1? (Ubuntu Precice)
Florian Lindner
2015-10-25 16:40:36 UTC
Permalink
Hello,

our build system Travis uses the old Ubuntu Precice Pangolin version that comes with PETSc 3.1.

While trying to activate petsc for our CI tests, I get the message that the type PetscBool wasn't found. I downloaded http://packages.ubuntu.com/precise/libpetsc3.1-dev and grepped for PetscBool, found non.

Just to make sure I didn't screw it up, is it true, that there is no PetscBool in version 3.1?

Is there a PPA known that provides newer PETSc versions to Precice Pangolin

Thanks,
Florian
Matthew Knepley
2015-10-25 16:52:56 UTC
Permalink
Post by Florian Lindner
Hello,
our build system Travis uses the old Ubuntu Precice Pangolin version that
comes with PETSc 3.1.
While trying to activate petsc for our CI tests, I get the message that
the type PetscBool wasn't found. I downloaded
http://packages.ubuntu.com/precise/libpetsc3.1-dev and grepped for
PetscBool, found non.
Just to make sure I didn't screw it up, is it true, that there is no
PetscBool in version 3.1?
Is there a PPA known that provides newer PETSc versions to Precice Pangolin
It used to be called PetscTruth, but we could not handle the truth, so we
changed it. I think
you can just add

typedef PetscTruth PetscBool

Thanks,

Matt
Post by Florian Lindner
Thanks,
Florian
--
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
Barry Smith
2015-10-25 16:56:03 UTC
Permalink
Post by Florian Lindner
Hello,
our build system Travis uses the old Ubuntu Precice Pangolin version that comes with PETSc 3.1.
While trying to activate petsc for our CI tests, I get the message that the type PetscBool wasn't found. I downloaded http://packages.ubuntu.com/precise/libpetsc3.1-dev and grepped for PetscBool, found non.
Just to make sure I didn't screw it up, is it true, that there is no PetscBool in version 3.1?
In version 3.1 it is called PetscTruth

PETSc version 3.1 is really, really old, we don't recommend you use it for any purpose since we don't support it.

Barry
Post by Florian Lindner
Is there a PPA known that provides newer PETSc versions to Precice Pangolin
Thanks,
Florian
Dominic Meiser
2015-10-26 15:04:24 UTC
Permalink
Post by Florian Lindner
Hello,
our build system Travis uses the old Ubuntu Precice Pangolin version that comes with PETSc 3.1.
FWIW petsc master or maint build relatively quickly on travis' build
machines (2-5 minutes depending on how many third party packages you
need). If you're able to use travis' containerized infrastructure you
can cache the PETSc builds reducing the PETSc build times to near 0.
I've done that for a couple of my projects and it turned out to be
really easy, see for example here:

https://github.com/d-meiser/SuperContinuum

Have a look at .travis.yml and utilities/get_petsc.sh.

Cheers,
Dominic
Post by Florian Lindner
While trying to activate petsc for our CI tests, I get the message that the type PetscBool wasn't found. I downloaded http://packages.ubuntu.com/precise/libpetsc3.1-dev and grepped for PetscBool, found non.
Just to make sure I didn't screw it up, is it true, that there is no PetscBool in version 3.1?
Is there a PPA known that provides newer PETSc versions to Precice Pangolin
Thanks,
Florian
--
Dominic Meiser
Tech-X Corporation
5621 Arapahoe Avenue
Boulder, CO 80303
USA
Telephone: 303-996-2036
Fax: 303-448-7756
www.txcorp.com
Loading...