This is a follow up to this question. This answer is great it gives the correct solution and I can plot it, but I have a problem: when I try to integrate the solution in this way:
NIntegrate[(sol[r][[1]]/.{t->t0})r^2,{r,10^7,10^8}]
whith $t_0$ fixed, the solution obtained before is somehow lost and I have sol[r][[1]]=r. How can I integrate sol[r][[1]]?
Maybe I should add that I integrate in a different cell
sol. Link's are OK for further context, leave them in, but please [edit] you question to make it as self contained as possible. Ideally a simple copy&paste should be enough to reproduce your problem. – rhermans Aug 21 '19 at 13:23