-
Notifications
You must be signed in to change notification settings - Fork 97
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
Periodic BCs #263
Comments
We decided to implement two different methods for every constructor of the WARNING: Method definition (::Type{Gridap.Geometry.CartesianDescriptor{D, T, F} where
F<:Function where T where D})(Gridap.TensorValues.MultiValue{Tuple{D}, T, 1, D} where T,
Tuple{Vararg{T, D}} where T, Any) where {D} in module Geometry at
.../src/Geometry/CartesianGrids.jl:37 overwritten at .../src/Geometry/CartesianGrids.jl:68.
** incremental compilation may be fatally broken for this module ** To keep backward compatibility only |
* Added field isperiodic to cartesian descriptor * Modified constructors of CartesianDescriptor and CartesianDiscreteModel * Added new method for _generate_cell_to_vertices_from_grid in UnstructuredGrids.jl that implements the grid numbering for periodic BC. * Added test PeriodicBC.jl in Geometry tests to check proper numbering of vefs with periodic BC. * Added tests PeriodicDarcy.jl and PeriodicCoupledPoisson.jl to check both with periodic BC.
Yes you are right. I would do the following:
Does it solve the problem? |
We can even mark as "Deprecated" functions in step 3 and remove them in the next breaking release. |
As @fverdugo knows, I lobby kwargs for constructors of non-obvious objects that are exposed to the user. They provide extensibility without affecting backward compatibility. I would not use optional arguments in these constructors to be used by users, it is a mess, and it affects backward compatibility when you want extensions. |
* Converted optional arguments of CartesianDescriptor constructors to key-word arguments. * Added deprecated signatures for backwards compatibility. * Uptated tests to use new signatures. * Updated News.md.
Ok, done! Thanks for the tips. |
closed via PR #266 |
Draft of the changes in code related with
CartesianDescriptor
to include periodic BCsThe text was updated successfully, but these errors were encountered: