[petsc-dev] args loop in testset

Jakub Kruzik jakub.kruzik at vsb.cz
Wed Jun 26 06:16:12 CDT 2019


Hello,

args loop in test in testset does not insert a space after the argument. 
E.g., changing

test:
   args: -bs {{1 2 3 4 5 6 7 8 9 10 11 12}} -pc_type cholesky

into:

testset:
test:
     args: -bs {{1 2 3 4 5 6 7 8 9 10 11 12}} -pc_type cholesky

in ksp/ksp/examples/tests/ex49.c

Gives error:
#       [0]PETSC ERROR: Argument out of range
#       [0]PETSC ERROR: Input string 1-pc_type has no integer value (do 
not include . in it)
#       [0]PETSC ERROR: Petsc Development GIT revision: 
v3.11.2-1093-g080cba1312  GIT Date: 2019-06-26 10:52:54 +0200
#       [0]PETSC ERROR: #1 PetscOptionsStringToInt() line 1946 in 
/home/jakub/devel/petsc/petsc/src/sys/objects/options.c
#       [0]PETSC ERROR: #2 PetscOptionsGetInt() line 2282 in 
/home/jakub/devel/petsc/petsc/src/sys/objects/options.c
#       [0]PETSC ERROR: #3 main() line 18 in 
/home/jakub/devel/petsc/petsc/src/ksp/ksp/examples/tests/ex49.c
#       [0]PETSC ERROR: PETSc Option Table entries:
#       [0]PETSC ERROR: -bs 1-pc_type


All the best,

Jakub


More information about the petsc-dev mailing list