[petsc-dev] test harness: shortcut for !define(PETSC_USE_64BIT_INDICES)

Balay, Satish balay at mcs.anl.gov
Thu Oct 25 08:20:41 CDT 2018


On Thu, 25 Oct 2018, Hapla  Vaclav wrote:

> Is there something like
>   requires: complex
> for 64 indices?
> According to developers.pdf, there should be
>   requires: int32
> but it's not working for me.

balay at asterix /home/balay/petsc (next=)
$ git grep requires: |grep 64 | head
lib/petsc/bin/maint/convertExamplesUtils.py:makefileMap["DOUBLEINT32"]="buildrequires: !define(USE_64BIT_INDICES) define(PETSC_USE_REAL_DOUBLE)"  
src/dm/impls/plex/examples/tutorials/ex5.c:    requires: hdf5 exodusii parmetis !define(PETSC_USE_64BIT_INDICES)
src/dm/impls/plex/examples/tutorials/ex5.c:    requires: hdf5 exodusii !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex11.c:      requires: datafilespath double !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex11.c:      requires: datafilespath double  !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex12f.F:!      requires: datafilespath double  !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex16f.F90:!      requires: datafilespath double  !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex18.c:      requires: datafilespath double !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex25.c:      requires: datafilespath double !complex !define(PETSC_USE_64BIT_INDICES)
src/ksp/ksp/examples/tests/ex27.c:      requires: datafilespath !complex double !define(PETSC_USE_64BIT_INDICES)
balay at asterix /home/balay/petsc (next=)
$ 

So most examples are using the flag 'define(PETSC_USE_64BIT_INDICES)' directly..

Satish


More information about the petsc-dev mailing list