![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __DUAL_H 00005 #define __DUAL_H 00006 00007 #include <dolfin/RHS.h> 00008 #include <dolfin/ODE.h> 00009 00010 namespace dolfin { 00011 00012 class RHS; 00013 00033 00034 class Dual : public ODE 00035 { 00036 public: 00037 00039 Dual(ODE& primal, Function& u); 00040 00042 ~Dual(); 00043 00045 real u0(unsigned int i); 00046 00048 real f(const Vector& phi, real t, unsigned int i); 00049 00050 private: 00051 00052 // Compute derivative dfi/duj 00053 real dFdU(unsigned int i, unsigned int j, real t); 00054 00055 // Right-hand side for primal problem 00056 RHS rhs; 00057 00058 }; 00059 00060 } 00061 00062 #endif
![]()
Documentation automatically generated with Doxygen on 10 Sep 2004.