modifications for constraints for problems with multiple unknowns#113
modifications for constraints for problems with multiple unknowns#113
Conversation
|
Thanks a lot for this fix. I looked at it for a while and I think that this is currently the only solution to fix this. But I would really prefer that the restrictions are global algebraic restrictions, just like FES = Product_FES(FES1, FES2)for two unknowns. Then, the FES = Power_FES(FES1, 3)for Then, the, e.g., coupling matrices have global size and only entries in the corresponding index ranges. But this is something for later discussions and |
|
Yes, such a product spaces would be interesting and probably can replace the ncomponents parameter in some FESpaces who are just products of scalar spaces, but as you said, that is definitely something that needs to be implemented in the 2.0 version of ExtendableFEMBase first. However, isn't the situation similar to the assembly of operators who also just know their unknown-dependency. That's why the assembly function gets the SolverConfiguration which knows the size of the problem and the offsets for all unknowns and then all information can be combined to write into the correct blocks of matrices and vectors, or, as we maybe should do it in the case of restrictions, we could use the information to scale the coupling matrix (or one dimension of the B matrix in general) to the correct global size. |
Example285 now supports periodic boundary conditions CompressedRestriction needs dummy assemble! function (otherwise crashes when linear problem is solved again with same ProblemDescription but without providing old SolverConfiguration), improved show of Unknowns
86665c9 to
c4c6bb7
Compare
attempt to fix issue #112 , seems to work but needs polishing