Searched refs:current_f_allocated (Results 1 – 2 of 2) sorted by relevance
45 PetscBool current_f_allocated; member
211 if (ctx->current_f_allocated) PetscCall(VecDestroy(&ctx->current_f)); in MatDestroy_MFFD()357 if (ctx->ncurrenth == 1 && ctx->current_f_allocated) PetscCall((*ctx->func)(ctx->funcctx, U, F)); in MatMult_MFFD()441 if (ctx->current_f_allocated) PetscCall(VecDestroy(&ctx->current_f)); in MatMFFDSetBase_MFFD()443 ctx->current_f_allocated = PETSC_FALSE; in MatMFFDSetBase_MFFD()444 } else if (!ctx->current_f_allocated) { in MatMFFDSetBase_MFFD()446 ctx->current_f_allocated = PETSC_TRUE; in MatMFFDSetBase_MFFD()