Re: [petsc-dev] libm autodetection broken with -ffast-math

2014-04-02 Thread Jed Brown
Barry Smith writes: >Why not just always assume -lm is needed and only remove -lm if it doesn’t > exist? That would be fine with me. pgpglPEssw2pk.pgp Description: PGP signature

Re: [petsc-dev] libm autodetection broken with -ffast-math

2014-04-02 Thread Barry Smith
Why not just always assume -lm is needed and only remove -lm if it doesn’t exist? Barry On Apr 2, 2014, at 12:24 PM, Jed Brown wrote: > "gcc -O3 -ffast-math" and "clang -O3 -fast-math" remove the calls in our > math checks, resulting in configure thinking that -lm is not required. > To

[petsc-dev] libm autodetection broken with -ffast-math

2014-04-02 Thread Jed Brown
"gcc -O3 -ffast-math" and "clang -O3 -fast-math" remove the calls in our math checks, resulting in configure thinking that -lm is not required. To fix the test, we have to ensure that the functions get called with values not known at compile time, which will make the configure code more complicated

Re: [petsc-dev] MatAXPY does not increase state

2014-04-02 Thread Jed Brown
"Jose E. Roman" writes: > Hi. > > We are having problems since the MatStructure flag was removed from > KSPSetOperators. > https://bitbucket.org/petsc/petsc/commits/b37f9b8 > > Tracking our problem leads to blame MatAXPY, which does not increase > the state of the first Mat argument. The attache

[petsc-dev] MatAXPY does not increase state

2014-04-02 Thread Jose E. Roman
Hi. We are having problems since the MatStructure flag was removed from KSPSetOperators. https://bitbucket.org/petsc/petsc/commits/b37f9b8 Tracking our problem leads to blame MatAXPY, which does not increase the state of the first Mat argument. The attached patch fixes the problem for us. Is th

Re: [petsc-dev] Composing PetscSections for FieldSplit

2014-04-02 Thread Matthew Knepley
On Wed, Apr 2, 2014 at 8:14 AM, Michael Lange wrote: > Hi Matt, > > We are trying to implement fieldsplit for mixed function spaces in > Firedrake. For this we want to compose a set of sections with one field > each into one section with several fields. The is to add a > PetscSectionSetField() fu

[petsc-dev] Composing PetscSections for FieldSplit

2014-04-02 Thread Michael Lange
Hi Matt, We are trying to implement fieldsplit for mixed function spaces in Firedrake. For this we want to compose a set of sections with one field each into one section with several fields. The is to add a PetscSectionSetField() function and then use this to build a container section with s

Re: [petsc-dev] Fortran libraries cannot be used with C++ compiler

2014-04-02 Thread Pierpaolo Minelli
Hi, thanks to everybody for your useful hints. I solved my problem looking on this particular error on intel compiler forum. I need to add to my original configure this: —CXXFLAGS=‘-openmp -parallel’ because i use this option for C and Fortran Intel compiler too. Using this option (-openmp), int