lower = new NeumannBoundaryCondition(downFunc, sMin, true);
upper = new NeumannBoundaryCondition(0.0, sMax, false);
}
PDE1DDataBundle<ConvectionDiffusionPDE1DCoefficients> data = new PDE1DDataBundle<ConvectionDiffusionPDE1DCoefficients>(coef, payoff, lower, upper, grid[0]);
ThetaMethodFiniteDifference solver = new ThetaMethodFiniteDifference(theta[0], false);
res = solver.solve(data);
for (int ii = 1; ii < n; ii++) {
data = new PDE1DDataBundle<ConvectionDiffusionPDE1DCoefficients>(coef, res.getTerminalResults(), lower, upper, grid[ii]);
solver = new ThetaMethodFiniteDifference(theta[ii], false);
res = solver.solve(data);
}