@@ -360,7 +360,7 @@ namespace PETSc {
360360 AnyType operator ()(Stack s) const ;
361361
362362 Op (Expression x, Expression y) : b(new Call_FormBilinear<fes1, fes2>(*dynamic_cast <const Call_FormBilinear<fes1, fes2>*>(y))), a(x) {
363- assert (b && b->nargs );
363+ ffassert (b && b->nargs );
364364 ffassert (FieldOfForm (b->largs , IsComplexType<upscaled_type<K>>::value) == IsComplexType<upscaled_type<K>>::value);
365365
366366 #if defined(WITH_bemtool) && defined(WITH_htool) && defined(PETSC_HAVE_HTOOL)
@@ -391,7 +391,7 @@ namespace PETSc {
391391 typedef typename fes2::FESpace FESpace2;
392392 typedef typename FESpace2::Mesh Mesh2;
393393
394- assert (b && b->nargs );
394+ ffassert (b && b->nargs );
395395 pfes1* pUh = GetAny<pfes1*>((*b->euh )(stack));
396396 pfes2* pVh = GetAny<pfes2*>((*b->evh )(stack));
397397 const FESpace1* PUh = (FESpace1*)**pUh;
@@ -714,7 +714,7 @@ namespace PETSc {
714714 }
715715 int size;
716716 MPI_Comm_size (A->_A ->getCommunicator (), &size);
717- assert (size == 1 || k);
717+ ffassert (size == 1 || k);
718718 communicators->operator [](0 ).resize (k);
719719 communicators->resize (2 * k + 1 );
720720 }
@@ -1890,7 +1890,7 @@ namespace PETSc {
18901890 }
18911891 }
18921892 if (err) CompileError (" Wrong format of block matrix" );
1893- assert (N && M);
1893+ ffassert (N && M);
18941894 e_M = new Expression*[N];
18951895 t_M = new int *[N];
18961896 for (int i = 0 ; i < N; ++i) {
@@ -2432,10 +2432,10 @@ namespace PETSc {
24322432 int level = 0 ;
24332433 if (c != 0 ) {
24342434 tabA = GetAny< KN< Dmat >* >((*A)(stack));
2435- assert (tabA->N ( ) > 0 );
2435+ ffassert (tabA->N ( ) > 0 );
24362436 if (c == 2 ) {
24372437 level = GetAny< long >((*P)(stack));
2438- assert (0 <= level && level < tabA->N ( ));
2438+ ffassert (0 <= level && level < tabA->N ( ));
24392439 level = tabA->N ( ) - level - 1 ;
24402440 }
24412441 ptA = reinterpret_cast < Type* >(&tabA->operator [](level));
@@ -5018,6 +5018,7 @@ namespace PETSc {
50185018 Vec x, y;
50195019 double timing = MPI_Wtime ( );
50205020 MatCreateVecs ((*t)._petsc , &x, &y);
5021+ ffassert (out->N () == u->N () && out->M () == u->M ());
50215022 PetscScalar* ptr;
50225023 MatType type;
50235024 PetscBool isType;
@@ -5067,7 +5068,7 @@ namespace PETSc {
50675068 }
50685069 VecRestoreArray (x, &ptr);
50695070 }
5070- else if ( std::is_same< typename std::remove_reference< decltype (*t.A ->_A ) >::type,
5071+ else if (std::is_same< typename std::remove_reference< decltype (*t.A ->_A ) >::type,
50715072 HpSchwarz< PetscScalar > >::value) {
50725073 VecGetArray (x, &ptr);
50735074 for (int i = 0 ; i < u->n ; ++i)
@@ -5297,12 +5298,12 @@ namespace PETSc {
52975298 loopDistributedVec<0 , N>(t->_petsc , t->_exchange , u, ptr);
52985299 } else {
52995300 if (t->_A )
5300- assert (u->n == t->_A ->getDof () && out->n == t->_A ->getDof ());
5301+ ffassert (u->n == t->_A ->getDof () && out->n == t->_A ->getDof ());
53015302 else if (t->_exchange ) {
53025303 if (N == ' T' ) {
5303- assert (u->n == t->_exchange [0 ]->getDof () && out->n == t->_exchange [1 ]->getDof ());
5304+ ffassert (u->n == t->_exchange [0 ]->getDof () && out->n == t->_exchange [1 ]->getDof ());
53045305 } else {
5305- assert (u->n == t->_exchange [1 ]->getDof () && out->n == t->_exchange [0 ]->getDof ());
5306+ ffassert (u->n == t->_exchange [1 ]->getDof () && out->n == t->_exchange [0 ]->getDof ());
53065307 }
53075308 }
53085309 for (int i = 0 ; i < u->n ; ++i)
@@ -6104,7 +6105,7 @@ namespace PETSc {
61046105 Op (Expression aa,Expression bb,int initt)
61056106 : b(new Call_CompositeFormBilinear<vect_generic_v_fes,vect_generic_v_fes>(* dynamic_cast <const Call_CompositeFormBilinear<vect_generic_v_fes,vect_generic_v_fes> *>(bb))),a(aa),init(initt)
61066107 {
6107- assert (b && b->nargs );
6108+ ffassert (b && b->nargs );
61086109 int NN = (int ) b->euh ->componentNbitem ().size ();
61096110 int MM = (int ) b->evh ->componentNbitem ().size ();
61106111
@@ -6246,7 +6247,7 @@ namespace PETSc {
62466247 AnyType OpMatrixtoBilinearFormVGPETSc<HpddmType>::Op::operator ()(Stack stack) const
62476248 {
62486249 typedef PetscScalar R;
6249- assert (b && b->nargs );
6250+ ffassert (b && b->nargs );
62506251
62516252 pvectgenericfes * pUh= GetAny<pvectgenericfes *>((*b->euh )(stack));
62526253 pvectgenericfes * pVh= GetAny<pvectgenericfes *>((*b->evh )(stack));
0 commit comments