diff --git a/cbind/base/psb_cpenv_mod.f90 b/cbind/base/psb_cpenv_mod.f90 index cda907ee..cf5fc7b0 100644 --- a/cbind/base/psb_cpenv_mod.f90 +++ b/cbind/base/psb_cpenv_mod.f90 @@ -16,7 +16,7 @@ contains subroutine psb_c_set_index_base(base) bind(c) implicit none - integer(psb_c_int) :: base + integer(psb_c_int), value :: base psb_c_index_base = base end subroutine psb_c_set_index_base diff --git a/cbind/test/pargen/ppdec.c b/cbind/test/pargen/ppdec.c index fc972231..8932b03f 100644 --- a/cbind/test/pargen/ppdec.c +++ b/cbind/test/pargen/ppdec.c @@ -123,7 +123,7 @@ int matgen(int ictxt, int ng,int idim,int vg[],psb_c_dspmat *ah,psb_c_descriptor info = 0; psb_c_info(ictxt,&iam,&np); deltah = (double) 1.0/(idim-1); - + psb_c_set_index_base(1); for (glob_row=1; glob_row<=ng; glob_row++) { /* Check if I have to do something about this entry */ @@ -214,10 +214,6 @@ int matgen(int ictxt, int ng,int idim,int vg[],psb_c_dspmat *ah,psb_c_descriptor icol[el]=(x)*idim*idim+(y-1)*idim+(z); el=el+1; } - for (i=0; i