Public Member Functions | Protected Attributes | Private Member Functions

Albany::DistributedResponseFunction Class Reference

Interface for distributed response functions. More...

#include <Albany_DistributedResponseFunction.hpp>

Inheritance diagram for Albany::DistributedResponseFunction:
Inheritance graph
[legend]
Collaboration diagram for Albany::DistributedResponseFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DistributedResponseFunction ()
 Default constructor.
virtual ~DistributedResponseFunction ()
 Destructor.
virtual void evaluateGradient (const double current_time, const Epetra_Vector *xdot, const Epetra_Vector *xdotdot, const Epetra_Vector &x, const Teuchos::Array< ParamVec > &p, ParamVec *deriv_p, Epetra_Vector *g, Epetra_Operator *dg_dx, Epetra_Operator *dg_dxdot, Epetra_Operator *dg_dxdotdot, Epetra_MultiVector *dg_dp)=0
 Evaluate gradient = dg/dx, dg/dxdot, dg/dp.
Implementation of AbstractResponseFunction virtual methods

virtual bool isScalarResponse () const
 Is this response function "scalar" valued, i.e., has a replicated local response map.
virtual void evaluateDerivative (const double current_time, const Epetra_Vector *xdot, const Epetra_Vector *xdotdot, const Epetra_Vector &x, const Teuchos::Array< ParamVec > &p, ParamVec *deriv_p, Epetra_Vector *g, const EpetraExt::ModelEvaluator::Derivative &dg_dx, const EpetraExt::ModelEvaluator::Derivative &dg_dxdot, const EpetraExt::ModelEvaluator::Derivative &dg_dxdotdot, const EpetraExt::ModelEvaluator::Derivative &dg_dp)
 Evaluate derivative dg/dx, dg/dxdot, dg/dp.

Protected Attributes

Teuchos::RCP< const Epetra_Comm > comm
 Comm for forming response map.

Private Member Functions

 DistributedResponseFunction (const DistributedResponseFunction &)
 Private to prohibit copying.
DistributedResponseFunctionoperator= (const DistributedResponseFunction &)
 Private to prohibit copying.

Detailed Description

Interface for distributed response functions.

Implements a few methods of AbstractResponseFunction specifically for distributred responses, i.e., those that involve a distributed map.

Definition at line 22 of file Albany_DistributedResponseFunction.hpp.


Constructor & Destructor Documentation

Albany::DistributedResponseFunction::DistributedResponseFunction (  )  [inline]

Default constructor.

Definition at line 27 of file Albany_DistributedResponseFunction.hpp.

virtual Albany::DistributedResponseFunction::~DistributedResponseFunction (  )  [inline, virtual]

Destructor.

Definition at line 30 of file Albany_DistributedResponseFunction.hpp.

Albany::DistributedResponseFunction::DistributedResponseFunction ( const DistributedResponseFunction  )  [private]

Private to prohibit copying.


Member Function Documentation

virtual void Albany::DistributedResponseFunction::evaluateGradient ( const double  current_time,
const Epetra_Vector *  xdot,
const Epetra_Vector *  xdotdot,
const Epetra_Vector &  x,
const Teuchos::Array< ParamVec > &  p,
ParamVec deriv_p,
Epetra_Vector *  g,
Epetra_Operator *  dg_dx,
Epetra_Operator *  dg_dxdot,
Epetra_Operator *  dg_dxdotdot,
Epetra_MultiVector *  dg_dp 
) [pure virtual]

Evaluate gradient = dg/dx, dg/dxdot, dg/dp.

Implemented in Albany::SolutionResponseFunction.

virtual bool Albany::DistributedResponseFunction::isScalarResponse (  )  const [inline, virtual]

Is this response function "scalar" valued, i.e., has a replicated local response map.

Implements Albany::AbstractResponseFunction.

Definition at line 87 of file Albany_DistributedResponseFunction.hpp.

void Albany::DistributedResponseFunction::evaluateDerivative ( const double  current_time,
const Epetra_Vector *  xdot,
const Epetra_Vector *  xdotdot,
const Epetra_Vector &  x,
const Teuchos::Array< ParamVec > &  p,
ParamVec deriv_p,
Epetra_Vector *  g,
const EpetraExt::ModelEvaluator::Derivative &  dg_dx,
const EpetraExt::ModelEvaluator::Derivative &  dg_dxdot,
const EpetraExt::ModelEvaluator::Derivative &  dg_dxdotdot,
const EpetraExt::ModelEvaluator::Derivative &  dg_dp 
) [virtual]

Evaluate derivative dg/dx, dg/dxdot, dg/dp.

Implements Albany::AbstractResponseFunction.

Definition at line 11 of file Albany_DistributedResponseFunction.cpp.

DistributedResponseFunction& Albany::DistributedResponseFunction::operator= ( const DistributedResponseFunction  )  [private]

Private to prohibit copying.


Member Data Documentation

Teuchos::RCP<const Epetra_Comm> Albany::DistributedResponseFunction::comm [protected]

Comm for forming response map.

Definition at line 151 of file Albany_DistributedResponseFunction.hpp.


The documentation for this class was generated from the following files: