On Mon, 12 Nov 2018, Yuxiang Wang wrote:

> Quick question: how do I get the n_nodes for a certain boundary set (given
> bid)? I know I can do:
>
> MeshBase::const_node_iterator nodeit =
> mesh.bid_nodes_begin(NODE_BOUNDARY_ID);
> const MeshBase::const_node_iterator node_end =
> mesh.bid_nodes_end(NODE_BOUNDARY_ID);
>
> to loop through all the nodes, but would there be a way to find out how
> many nodes are there in the same set?

Just std::distance, I believe.
---
Roy


_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to