![]() |
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #include <dolfin.h> 00005 00006 using namespace dolfin; 00007 00008 class TestProblem1 : public ODE 00009 { 00010 public: 00011 00012 TestProblem1() : ODE(1) 00013 { 00014 dolfin_info("The simple test equation: u' = -1000 u, u(0) = 1."); 00015 00016 // Final time 00017 T = 10; 00018 } 00019 00020 real u0(unsigned int i) 00021 { 00022 return 1.0; 00023 } 00024 00025 real f(const Vector& u, real t, unsigned int i) 00026 { 00027 return -1000.0 * u(0); 00028 } 00029 00030 };
Documentation automatically generated with Doxygen on 10 Sep 2004.