NDSolve::stpmax
NDSolveValue::stpmax
ParametricNDSolve::stpmax
ParametricNDSolveValue::stpmax
A warning message is generated because there is no choice for the number of steps that will satisfy all of the indicated options:
NDSolve[{D[u[x, t], t] == D[u[x, t], x, x], u[x, 0] == Exp[-100 x ^ 2], u[-1, t] == u[1, t]}, u, {x, -1, 1}, {t, 2}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", MaxPoints -> 1000, "StartingPoints" -> 1200}}]NDSolve[{D[u[x, t], t] == D[u[x, t], x, x], u[x, 0] == Exp[-100 x ^ 2], u[-1, t] == u[1, t]}, u, {x, -1, 1}, {t, 2}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", MaxPoints -> 1200, "StartingPoints" -> 1000}}]