Re: [deal.II] Extension of Step-18

2023-09-14 Thread Wolfgang Bangerth

On 9/14/23 20:13, Raghunandan Pratoori wrote:


The above section of code gives an error during the compress operation. The 
error message is -
‘class std::vectorstd::allocator > >’ has no member named 
‘compress’


The above error message is expected as the compress operation is not defined 
for that datatype. However, I am unsure how to do the compress operation, as 
mentioned in Step-18. Please advice.


Well, as you already note, there is no compress() member function on 
std::vector. But you don't want to call compress() on the std::vector anyway, 
you want to call it on the individual TrilinosWrappers::MPI::Vector objects 
that are stored in the std::vector. The following should do:


  for (unsigned int i=0; ihttp://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/b694a626-536d-a5ff-4b9f-28105b8d222f%40colostate.edu.


Re: [deal.II] Extension of Step-18

2023-09-14 Thread Raghunandan Pratoori
Hello Dr. Bangerth,

I apologize for the poor communication from my side.
Below are the changes I made to the refinement process in Step-18 in red:

typedef TrilinosWrappers::MPI::Vector vectorType;
std::vector>   history_field (dim, std::vector< 
Vector >(dim));
std::vector< std::vector< Vector > >
 local_history_values_at_qpoints (dim, std::vector< 
Vector >(dim)),
 local_history_fe_values (dim, std::vector< Vector 
>(dim));
for (unsigned int i=0; i > >’ has no member 
named ‘compress’

The above error message is expected as the compress operation is not 
defined for that datatype. However, I am unsure how to do the compress 
operation, as mentioned in Step-18. Please advice.

Best,
Raghunandan.
On Thursday, September 14, 2023 at 6:49:11 PM UTC-5 Wolfgang Bangerth wrote:

> On 9/14/23 15:50, Raghunandan Pratoori wrote:
> > 
> > It took me some time to get around to trying it out. I am unable to 
> figure out 
> > how to compress the vector.
> > The simple 'history_field.compress(VectorOperation::add);' did not work 
> as 
> > expected. Can you tell me how to use it for type 
> > std::vector>?
>
> Pratoori:
> you will have to be more specific in explaining what doesn't work. "did 
> not 
> work" is not enough for me to understand what you are doing, nor what is 
> going 
> wrong. It's as if you were saying "I've tried to prove the Riemann 
> hypothesis, 
> but the proof doesn't work. Can you tell me how to fix it?" without 
> showing 
> what you already did :-)
>
> Show us the code and the error message, and then we can perhaps help!
>
> 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/351857f8-b2fd-4c00-9463-1638a808b1a0n%40googlegroups.com.


Re: [deal.II] Is It Possible to Make Step-46 Run in Parallel?

2023-09-14 Thread Lex Lee
"You record constraints in an AffineConstraints object,
and that continues to be the work in parallel as well" 

Thanks a lot, Prof. Bangerth.  I may misunderstand the error messages. I 
will try to debug on other parts and keep this topic updated.  

Best,
Lex

On Wednesday, September 13, 2023 at 10:58:12 PM UTC-7 Wolfgang Bangerth 
wrote:

>
> Lex:
>
> > I developed my FSI code based on the FENothing framework used in 
> step-46. 
> > Step-46 shows how to identify the interface between the fluid and solid 
> > domain. Also it shows how to set constraints on variables and how to 
> assemble 
> > terms on the interface. I just used the same logic in my FSI code.
> > 
> > In step-46, the interface handling part gets access to the cells, 
> > cell->neighbours, neighbour of neighbour and global index of the face 
> grids on 
> > the interface. However, things are much different and difficult in 
> parallel 
> > mode, as a cell is locally owned but its neighbour may be not (ghost 
> cells). 
> > In a ghost cell, values are only readable. Therefore, it seems 
> impossible to 
> > set constraints / write values on index of neighbour cells.
>
> No, that is not true. You record constraints in an AffineConstraints 
> object, 
> and that continues to be the work in parallel as well -- see step-40, for 
> example.
>
>
> > I have tried many ways to fix this problem but failed. Do you guys have 
> the 
> > similiar experience on this problem? If yes, how to fix it? Any 
> suggestion?
> You need to be specific about how you tried to fix the problem, and what 
> the 
> error message (or other way of failure) is.
>
> 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/4b58b234-b7bf-418c-9006-fbc4f1e7d4c5n%40googlegroups.com.


Re: [deal.II] Extension of Step-18

2023-09-14 Thread Wolfgang Bangerth

On 9/14/23 15:50, Raghunandan Pratoori wrote:


It took me some time to get around to trying it out. I am unable to figure out 
how to compress the vector.
The simple 'history_field.compress(VectorOperation::add);' did not work as 
expected. Can you tell me how to use it for type 
std::vector>?


Pratoori:
you will have to be more specific in explaining what doesn't work. "did not 
work" is not enough for me to understand what you are doing, nor what is going 
wrong. It's as if you were saying "I've tried to prove the Riemann hypothesis, 
but the proof doesn't work. Can you tell me how to fix it?" without showing 
what you already did :-)


Show us the code and the error message, and then we can perhaps help!

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/8614306f-1a8e-5079-b16f-d4bbe361fff8%40colostate.edu.


Re: [deal.II] Extension of Step-18

2023-09-14 Thread Raghunandan Pratoori
Thank you, Dr. Bangerth, for the prompt reply.

It took me some time to get around to trying it out. I am unable to figure 
out how to compress the vector.
The simple 'history_field.compress(VectorOperation::add);' did not work as 
expected. Can you tell me how to use it for type  
std::vector>?

Best,
Raghunandan.

On Monday, September 4, 2023 at 9:59:49 PM UTC-5 Wolfgang Bangerth wrote:

> On 9/4/23 20:57, Raghunandan Pratoori wrote:
> > I want to clarify if the below is the correct implementation of it -
> > 
> > std::vector>> 
> > history_field_stress (dim, 
> > std::vector>(dim)),
> > 
> > 
> > history_field.compress(VectorOperation::add);
> > 
>
> A good first test is to try and see what happens! In fact, that's often 
> faster 
> than writing a question, and then waiting to see whether anyone answers it 
> :-)
>
> 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/cb7f90be-54fc-4ea5-a4ad-3e15cf78f355n%40googlegroups.com.


Re: [deal.II] "sudo" command not working

2023-09-14 Thread Athul Shaji
Hello,

This is not an issue with deal.ii.
You have to contact the administrator for your cluster or server. He has to
add you to the sudo users list.

Regards,
Athul

On Thu, 14 Sept 2023, 15:16 ME22D001 Abhishek Nath Thakur, <
me22d...@iittp.ac.in> wrote:

> Hello all,
>
> I am getting this problem while installing any thing in ubuntu
> terminal(Version 20.04)
>
>
>
> *"abhishek@administrator-DIT400TR-55L:~$ sudo apt-get install gcc++[sudo]
> password for abhishek: abhishek is not in the sudoers file.  This incident
> will be reported."*
>
> Any help would be appreciated.
>
> Thanks in advance.
>
> --
> 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/78db96dc-e132-42e6-9d01-8d7736fd377fn%40googlegroups.com
> 
> .
>

-- 
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/CANDM7bASXGy%3D7-8_6xtpuh%3D1TbtseRhm_k_Nxb_PoQnZjg%3DAwA%40mail.gmail.com.


[deal.II] "sudo" command not working

2023-09-14 Thread ME22D001 Abhishek Nath Thakur
Hello all,

I am getting this problem while installing any thing in ubuntu 
terminal(Version 20.04)



*"abhishek@administrator-DIT400TR-55L:~$ sudo apt-get install gcc++[sudo] 
password for abhishek: abhishek is not in the sudoers file.  This incident 
will be reported."*

Any help would be appreciated.

Thanks in advance.

-- 
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/78db96dc-e132-42e6-9d01-8d7736fd377fn%40googlegroups.com.


Re: [deal.II] Unable to mpirun step-17 and step-18

2023-09-14 Thread Ananya Bijaya
Thanks, Wolfgang.
I can follow the technique used in step-42 for parallel implementation.


On Thu, Sep 14, 2023 at 11:22 AM Wolfgang Bangerth 
wrote:

>
> Ananya:
>
> > I am running  "cmake ." and "make", followed by "mpirun -np 4 ./step-17
> " in
> > the step directory.
> > Mpirun is working on step-40 and step-42, but not on step-17 and step-18.
>
> That makes sense, because steps 40 and 42 do not use METIS.
>
>
> > I have also installed Dealii 9.5 using Candii. In this installation I am
> able
> > to mpirun step-17
> > and step-18. Though I was preferring the spack installation because it
> > installs,  by default,  most of
> > the dependencies required for running Dealii tutorials.
>
> I don't know what to suggest. If spack miscompiles METIS, you cannot use
> it.
> It is, fortunately, not widely used in deal.II -- only the
> parallel::shared::Triangulation class uses it.
>
> 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 a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/-ogX1Bi243M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/3bcc779c-501f-cffc-1053-9178d4a56faa%40colostate.edu
> .
>

-- 
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/CAERGViOtAq_SV9k0Xm2LVkmoaAYVJDkWYpmgh8-oazG9y%3DGgvQ%40mail.gmail.com.