49 using namespace field_utils;
66 yOutput[i] = yTemp[i] = yInput[i];
76 b31 = 1./12., b32 = 1./4.,
77 b41 = 1./8., b42 = 0., b43 = 3./8.,
78 b51 = 91./500., b52 = -27./100.,
79 b53 = 78./125., b54 = 8./125.,
80 b61 = -11./20., b62 = 27./20., b63 = 12./5.,
81 b64 = -36./5., b65 = 5.,
82 b71 = 1./12., b72 = 0., b73 = 27./32.,
83 b74 = -4./3., b75 = 125./96., b76 = 5./48.;
95 yTemp[i] = yInput[i] + hstep * b21 * dydx[i];
99 yTemp[i] = yInput[i] + hstep * (b31 * dydx[i] + b32 * ak2[i]);
103 yTemp[i] = yInput[i] + hstep * (b41 * dydx[i] + b42 * ak2[i] +
108 yTemp[i] = yInput[i] + hstep * (b51 * dydx[i] + b52 * ak2[i] +
109 b53 * ak3[i] + b54 * ak4[i]);
113 yTemp[i] = yInput[i] + hstep * (b61 * dydx[i] + b62 * ak2[i] +
114 b63 * ak3[i] + b64 * ak4[i] +
119 yOutput[i] = yInput[i] + hstep * (b71 * dydx[i] + b72 * ak2[i] +
120 b73 * ak3[i] + b74 * ak4[i] +
121 b75 * ak5[i] + b76 * ak6[i]);
122 if (dydxOutput && yError)
126 yError[i] = hstep * (dc1 * dydx[i] + dc2 * ak2[i] + dc3 * ak3[i] +
127 dc4 * ak4[i] + dc5 * ak5[i] + dc6 * ak6[i] +
128 dc7 * dydxOutput[i]);