707 {
709 constexpr int adolc_return_value = 0;
710 CHKERR mat_ops_data_ptr->setActiveContinuousVector(
712 CHKERR mat_ops_data_ptr->setDependentContinuousVector(
714
715 const auto number_of_active_variables =
717 const auto number_of_dependent_variables =
720 number_of_dependent_variables * number_of_active_variables);
722 for (
unsigned int n = 0;
n != number_of_dependent_variables; ++
n) {
725 [
n * number_of_active_variables]);
726 }
727
731 if (PetscUnlikely(r < adolc_return_value)) {
733 "ADOL-C function evaluation with error");
734 }
735 CHKERR mat_ops_data_ptr->getDependentDerivativesContinuousVector(
738}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_OPERATION_UNSUCCESSFUL
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
const double n
refractive index of diffusive medium
static std::vector< double > dependentVariablesDerivatives
static std::vector< double > dependentVariables
static std::vector< double > activeVariables
static std::vector< double * > jacPtrVec