@@ -845,8 +845,7 @@ int CeedBasisCreateHdiv(Ceed ceed, CeedElemTopology topo, CeedInt num_comp, Ceed
845
845
@param[in] num_nodes Total number of nodes (dofs per element)
846
846
@param[in] num_qpts Total number of quadrature points
847
847
@param[in] interp Row-major (dim * num_qpts * num_nodes) matrix expressing the values of basis functions at quadrature points
848
- @param[in] curl Row-major (cdim * num_qpts * num_nodes, cdim = 1 if dim < 3 else dim) matrix expressing curl of basis functions at quadrature
849
- points
848
+ @param[in] curl Row-major (cdim * num_qpts * num_nodes, cdim = 1 if dim < 3 else dim) matrix expressing curl of basis functions at quadrature points
850
849
@param[in] q_ref Array of length num_qpts * dim holding the locations of quadrature points on the reference element
851
850
@param[in] q_weight Array of length num_qpts holding the quadrature weights on the reference element
852
851
@param[out] basis Address of the variable where the newly created CeedBasis will be stored.
@@ -1095,7 +1094,7 @@ int CeedBasisApply(CeedBasis basis, CeedInt num_elem, CeedTransposeMode t_mode,
1095
1094
break ;
1096
1095
case CEED_EVAL_NONE :
1097
1096
case CEED_EVAL_INTERP :
1098
- qdim = (fe_space == CEED_FE_SPACE_H1 ) ? 1 : dim ;
1097
+ qdim = (fe_space == CEED_FE_SPACE_H1 ) ? 1 : dim ;
1099
1098
bad_dims = ((t_mode == CEED_TRANSPOSE && (u_length < num_elem * num_comp * num_qpts * qdim || v_length < num_elem * num_comp * num_nodes )) ||
1100
1099
(t_mode == CEED_NOTRANSPOSE && (v_length < num_elem * num_qpts * num_comp * qdim || u_length < num_elem * num_comp * num_nodes )));
1101
1100
break ;
@@ -1108,7 +1107,7 @@ int CeedBasisApply(CeedBasis basis, CeedInt num_elem, CeedTransposeMode t_mode,
1108
1107
(t_mode == CEED_NOTRANSPOSE && (v_length < num_elem * num_qpts * num_comp || u_length < num_elem * num_comp * num_nodes )));
1109
1108
break ;
1110
1109
case CEED_EVAL_CURL :
1111
- cdim = (dim < 3 ) ? 1 : dim ;
1110
+ cdim = (dim < 3 ) ? 1 : dim ;
1112
1111
bad_dims = ((t_mode == CEED_TRANSPOSE && (u_length < num_elem * num_comp * num_qpts * cdim || v_length < num_elem * num_comp * num_nodes )) ||
1113
1112
(t_mode == CEED_NOTRANSPOSE && (v_length < num_elem * num_qpts * num_comp * cdim || u_length < num_elem * num_comp * num_nodes )));
1114
1113
break ;
@@ -1451,13 +1450,14 @@ int CeedBasisDestroy(CeedBasis *basis) {
1451
1450
if (!* basis || -- (* basis )-> ref_count > 0 ) return CEED_ERROR_SUCCESS ;
1452
1451
if ((* basis )-> Destroy ) CeedCall ((* basis )-> Destroy (* basis ));
1453
1452
if ((* basis )-> contract ) CeedCall (CeedTensorContractDestroy (& (* basis )-> contract ));
1453
+ CeedCall (CeedFree (& (* basis )-> q_ref_1d ));
1454
+ CeedCall (CeedFree (& (* basis )-> q_weight_1d ));
1454
1455
CeedCall (CeedFree (& (* basis )-> interp ));
1455
1456
CeedCall (CeedFree (& (* basis )-> interp_1d ));
1456
1457
CeedCall (CeedFree (& (* basis )-> grad ));
1457
- CeedCall (CeedFree (& (* basis )-> div ));
1458
1458
CeedCall (CeedFree (& (* basis )-> grad_1d ));
1459
- CeedCall (CeedFree (& (* basis )-> q_ref_1d ));
1460
- CeedCall (CeedFree (& (* basis )-> q_weight_1d ));
1459
+ CeedCall (CeedFree (& (* basis )-> div ));
1460
+ CeedCall (CeedFree (& (* basis )-> curl ));
1461
1461
CeedCall (CeedDestroy (& (* basis )-> ceed ));
1462
1462
CeedCall (CeedFree (basis ));
1463
1463
return CEED_ERROR_SUCCESS ;
@@ -1872,27 +1872,26 @@ CeedPragmaOptimizeOn
1872
1872
}
1873
1873
CeedPragmaOptimizeOn
1874
1874
1875
- /**
1876
- @brief Apply Householder Q matrix
1875
+ /**
1876
+ @brief Apply Householder Q matrix
1877
1877
1878
- Compute A = Q A, where Q is mxm and A is mxn.
1878
+ Compute A = Q A, where Q is mxm and A is mxn.
1879
1879
1880
- @param[in,out] A Matrix to apply Householder Q to, in place
1881
- @param[in] Q Householder Q matrix
1882
- @param[in] tau Householder scaling factors
1883
- @param[in] t_mode Transpose mode for application
1884
- @param[in] m Number of rows in A
1885
- @param[in] n Number of columns in A
1886
- @param[in] k Number of elementary reflectors in Q, k<m
1887
- @param[in] row Row stride in A
1888
- @param[in] col Col stride in A
1880
+ @param[in,out] A Matrix to apply Householder Q to, in place
1881
+ @param[in] Q Householder Q matrix
1882
+ @param[in] tau Householder scaling factors
1883
+ @param[in] t_mode Transpose mode for application
1884
+ @param[in] m Number of rows in A
1885
+ @param[in] n Number of columns in A
1886
+ @param[in] k Number of elementary reflectors in Q, k<m
1887
+ @param[in] row Row stride in A
1888
+ @param[in] col Col stride in A
1889
1889
1890
- @return An error code: 0 - success, otherwise - failure
1890
+ @return An error code: 0 - success, otherwise - failure
1891
1891
1892
- @ref Developer
1893
- **/
1894
- int
1895
- CeedHouseholderApplyQ (CeedScalar * A , const CeedScalar * Q , const CeedScalar * tau , CeedTransposeMode t_mode , CeedInt m , CeedInt n , CeedInt k ,
1892
+ @ref Developer
1893
+ **/
1894
+ int CeedHouseholderApplyQ (CeedScalar * A , const CeedScalar * Q , const CeedScalar * tau , CeedTransposeMode t_mode , CeedInt m , CeedInt n , CeedInt k ,
1896
1895
CeedInt row , CeedInt col ) {
1897
1896
CeedScalar * v ;
1898
1897
CeedCall (CeedMalloc (m , & v ));
@@ -1933,4 +1932,4 @@ int CeedMatrixMatrixMultiply(Ceed ceed, const CeedScalar *mat_A, const CeedScala
1933
1932
return CEED_ERROR_SUCCESS ;
1934
1933
}
1935
1934
1936
- /// @}
1935
+ /// @}
0 commit comments