Hello,
I came across two typos in libmesh code as follows. The second one is
obviously a bug.
diff --git a/include/error_estimation/error_estimator.h
b/include/error_estimation/error_estimator.h
index 997975ef..c5f8bf01 100644
--- a/include/error_estimation/error_estimator.h
+++ b/include/error_estimation/error_estimator.h
@@ -155,7 +155,7 @@ protected:
* \p error_per_cell from each processor and combines
* them to get the global error vector.
*/
- void reduce_error (std::vector<float> & error_per_cell,
+ void reduce_error (std::vector<ErrorVectorReal> & error_per_cell,
const Parallel::Communicator & comm
LIBMESH_CAN_DEFAULT_TO_COMMWORLD) const;
};
diff --git a/src/mesh/mesh_refinement_flagging.C
b/src/mesh/mesh_refinement_flagging.C
index fa8cc9d6..7900a08e 100644
--- a/src/mesh/mesh_refinement_flagging.C
+++ b/src/mesh/mesh_refinement_flagging.C
@@ -481,7 +481,8 @@ void MeshRefinement::flag_elements_by_elem_fraction
(const ErrorVector & error_p
libmesh_assert_less_equal (_coarsen_fraction, 1);
// The number of active elements in the mesh
- const dof_id_type n_active_elem = _mesh.n_elem();
+ const dof_id_type n_active_elem = _mesh.n_active_elem();
--Junchao Zhang
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users