From: Stogner, R. H <roy...@ic...> - 2018-11-12 23:31:10
|
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 |