743 {
745 constexpr int adolc_return_value = 0;
746 CHKERR mat_ops_data_ptr->setActiveContinuousVector(
748 CHKERR mat_ops_data_ptr->setDependentContinuousVector(
750
751 const auto number_of_active_variables =
753 const auto number_of_dependent_variables =
756 number_of_dependent_variables * number_of_active_variables);
758 for (
unsigned int n = 0;
n != number_of_dependent_variables; ++
n) {
761 [
n * number_of_active_variables]);
762 }
763
766 if (PetscUnlikely(r < adolc_return_value)) {
768 "ADOL-C function evaluation with error");
769 }
770 CHKERR mat_ops_data_ptr->getDependentDerivativesContinuousVector(
773}
#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