Re: [deal.II] Deleted move constructors and inability to change objects post-initialization

2022-06-23 Thread Wolfgang Bangerth
Lucas, Is there any way to initialize a Simulation object (akin to the StepX objects found in the tutorials) in a method and then return it via std::move()? Or, barring that, is there a way to reinitialize an FESystem member variable to have a different degree? In the former case I run

[deal.II] Deleted move constructors and inability to change objects post-initialization

2022-06-23 Thread Lucas Myers
Hi everyone, Is there any way to initialize a Simulation object (akin to the StepX objects found in the tutorials) in a method and then return it via std::move()? Or, barring that, is there a way to reinitialize an FESystem member variable to have a different degree? In the former case I run

Re: [deal.II] mesh_generator

2022-06-23 Thread Wolfgang Bangerth
On 6/24/22 00:22, LY XXXiao wrote: I have already a basic mesh with 120 cells, and I only want to refine one element among them, so I set a refine_flag for this element. But the refinement does not happen ?? Is there anything else that I missed? I learned step 1 and step 6 for meshing

Re: [deal.II] mesh_generator

2022-06-23 Thread Simon Sticko
Hi, Did you call triangulation.execute_coarsening_and_refinement(); after setting the refinement flag? Best, Simon On 23/06/2022 17:22, LY XXXiao wrote: Hi there, Has anyone experienced this issue in mesh refinement: I have already a basic mesh with 120 cells, and I only want to refine

[deal.II] mesh_generator

2022-06-23 Thread LY XXXiao
Hi there, Has anyone experienced this issue in mesh refinement: I have already a basic mesh with 120 cells, and I only want to refine one element among them, so I set a refine_flag for this element. But the refinement does not happen ?? Is there anything else that I missed? I learned step 1