-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Assertion for nearest projection mappings #135
Comments
Good point. This is currently a warning + trigger exit. A rewording of the warning and removing the |
Yes sure, there is not that much work included. The main question for me is here: Should we raise a warning like 'you can just use FSI and nearest projection in combination with stress data' or should we just remove it completely, assuming that people know, what they are configuring? |
I would not rely on the sanity of the user, there are many reasons on why one can misconfigure this. If they misconfigure it, I am not sure if preCICE will complain, so they will falsely think they are doing an NP mapping. In any case, the issue will be obscure. We could still make the error more specific and move into the write/read methods of Force: Line 179 in b1d80ef
|
In case no connectivity is provided, preCICE raises a warning, that it falls back to a NN mapping.
I agree in general, but let's try to place it somewhere, where it is not asserted in every iteration i.e. not in the write methods directly but e.g. in the constructor, if possible. |
In the constructor it would be the best, but it currently does not have enough information. In any case, we should refactor this part in the future to not need to pass the connectivity flag through every function. We currently have such condition checks in many write/read functions (look e.g. here), so I would not worry too much, if we can't avoid it. |
At the time we implemented the nearest projection mapping, we asserted, that it is not used in FSI simulations, since there, the
Solid
participant needs to provide connectivity.However, after introducing #125 , this is not valid any more, since we can use nearest-projection mappings for stress data.
openfoam-adapter/Adapter.C
Lines 150 to 159 in b1d80ef
Either we should remove this Assertion completely or just raise a warning, that this is only relevant for FSI in combination with stress data (which is currently only supported by our deal.II adapter).
The text was updated successfully, but these errors were encountered: