Re: [deal.II] step-35 in modified

2022-04-06 Thread SebG
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::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: bang...@colostate.edu 
>>> 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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8557f6bf-585d-4fac-a847-9d2a70e60c25n%40googlegroups.com.


Re: [deal.II] step-35 in modified

2022-04-05 Thread jack urombo
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::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: bang...@colostate.edu
>> www: http://www.math.colostate.edu/~bangerth/
>>
>
-- 




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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c3fa1eb9-3fb6-4487-8c5a-17c8d6e72340n%40googlegroups.com.
/* -
 *
 * Copyright (C) 2009 - 2021 by the deal.II authors
 *
 * This file is part of the deal.II library.
 *
 * The deal.II library is free software; you 

Re: [deal.II] step-35 in modified

2022-03-04 Thread jack urombo
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: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>

-- 




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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/979056a6-d7e9-488b-a7ce-99a29e423007n%40googlegroups.com.


Re: [deal.II] step-35 in modified

2022-03-04 Thread Wolfgang Bangerth

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: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/65c7b383-7b66-b654-ce58-4205badfe42c%40colostate.edu.


Re: [deal.II] step-35 in modified

2022-03-04 Thread jack urombo
Does this replace all the four instances of *std::get *or just the last 
two?

On Friday, 4 March 2022 at 22:39:14 UTC+2 Wolfgang Bangerth wrote:

> On 3/4/22 12:12, jack urombo wrote:
> > /
> >   std::get<0> (SI.iterators)->get_dof_indices 
> (data.vel_local_dof_indices);
> >   std::get<1> (SI.iterators)->get_dof_indices 
> > (data.pres_local_dof_indices);/
>
> The code you are basing yours own is apparently built on an old version 
> of deal.II. I believe that you need to write this as
> std::get<0> (*SI)->get_dof_indices
> now.
>
> Best
> W.
> -- 
> 
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>

-- 




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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/b38964a7-68fd-4ba5-98ad-337e754f4cf8n%40googlegroups.com.


Re: [deal.II] step-35 in modified

2022-03-04 Thread Wolfgang Bangerth

On 3/4/22 12:12, jack urombo wrote:

/
   std::get<0> (SI.iterators)->get_dof_indices (data.vel_local_dof_indices);
   std::get<1> (SI.iterators)->get_dof_indices 
(data.pres_local_dof_indices);/


The code you are basing yours own is apparently built on an old version 
of deal.II. I believe that you need to write this as

  std::get<0> (*SI)->get_dof_indices
now.

Best
 W.
--

Wolfgang Bangerth  email: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/cbbab394-d280-4b57-ce6b-4cce56009475%40colostate.edu.


Re: [deal.II] step-35 in modified

2022-03-04 Thread jack urombo
Still working on modified step-35, but now starting the modification by 
Muhammad Mohebujjaman.

https://github.com/Mohebujjaman/Projection-Method-for-NSE

I want to resolve the issue of the iterators defined here:






















*template voidNavierStokesProjection::assemble_one_cell_of_gradient (const 
IteratorPair ,InitGradScratchData 
,InitGradPerTaskData ){  
scratch.fe_val_vel.reinit (std::get<0> (SI.iterators));  
scratch.fe_val_pres.reinit (std::get<1> (SI.iterators));  std::get<0> 
(SI.iterators)->get_dof_indices (data.vel_local_dof_indices);  std::get<1> 
(SI.iterators)->get_dof_indices (data.pres_local_dof_indices);  
data.local_grad = 0.;  Vector rhs_vector (dim);for (unsigned 
int q=0; q On 8/4/21 4:20 AM, SebG wrote:
> > 
> > a colleague and I have also worked with step-35 and we programmed a 
> > parallelized version whose layout is similar to that of step-32. 
> Currently, 
> > the code is not suitable to be directly used as a tutorial, but, if you 
> are 
> > interested, we could refactor it and send it through github as a 
> step-35b.
>
> Maybe a better option would be the code gallery:
> https://dealii.org/code-gallery
> It would relatively straightforward to get it in there.
>
> Over the past few years, we've started to think of the tutorial more in 
> terms 
> as a place where we *teach deal.II*, and so we tried to focus on programs 
> that 
> illustrate specific aspects of deal.II rather than just a landing pad for 
> general deal.II-based programs. The latter should go into the code gallery 
> instead. Want to give that a try?
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
>
-- 




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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/07f96d0c-ccc5-4ae8-b824-76e635130228n%40googlegroups.com.


errors
Description: Binary data


Re: [deal.II] step-35 in modified

2021-08-04 Thread Wolfgang Bangerth

On 8/4/21 4:20 AM, SebG wrote:


a colleague and I have also worked with step-35 and we programmed a 
parallelized version whose layout is similar to that of step-32. Currently, 
the code is not suitable to be directly used as a tutorial, but, if you are 
interested, we could refactor it and send it through github as a step-35b.


Maybe a better option would be the code gallery:
  https://dealii.org/code-gallery
It would relatively straightforward to get it in there.

Over the past few years, we've started to think of the tutorial more in terms 
as a place where we *teach deal.II*, and so we tried to focus on programs that 
illustrate specific aspects of deal.II rather than just a landing pad for 
general deal.II-based programs. The latter should go into the code gallery 
instead. Want to give that a try?


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e572f6cc-9aba-f768-ecc2-d83d84a045c4%40colostate.edu.


Re: [deal.II] step-35 in modified

2021-08-04 Thread SebG
Dear all,

a colleague and I have also worked with step-35 and we programmed a 
parallelized version whose layout is similar to that of step-32. Currently, 
the code is not suitable to be directly used as a tutorial, but, if you are 
interested, we could refactor it and send it through github as a step-35b.

Best wishes,
Sebastian
Wolfgang Bangerth schrieb am Montag, 12. Juli 2021 um 15:03:54 UTC+2:

> 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::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: bang...@colostate.edu
> 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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/439a0be4-6d7f-4485-b79a-9a93330c22bdn%40googlegroups.com.


Re: [deal.II] step-35 in modified

2021-07-12 Thread Wolfgang Bangerth

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


Re: [deal.II] step-35 in modified

2021-07-12 Thread andrew jack urombo

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::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::process_solution(unsigned int)’//
// 1071 |   void NavierStokesProjection::process_solution(const 
unsigned int cycle)//

//  |    ^~~//
///home/dealii/dealii/examples/step-35a/step-35a.cc:1071:8: note: no 
functions named ‘void 
Step35a::NavierStokesProjection::process_solution(unsigned int)’//
///home/dealii/dealii/examples/step-35a/step-35a.cc:437:9: note: ‘class 
Step35a::NavierStokesProjection’ 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 
     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 '' 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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/fb1baaee-0873-e1f8-5d27-1843933d61c2%40hit.ac.zw.


Re: [deal.II] step-35 in modified

2021-07-11 Thread Wolfgang Bangerth

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 
 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 '' 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.


--

Wolfgang Bangerth  email: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c52d2f5c-1e48-3bc9-4485-33979469b644%40colostate.edu.


[deal.II] step-35 in modified

2021-07-10 Thread andrew jack urombo

Hie.

I am working on flow problems with a model based on the NSE.  The
project involves using adaptive finite elementts, and first steps
are  to:

1) have a mesh adapting strategy

2) compute errors

3) obtain convergence rates

I am basing these on the dealii step-35 and have attached my
attempt to implement these 3 , and  would you to point in the
right direction.

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 ,..."
/

How do you implement this in an amendment to step-35?

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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/ea231fac-4d73-d390-e758-7689bf09c503%40hit.ac.zw.
dealii@e98618c54d0b:~/examples/step-35a$ make
[ 50%] Building CXX object CMakeFiles/step-35a.dir/step-35a.cc.o
/home/dealii/examples/step-35a/step-35a.cc: In member function ‘void 
Step35a::NavierStokesProjection::refine_mesh(unsigned int, unsigned int)’:
/home/dealii/examples/step-35a/step-35a.cc:1050:5: error: expected 
primary-expression before ‘<’ token
 1050 |  function. Next, we
  | ^
/home/dealii/examples/step-35a/step-35a.cc:1050:6: error: expected 
primary-expression before ‘/’ token
 1050 |  function. Next, we
  |  ^
/home/dealii/examples/step-35a/step-35a.cc:1050:7: error: ‘code’ was not 
declared in this scope
 1050 |  function. Next, we
  |   ^~~~
/home/dealii/examples/step-35a/step-35a.cc:1050:13: error: ‘function’ was not 
declared in this scope
 1050 |  function. Next, we
  | ^~~~
/home/dealii/examples/step-35a/step-35a.cc:1050:13: note: suggested 
alternatives:
In file included from /usr/include/c++/9/functional:59,
 from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
 from /usr/include/c++/9/algorithm:71,
 from /usr/include/trilinos/Teuchos_ConfigDefs.hpp:98,
 from /usr/include/trilinos/Teuchos_PromotionTraits.hpp:45,
 from 
/usr/include/trilinos/Sacado_Fad_Exp_GeneralFadTraits.hpp:139,
 from /usr/include/trilinos/Sacado.hpp:52,
 from /usr/local/include/deal.II/base/numbers.h:145,
 from /usr/local/include/deal.II/base/config.h:494,
 from /usr/local/include/deal.II/base/parameter_handler.h:20,
 from /home/dealii/examples/step-35a/step-35a.cc:26:
/usr/include/c++/9/bits/std_function.h:128:11: note:   ‘std::function’
  128 | class function;
  |   ^~~~
In file included from /usr/include/boost/function/function_base.hpp:38,
 from /usr/include/boost/function/detail/prologue.hpp:17,
 from /usr/include/boost/function.hpp:30,
 from /usr/include/boost/signals2/signal.hpp:18,
 from /usr/include/boost/signals2.hpp:19,
 from /usr/local/include/deal.II/base/mpi.h:26,
 from /usr/local/include/deal.II/base/aligned_vector.h:24,
 from /usr/local/include/deal.II/base/table.h:21,
 from 
/usr/local/include/deal.II/lac/block_sparsity_pattern.h:25,
 from /usr/local/include/deal.II/lac/sparsity_tools.h:24,
 from /usr/local/include/deal.II/base/graph_coloring.h:25,
 from