Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
dd73308c
Commit
dd73308c
authored
Jun 12, 2012
by
Thomas Witkowski
Browse files
Added ROSI2PW rosenbrock method.
parent
4092b74a
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/CreatorMap.cc
View file @
dd73308c
...
...
@@ -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
);
}
...
...
AMDiS/src/time/RosenbrockMethod.cc
View file @
dd73308c
...
...
@@ -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
;
}
}
AMDiS/src/time/RosenbrockMethod.h
View file @
dd73308c
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment