> void Step6<dim>::read_solution (const unsigned int cycle) const
> {
> int n = 0;
> 
> ifstream File;
> File.open("solution-" + std::to_string(cycle) + ".txt");
> while(!File.eof())
> {
> File >> solution[n];

In this line, you are trying to write into 'solution[n]', but the function you 
are in is marked as 'const' and consequently the 'solution' vector is 'const'. 
You can't write into const objects.

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                            www: http://www.math.colostate.edu/~bangerth/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to