Skip to content
Snippets Groups Projects
Commit dd73308c authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Added ROSI2PW rosenbrock method.

parent 4092b74a
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,7 @@ namespace AMDiS {
addCreator("rowda3", new Rowda3::Creator);
addCreator("ros3p", new Ros3p::Creator);
addCreator("rodasp", new Rodasp::Creator);
addCreator("rosi2pw", new ROSI2PW::Creator);
}
......
......@@ -174,4 +174,38 @@ namespace AMDiS {
m2[3] = -1.062004044111401e+00;
m2[4] = 1.0;
}
ROSI2PW::ROSI2PW()
{
order = 3;
stages = 4;
gamma = 4.3586652150845e-01;
createData();
a[1][0] = 8.7173304301691801e-01;
a[2][0] = -7.9937335839852708e-01;
a[2][1] = -7.9937335839852708e-01;
a[3][0] = 7.0849664917601007e-01;
a[3][1] = 3.1746327955312481e-01;
a[3][2] = -2.5959928729134892e-02;
c[1][0] = -8.7173304301691801e-01;
c[2][0] = 3.0647867418622479;
c[2][1] = 3.0647867418622479;
c[3][0] = -1.0424832458800504e-01;
c[3][1] = -3.1746327955312481e-01;
c[3][2] = -1.4154917367328144e-02;
m1[0] = 6.0424832458800504e-01;
m1[1] = -3.6210810811598324e-32;
m1[2] = -4.0114846096464034e-02;
m1[3] = 4.3586652150845900e-01;
m2[0] = 4.4315753191688778e-01;
m2[1] = 4.4315753191688778e-01;
m2[2] = 0.0;
m2[3] = 1.1368493616622447e-01;
}
}
......@@ -184,6 +184,28 @@ namespace AMDiS {
~Rodasp() {}
};
class ROSI2PW : public RosenbrockMethod
{
public:
class Creator : public RosenbrockMethodCreator
{
public:
Creator() : RosenbrockMethodCreator() {}
~Creator() {}
RosenbrockMethod* create()
{
return new Rodasp();
}
};
ROSI2PW();
~ROSI2PW() {}
};
}
#endif // AMDIS_ROSENBROCKMETHOD_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment