Dear Pierre,
Following up your talk: Pierre Jolivet introduction to parallel FreeFEM part 1 - YouTube Pierre Jolivet introduction to parallel FreeFEM part 2 - YouTube
fespace VhG(Thglobal, [P2, P2, P1]);
fespace Vh(Th, [P2, P2, P1]);
int[int] myN2O;
macro ThN2O() myN2O //
int[int] subIdx = restrict(Vh, VhG, myN2O);
My question is:
Once I remesh (after 10 time steps), both Th and Thglobal would change, so do the FEM space VhG and Vh. I realise there is an error for: int[int] subIdx = restrict(Vh, VhG, myN2O);
I did cout<<"===="<<Vh.ndof<<"===="<<VhG.ndof<<endl; and found that both Vh.ndof and VhG.ndof were different after remeshing. However, It seems I am not allowed to redefine the following, even inside a bracket {…}
int[int] myN2O;
macro ThN2O() myN2O //
Please let me know what is the correct thing to do after remeshing?
Best,
Yongxing