@@ -71,33 +71,37 @@ PetscErrorCode OperatorApplyContextCreate(DM dm_x, DM dm_y, Ceed ceed, CeedOpera
7171 PetscCall (VecGetLocalSize (X_loc , & X_size ));
7272 PetscCheck (X_size == x_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
7373 "X_loc (%" PetscInt_FMT ") not correct size for CeedOperator active input size (%" CeedSize_FMT ")" , X_size , x_size );
74- if (dm_x )
74+ if (dm_x ) {
7575 PetscCheck (X_size == dm_X_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
7676 "X_loc size (%" PetscInt_FMT ") does not match dm_x local vector size (%" PetscInt_FMT ")" , X_size , dm_X_size );
77+ }
7778 }
7879 if (Y_loc ) {
7980 PetscCall (VecGetLocalSize (Y_loc , & Y_size ));
8081 PetscCheck (Y_size == y_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
8182 "Y_loc (%" PetscInt_FMT ") not correct size for CeedOperator active output size (%" CeedSize_FMT ")" , Y_size , y_size );
82- if (dm_y )
83+ if (dm_y ) {
8384 PetscCheck (Y_size == dm_Y_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
8485 "Y_loc size (%" PetscInt_FMT ") does not match dm_y local vector size (%" PetscInt_FMT ")" , Y_size , dm_Y_size );
86+ }
8587 }
8688 if (x_ceed && x_ceed != CEED_VECTOR_NONE ) {
8789 PetscCallCeed (ceed , CeedVectorGetLength (x_ceed , & x_ceed_size ));
8890 PetscCheck (x_size >= 0 ? x_ceed_size == x_size : true, PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
8991 "x_ceed (%" CeedSize_FMT ") not correct size for CeedOperator active input size (%" CeedSize_FMT ")" , x_ceed_size , x_size );
90- if (dm_x )
92+ if (dm_x ) {
9193 PetscCheck (x_ceed_size == dm_X_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
9294 "x_ceed size (%" CeedSize_FMT ") does not match dm_x local vector size (%" PetscInt_FMT ")" , x_ceed_size , dm_X_size );
95+ }
9396 }
9497 if (y_ceed && y_ceed != CEED_VECTOR_NONE ) {
9598 PetscCallCeed (ceed , CeedVectorGetLength (y_ceed , & y_ceed_size ));
9699 PetscCheck (y_ceed_size == y_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
97100 "y_ceed (%" CeedSize_FMT ") not correct size for CeedOperator active input size (%" CeedSize_FMT ")" , y_ceed_size , y_size );
98- if (dm_y )
101+ if (dm_y ) {
99102 PetscCheck (y_ceed_size == dm_Y_size , PETSC_COMM_WORLD , PETSC_ERR_ARG_SIZ ,
100103 "y_ceed size (%" CeedSize_FMT ") does not match dm_y local vector size (%" PetscInt_FMT ")" , y_ceed_size , dm_Y_size );
104+ }
101105 }
102106 }
103107
0 commit comments