-
Notifications
You must be signed in to change notification settings - Fork 286
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
Enhance MeshFunction to handle vector variables #3714
Comments
so we can easily get the vec_dim using this->_system_vars.size() as already implemented, however which specific vector vars are we counting to calculate n_vector_vars and the same for scaler vars with n_scalar_vars? |
|
thank you! I guess what i'm confused about is which specific variables am I checking for having those indices, are they in the mesh_function.C file? and is there some sort of map of vector variables and their dimensionality in order to calculate |
Variables are added dynamically to a You might want to consider looking through some of the libMesh example programs; e.g. the distinction between variables in the C++ (might be named in a library .C file) context versus variables in the mathematical (added and named by an application) context is shown in introduction_ex2.C; later introduction_ex4.C is the first to use the returned index of a newly-added variable. |
enhances MeshFunction to better handle vector variables which in turn helps general field transfers work with vectors as well resolves: libMesh#3714 see also: #26084, #26045
enhances MeshFunction to better handle vector variables which in turn helps general field transfers work with vectors as well resolves: libMesh#3714 see also: #26084, #26045
We would resize the output vector to be equal to
vec_dim * n_vector_vars + n_scalar_vars
The text was updated successfully, but these errors were encountered: