On 7/12/21 12:59 AM, andrew jack urombo wrote:
The error I am trying to have suggestions to fix is:

//home/dealii/dealii/examples/step-35a/step-35a.cc: In member function ‘void Step35a::NavierStokesProjection<dim>::refine_mesh(unsigned int, unsigned int)’:// ///home/dealii/dealii/examples/step-35a/step-35a.cc:1057:5: error: there are no arguments to ‘setup_system’ that depend on a template parameter, so a declaration of ‘setup_system’ must be available [-fpermissive]//
// 1057 |     setup_system();//
//      |     ^~~~~~~~~~~~//

Andrew -- you are trying to call a function setup_system(), but your program has no such function. The other errors are all of the same kind: You seem to have copied code from another tutorial program, but it doesn't apply in the case of step-35.

It is like copying a paragraph of the works of Charles Mungoshi verbatim into a novel of Hamutyinei: It doesn't work. It requires understanding both works, the context of both where the paragraph is taken from, and where it is put, and then adaptation to the language, the characters, and the story of the place where you want to put it. It is no different if you want to take code from one program and add it to another one.

Best
 Wolfgang

--
------------------------------------------------------------------------
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/76a1e933-8343-9ac5-3c29-f66863c77ecb%40colostate.edu.

Reply via email to