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();//
//      |     ^~~~~~~~~~~~//
///home/dealii/dealii/examples/step-35a/step-35a.cc:1057:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)// ///home/dealii/dealii/examples/step-35a/step-35a.cc:1059:32: error: ‘previous_solution’ was not declared in this scope// // 1059 |     solution_trans.interpolate(previous_solution, output_results);//
//      |                                ^~~~~~~~~~~~~~~~~//
///home/dealii/dealii/examples/step-35a/step-35a.cc:1060:5: error: ‘constraints’ was not declared in this scope//
// 1060 |     constraints.distribute(output_results);//
//      |     ^~~~~~~~~~~//
///home/dealii/dealii/examples/step-35a/step-35a.cc: At global scope://
///home/dealii/dealii/examples/step-35a/step-35a.cc:1071:8: error: no declaration matches ‘void Step35a::NavierStokesProjection<dim>::process_solution(unsigned int)’// // 1071 |   void NavierStokesProjection<dim>::process_solution(const unsigned int cycle)//
//      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~//
///home/dealii/dealii/examples/step-35a/step-35a.cc:1071:8: note: no functions named ‘void Step35a::NavierStokesProjection<dim>::process_solution(unsigned int)’// ///home/dealii/dealii/examples/step-35a/step-35a.cc:437:9: note: ‘class Step35a::NavierStokesProjection<dim>’ defined here//
//  437 |   class NavierStokesProjection//
//      |         ^~~~~~~~~~~~~~~~~~~~~~//
//make[3]: *** [CMakeFiles/step-35a.dir/build.make:63: CMakeFiles/step-35a.dir/step-35a.cc.o] Error 1//
/

On 11/07/2021 21:24, Wolfgang Bangerth wrote:
On 7/10/21 4:23 AM, andrew jack urombo wrote:

I have attached the  amended code here, and would like suggestions on how to make it work.

The error is that at line 1050 /"a function is expected at ,..." /

Andrew,
the line in question is this one, in the middle of a comment:

    // Now everything is ready, so do the refinement and recreate the DoF
    // structure on the new grid, and finally initialize the matrix structures
    // and the new vectors in the <code>
    </code> function. Next, we
    // actually perform the interpolation of the solution from old to new
    // grid. The final step is to apply the hanging node constraints to the
    // solution vector, i.e., to make sure that the values of degrees of

It complains about the '<code>' part, which is simply not valid C++ -- this is meant to be a part of the commentary, not the code itself. Just comment it out.

Best
 W.


--
mathematical sciences
15015 Ganges road
p.o box be277
belvedere
harare
zimbabwe

business:   +263.24.274.1423-36
fax : +263.24.274.1408
mobile zw1: +263.77.283.8167
mobile zw2: +263.77.412.0815
mobile ind: +91.844.867.9322
home : +263.68.215.3910


--




The information in this message is confidential and legally
privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If received in error, please accept our apologies and notify the sender immediately. You must also delete the original message from your machine. If you are not the intended recipient, any use, disclosure, copying, distribution or action taken in reliance of it, is prohibited and may be unlawful. The information, attachments, opinions or advice contained in this email are not the views or opinions of Harare Institute of Technology, its subsidiaries or affiliates. Although this email and any attachments are believed to be free of any virus or other defects which might affect any computer or IT system into which they are received, no responsibility is accepted by Harare Institute of Technology and/or its subsidiaries for any loss or damage arising in any way from the receipt or use thereof.

--
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/fb1baaee-0873-e1f8-5d27-1843933d61c2%40hit.ac.zw.

Reply via email to