On Tue, 10 Jun 2008, Randall Mackie wrote: > I was running my PETSc code with -info, and I noticed a bunch of > warnings that said: > > Efficiency warning, copying array in XXXGetArray() due to alignment > differences between C and Fortran. > > My code is written in Fortran, and these must be coming from all > the VecGetArray calls I make, but is this a serious issue and is > there some way to get proper alignment between C and Fortran?
The problem here is: the variable you specify for offset is not aligned the same way as the array. And there is no way to specify [to compiler] how variables should be alighned. You can use VecGetArrayF90() [with a f90 compiler] - to avoid this problem. Satish
