libMesh
Functions
adjoint_initial.C File Reference

Go to the source code of this file.

Functions

void adjoint_read_initial_parameters ()
 
void adjoint_finish_initialization ()
 
Number adjoint_initial_value (const Point &p, const Parameters &, const std::string &, const std::string &)
 
Gradient adjoint_initial_grad (const Point &p, const Parameters &, const std::string &, const std::string &)
 

Function Documentation

void adjoint_finish_initialization ( )

Definition at line 28 of file adjoint_initial.C.

29 {
30 }
Gradient adjoint_initial_grad ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 47 of file adjoint_initial.C.

References libMesh::Real, and libMesh::x.

Referenced by main().

51 {
52  Real x = p(0), y = p(1);
53 
54  return Gradient(Number(M_PI*cos(M_PI * x) * sin(M_PI * y)),
55  Number(M_PI*sin(M_PI * x) * cos(M_PI * y)));
56 }
PetscErrorCode Vec x
NumberVectorValue Gradient
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Number adjoint_initial_value ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 35 of file adjoint_initial.C.

References libMesh::Real, and libMesh::x.

Referenced by main().

39 {
40  Real x = p(0), y = p(1);
41 
42  return (sin(M_PI * x) * sin(M_PI * y));
43 }
PetscErrorCode Vec x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void adjoint_read_initial_parameters ( )

Definition at line 24 of file adjoint_initial.C.

25 {
26 }