Lines Matching refs:indx1

784     PetscInt *indx1, *indx2, tempindx, tempindx1;  in VecScatterPetscToFFTW_FFTW()  local
829 PetscCall(PetscMalloc1((PetscInt)local_n0 * dim[1], &indx1)); in VecScatterPetscToFFTW_FFTW()
842 PetscCall(PetscIntCast(local_0_start * dim[1] + tempindx, &indx1[tempindx])); in VecScatterPetscToFFTW_FFTW()
848 PetscCall(ISCreateGeneral(comm, n1, indx1, PETSC_COPY_VALUES, &list1)); in VecScatterPetscToFFTW_FFTW()
857 PetscCall(PetscFree(indx1)); in VecScatterPetscToFFTW_FFTW()
882 PetscCall(PetscMalloc1((PetscInt)local_n0 * dim[1] * dim[2], &indx1)); in VecScatterPetscToFFTW_FFTW()
894 PetscCall(PetscIntCast(local_0_start * dim[1] * dim[2] + tempindx, &indx1[tempindx])); in VecScatterPetscToFFTW_FFTW()
900 … PetscCall(ISCreateGeneral(comm, local_n0 * dim[1] * dim[2], indx1, PETSC_COPY_VALUES, &list1)); in VecScatterPetscToFFTW_FFTW()
908 PetscCall(PetscFree(indx1)); in VecScatterPetscToFFTW_FFTW()
941 PetscCall(PetscMalloc1((PetscInt)local_n0 * partial_dim, &indx1)); in VecScatterPetscToFFTW_FFTW()
949 indx1[i] = local_0_start * partial_dim + i; in VecScatterPetscToFFTW_FFTW()
954 PetscCall(ISCreateGeneral(comm, local_n0 * partial_dim, indx1, PETSC_COPY_VALUES, &list1)); in VecScatterPetscToFFTW_FFTW()
962 PetscCall(PetscFree(indx1)); in VecScatterPetscToFFTW_FFTW()
1031 PetscInt *indx1, *indx2, tempindx, tempindx1; in VecScatterFFTWToPetsc_FFTW() local
1076 PetscCall(PetscMalloc1((PetscInt)local_n0 * dim[1], &indx1)); in VecScatterFFTWToPetsc_FFTW()
1087 PetscCall(PetscIntCast(local_0_start * dim[1] + tempindx, &indx1[tempindx])); in VecScatterFFTWToPetsc_FFTW()
1093 PetscCall(ISCreateGeneral(comm, n1, indx1, PETSC_COPY_VALUES, &list1)); in VecScatterFFTWToPetsc_FFTW()
1102 PetscCall(PetscFree(indx1)); in VecScatterFFTWToPetsc_FFTW()
1124 PetscCall(PetscMalloc1((PetscInt)local_n0 * dim[1] * dim[2], &indx1)); in VecScatterFFTWToPetsc_FFTW()
1136 PetscCall(PetscIntCast(local_0_start * dim[1] * dim[2] + tempindx, &indx1[tempindx])); in VecScatterFFTWToPetsc_FFTW()
1143 PetscCall(ISCreateGeneral(comm, n1, indx1, PETSC_COPY_VALUES, &list1)); in VecScatterFFTWToPetsc_FFTW()
1152 PetscCall(PetscFree(indx1)); in VecScatterFFTWToPetsc_FFTW()
1182 PetscCall(PetscMalloc1((PetscInt)local_n0 * partial_dim, &indx1)); in VecScatterFFTWToPetsc_FFTW()
1190 PetscCall(PetscIntCast(local_0_start * partial_dim + i, &indx1[i])); in VecScatterFFTWToPetsc_FFTW()
1196 PetscCall(ISCreateGeneral(comm, n1, indx1, PETSC_COPY_VALUES, &list1)); in VecScatterFFTWToPetsc_FFTW()
1205 PetscCall(PetscFree(indx1)); in VecScatterFFTWToPetsc_FFTW()