On Sat, Sep 22, 2012 at 4:46 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Sat, Sep 22, 2012 at 3:40 PM, Matthew Knepley <knepley at gmail.com>wrote:
>
>> Well, you wrote
>>>
>>>   PetscInt imid = ((unsigned PetscInt) imin + (unsigned PetscInt) imax)
>>> >> 1;
>>>
>>> which doesn't compile because the unsigned keyword does not apply to
>>> typedefs.
>>>
>>
>> Compiled fine for me.
>>
>
> Bull. Shit.
>
> /home/jed/petsc-tmp/src/sys/utils/sorti.c: In function ?PetscFindInt?:
> /home/jed/petsc-tmp/src/sys/utils/sorti.c:162:32: error: expected ?)?
> before ?PetscInt?
> /home/jed/petsc-tmp/src/sys/utils/sorti.c:162:59: error: expected ?)?
> before ?PetscInt?
>

I was not sure that would work, but of course I tried it before pushing:

  Compiling C files ['/PETSc3/petsc/petsc-dev-pylith/src/sys/utils/sorti.c']
        Pushing language Cxx
/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/bin/mpicxx -c
-I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include
-I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include/sieve
-I/PETSc3/petsc/exodusii-4.98/include
-I/PETSc3/petsc/exodusii-4.98/cbind/include
-I/PETSc3/petsc/exodusii-4.98/forbind/include   -Wall -Wwrite-strings
-Wno-strict-aliasing -Wno-unknown-pragmas -g  -PIC      -MMD -D__INSDIR__=
/PETSc3/petsc/petsc-dev-pylith/src/sys/utils/sorti.c
sh: /PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/bin/mpicxx
-c -I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include
-I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include/sieve
-I/PETSc3/petsc/exodusii-4.98/include
-I/PETSc3/petsc/exodusii-4.98/cbind/include
-I/PETSc3/petsc/exodusii-4.98/forbind/include   -Wall -Wwrite-strings
-Wno-strict-aliasing -Wno-unknown-pragmas -g  -PIC      -MMD -D__INSDIR__=
/PETSc3/petsc/petsc-dev-pylith/src/sys/utils/sorti.c
Executing:
/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/bin/mpicxx -c
-I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include
-I/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/include
-I/PETSc3/petsc/petsc-dev-pylith/include/sieve
-I/PETSc3/petsc/exodusii-4.98/include
-I/PETSc3/petsc/exodusii-4.98/cbind/include
-I/PETSc3/petsc/exodusii-4.98/forbind/include   -Wall -Wwrite-strings
-Wno-strict-aliasing -Wno-unknown-pragmas -g  -PIC      -MMD -D__INSDIR__=
/PETSc3/petsc/petsc-dev-pylith/src/sys/utils/sorti.c
sh:
        Popping language Cxx
        Moving sorti.o to
/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/lib/libpetsc-obj/sorti.o
        Moving sorti.d to
/PETSc3/petsc/petsc-dev-pylith/arch-sieve-fdatatypes-debug/lib/libpetsc-obj/sorti.d

   Matt

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120922/057bae2d/attachment.html>

Reply via email to