# udfGetEbcCovar()

Return the surface covariant at the surface quadrature point.

## Syntax

covar = udfGetEbcCovar( udfHd ) ;

## Type

AcuSolve User-Defined Example Boundary Condition

## Parameters

- udfHd
- The opaque handle (pointer) which was passed to the user function.

## Return Value

- covar (Real*)
- Pointer to two dimensional real array of the covariant. The first (fastest) dimension of the array is the number of surfaces, nItems, and the second (slower) dimension is six, for the xx, yy, zz, xy, yz and zx components.

## Description

```
Real* covar ;
Real xx_covar, yy_covar, zz_covar ;
Real xy_covar, yz_covar, zx_covar ;
Integer surf ;
...
covar = udfGetEbcCovar( udfHd ) ;
for ( surf = 0 ; surf < nItems ; surf++ ) {
xx_covar = covar[0*nItems+surf] ;
yy_covar = covar[1*nItems+surf] ;
zz_covar = covar[2*nItems+surf] ;
xy_covar = covar[3*nItems+surf] ;
yz_covar = covar[4*nItems+surf] ;
zx_covar = covar[5*nItems+surf] ;
...
}
```

## Errors

- This routine expects a valid udfHd.
- This routine may only be called within an Element Boundary Condition user function.