int HYPRE_SStructVectorSetBoxValues (HYPRE_SStructVector vector, int part, int *ilower, int *iupper, int var, double *values)

Set vector coefficients a box at a time

Documentation

Set vector coefficients a box at a time. The data in values is ordered as follows:

   m = 0;
   for (k = ilower[2]; k <= iupper[2]; k++)
      for (j = ilower[1]; j <= iupper[1]; j++)
         for (i = ilower[0]; i <= iupper[0]; i++)
         {
            values[m] = ...;
            m++;
         }
   

NOTE: Users are required to set values on all processes that own the associated variables. This means that some data will be multiply defined.

If the vector is complex, then values consists of pairs of doubles representing the real and imaginary parts of each complex value.

See Also:
HYPRE_SStructVectorSetComplex

alphabetic index hierarchy of classes


generated by doc++