@@ -481,10 +481,10 @@ void EquationSystems::build_variable_names (std::vector<std::string> & var_names
481
481
482
482
// Here, we're assuming the number of vector components is the same
483
483
// as the mesh dimension. Will break for mixed dimension meshes.
484
- unsigned int dim = this -> get_mesh ().mesh_dimension ();
484
+ unsigned int dim = this -> get_mesh ().spatial_dimension ();
485
485
unsigned int nv = n_scalar_vars + dim * n_vector_vars ;
486
486
487
- // We'd better not have more than dim*his ->n_vars() (all vector variables)
487
+ // We'd better not have more than dim*this ->n_vars() (all vector variables)
488
488
// Treat the NodeElem-only mesh case as dim=1
489
489
libmesh_assert_less_equal ( nv , (dim > 0 ? dim : 1 )* this -> n_vars () );
490
490
@@ -577,7 +577,7 @@ EquationSystems::build_parallel_solution_vector(const std::set<std::string> * sy
577
577
// This function must be run on all processors at once
578
578
parallel_object_only ();
579
579
580
- const unsigned int dim = _mesh .mesh_dimension ();
580
+ const unsigned int dim = _mesh .spatial_dimension ();
581
581
const dof_id_type max_nn = _mesh .max_node_id ();
582
582
583
583
// allocate vector storage to hold
@@ -1063,7 +1063,7 @@ EquationSystems::find_variable_numbers
1063
1063
std ::string name ;
1064
1064
1065
1065
const std ::vector < std ::string > component_suffix = {"_x" , "_y" , "_z" };
1066
- unsigned int dim = _mesh .mesh_dimension ();
1066
+ unsigned int dim = _mesh .spatial_dimension ();
1067
1067
libmesh_error_msg_if (dim > 3 , "Invalid dim in find_variable_numbers" );
1068
1068
1069
1069
// Now filter through the variables in each system and store the system index and their index
@@ -1215,7 +1215,7 @@ EquationSystems::build_parallel_elemental_solution_vector (std::vector<std::stri
1215
1215
// Even for the case where a variable is not active on any subdomain belonging to the
1216
1216
// processor, we still need to know this number to update 'var_ctr'.
1217
1217
const unsigned int n_comps =
1218
- (system .variable_type (var ) == type [1 ]) ? _mesh .mesh_dimension () : 1 ;
1218
+ (system .variable_type (var ) == type [1 ]) ? _mesh .spatial_dimension () : 1 ;
1219
1219
1220
1220
// Loop over all elements in the mesh and index all components of the variable if it's active
1221
1221
for (const auto & elem : _mesh .active_local_element_ptr_range ())
0 commit comments