Just a shot in the dark: Will it work if you set your FE_Nothing elements to be dominating? https://www.dealii.org/developer/doxygen/deal.II/classFE__Nothing.html#a69940158d653b46222943f09c6b25a4c
Marc On Thursday, January 18, 2024 at 12:09:02 PM UTC-7 luis....@gmail.com wrote: > Hello Wolfgang, > > Yes, I am still getting the same error even using > cell->set_future_fe_index(0) before executing the refinement. > I have attached the error and all files needed to reproduce it, but > anything that concerns us is in main.cc. > > the code is a mix between step-26 and step-27 to add elements during the > computation. > > To do so, I set some elements with FE_Nothing and the beggining and then, > inside the method refine_mesh, I activate them at a given time_step using > set_future_fe_index as suggested by Bruno before executing > triangulation.execute_coarsening_and_refinement() > See: > if (timestep_number == 25) activate_FEs(); > triangulation.execute_coarsening_and_refinement(); > setup_system(); > solution_trans.interpolate(previous_solution, solution); > > when performing the interpolation with > solution_trans.interpolate(previous_solution, > solution); it gives me the error. > > Thank you for the time, > El jueves, 18 de enero de 2024 a las 18:15:08 UTC, Wolfgang Bangerth > escribió: > >> On 1/18/24 03:28, luis miguel reig buades wrote: >> > >> > However, it does not seem to solve the interpolation problem, I am >> assuming >> > the error happens because I did not assign an initial solution to the >> > activated elements. >> > Is there any way to assign the activated elements a solution as I am >> looping >> > through the cells and activating them? I have not been able to find >> this >> >> Are you saying that you continue to get the same error, even with the >> switched >> order of operations? Can you show us the code you use, and the error you >> get? >> >> 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/79ef4a29-a108-46fa-9fb7-d49890737129n%40googlegroups.com.