Actual source code: ad_utils.h

  1: #ifndef ad_utils_H_seen
  2: #define ad_utils_H_seen

  4: #undef ADUTILS_EXTERN
  5: #if defined(__cplusplus)
  7: #else
  8: #define ADUTILS_EXTERN extern
  9: #endif

 11: typedef void DERIV_TYPE;

 13: ADUTILS_EXTERN void PetscADResetIndep(void);
 14: ADUTILS_EXTERN void PetscADSetValueAndColor(DERIV_TYPE *,int,ISColoringValue*,double *);
 15: ADUTILS_EXTERN void PetscADSetValArray(DERIV_TYPE *,int,double *);
 16: ADUTILS_EXTERN void PetscADSetIndepVector(DERIV_TYPE *,int,double *);
 17: ADUTILS_EXTERN void PetscADSetIndepArrayColored(DERIV_TYPE *,int,int *);
 18: ADUTILS_EXTERN int PetscADIncrementTotalGradSize(int);
 19: ADUTILS_EXTERN void PetscADSetIndepDone(void);
 20: ADUTILS_EXTERN void PetscADExtractGrad(double *,DERIV_TYPE *);
 21: ADUTILS_EXTERN int  PetscADGetDerivTypeSize();
 22: ADUTILS_EXTERN double *PetscADGetGradArray(DERIV_TYPE *);
 23: #endif