Dear Jack,

as the compiler error says the variables are not defined in the respective 
scope. You define vL2_error, pL2_error, vH1_error, pH1_error inside the for 
loop from line 1803 to 1861. Outside this loop, the variables are not 
defined anymore. The same applies to the variables vLinfty_error and 
pLinfty_error, lines 1897 to 1923.

Best wishes,
Sebastian

jack urombo schrieb am Mittwoch, 6. April 2022 um 04:02:18 UTC+2:

> I want to generate convergence table for the modified step-35 for a couple 
> of velocity and pressure error norms.
> The problem seems to emanate from my definition of the errors in 
> *process_output()   
> *template.
> The message is:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[ 50%] Building CXX object CMakeFiles/step-35a.dir/step-35a.cc.o 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc: In member function 
> ‘void Step35a::NavierStokesProjection<dim>::compute_errors(unsigned int)’: 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1941:40: error: 
> ‘vL2_error’ was not declared in this scope 1941 | 
>     convergence_table.add_value("vL2", vL2_error);      | 
>                                        ^~~~~~~~~ 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1942:40: error: 
> ‘vH1_error’ was not declared in this scope 1942 | 
>     convergence_table.add_value("vH1", vH1_error);      | 
>                                        ^~~~~~~~~ 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1943:44: error: 
> ‘vLinfty_error’ was not declared in this scope 1943 | 
>     convergence_table.add_value("vLinfty", vLinfty_error);      | 
>                                            ^~~~~~~~~~~~~ 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1944:40: error: 
> ‘pL2_error’ was not declared in this scope; did you mean ‘perror’? 1944 | 
>     convergence_table.add_value("pL2", pL2_error);      | 
>                                        ^~~~~~~~~      | 
>                                        perror 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1945:40: error: 
> ‘pH1_error’ was not declared in this scope; did you mean ‘perror’? 1945 | 
>     convergence_table.add_value("pH1", pH1_error);      | 
>                                        ^~~~~~~~~      | 
>                                        perror 
> /home/jurombo/binaires/dealii/nse/step-35a/step-35a.cc:1946:44: error: 
> ‘pLinfty_error’ was not declared in this scope 1946 | 
>     convergence_table.add_value("pLinfty", pLinfty_error);      | 
>                                            ^~~~~~~~~~~~~ make[2]: *** 
> [CMakeFiles/step-35a.dir/build.make:76: 
> CMakeFiles/step-35a.dir/step-35a.cc.o] Error 1 make[1]: *** 
> [CMakeFiles/Makefile2:90: CMakeFiles/step-35a.dir/all] Error 2 make: *** 
> [Makefile:91: all] Error 2 
> jurombo@MathW15Linux:~/binaires/dealii/nse/step-35a> *
>
> I need suggestions on how to properly define or indications of where I 
> getting wrong. 
> The code is attached.
> On Saturday, 5 March 2022 at 05:42:26 UTC+2 jack urombo wrote:
>
>> Yeah this:
>>   
>>
>>
>> *scratch.fe_val_vel.reinit(std::get<0> (*SI));  
>> scratch.fe_val_pres.reinit(std::get<1> (*SI));  std::get<0> 
>> (*SI)->get_dof_indices(data.vel_local_dof_indices);  std::get<1> 
>> (*SI)->get_dof_indices(data.pres_local_dof_indices);*
>>
>> On Saturday, 5 March 2022 at 01:02:42 UTC+2 Wolfgang Bangerth wrote:
>>
>>> On 3/4/22 14:37, jack urombo wrote: 
>>> > ** 
>>> > 
>>> > Does this replace all the four instances of *std::get.... *or just the 
>>> > last two? 
>>>
>>> All of the ones where you call 
>>> std::get<...>(SI.iterators) 
>>>
>>> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8557f6bf-585d-4fac-a847-9d2a70e60c25n%40googlegroups.com.

Reply via email to