NDSolve::tvar
NDSolveValue::tvar
ParametricNDSolve::tvar
ParametricNDSolveValue::tvar
An error occurs because the value of the TemporalVariable option is the dependent variable rather than one of the two independent variables:
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, TemporalVariable -> u}]