@@ -197,7 +197,7 @@ p4est_lnodes_rank_t;
197197 * note: not touched if there are no hanging faces.
198198 * \return true if any face is hanging, false otherwise.
199199 */
200- static inline int
200+ inline int
201201p4est_lnodes_decode (p4est_lnodes_code_t face_code , int hanging_face [4 ])
202202{
203203 P4EST_ASSERT (face_code >= 0 );
@@ -335,12 +335,16 @@ p4est_lnodes_buffer_t *p4est_lnodes_share_owned_begin (sc_array_t * node_data,
335335 p4est_lnodes_t *
336336 lnodes );
337337
338+ /** p4est_lnodes_shared_owned_end
339+ *
340+ * Complete sharing of the owned node data between processes as initiated in
341+ * \ref p4est_lnodes_share_owned_begin. */
338342void p4est_lnodes_share_owned_end (p4est_lnodes_buffer_t *
339343 buffer );
340344
341- /** Equivalent to calling p4est_lnodes_share_owned_end directly after
342- * p4est_lnodes_share_owned_begin. Use if there is no local work that can be
343- * done to mask the communication cost.
345+ /** Equivalent to calling \ref p4est_lnodes_share_owned_end directly after
346+ * \ref p4est_lnodes_share_owned_begin. Use if there is no local work that can
347+ * be done to mask the communication cost.
344348 */
345349void p4est_lnodes_share_owned (sc_array_t * node_data ,
346350 p4est_lnodes_t * lnodes );
@@ -354,7 +358,7 @@ void p4est_lnodes_share_owned (sc_array_t * node_data,
354358 * \a buffer->recv_buffers entry as described above. The user can then perform
355359 * some arbitrary work that requires the data from all processes that share a
356360 * node (such as reduce, max, min, etc.). When the work concludes, the
357- * \a buffer should be destroyed with p4est_lnodes_buffer_destroy.
361+ * \a buffer should be destroyed with \ref p4est_lnodes_buffer_destroy.
358362 *
359363 * Values of \a node_data are not guaranteed to be sent, and
360364 * \a buffer->recv_buffer entries are not guaranteed to be received until
@@ -364,26 +368,31 @@ void p4est_lnodes_share_owned (sc_array_t * node_data,
364368p4est_lnodes_buffer_t * p4est_lnodes_share_all_begin (sc_array_t * node_data ,
365369 p4est_lnodes_t * lnodes );
366370
371+ /** p4est_lnodes_shared_all_end
372+ *
373+ * Complete sharing of the node data between all relevant processes as initiated
374+ * in \ref p4est_lnodes_share_all_begin. */
367375void p4est_lnodes_share_all_end (p4est_lnodes_buffer_t *
368376 buffer );
369377
370- /** Equivalent to calling p4est_lnodes_share_all_end directly after
371- * p4est_lnodes_share_all_begin. Use if there is no local work that can be
378+ /** Equivalent to calling \ref p4est_lnodes_share_all_end directly after
379+ * \ref p4est_lnodes_share_all_begin. Use if there is no local work that can be
372380 * done to mask the communication cost.
373381 * \return A fully initialized buffer that contains the received data.
374382 * After processing this data, the buffer must be freed with
375- * p4est_lnodes_buffer_destroy.
383+ * \ref p4est_lnodes_buffer_destroy.
376384 */
377385p4est_lnodes_buffer_t * p4est_lnodes_share_all (sc_array_t * node_data ,
378386 p4est_lnodes_t * lnodes );
379387
388+ /** Destroy the buffer filled with node data during a call to
389+ * \ref p4est_lnodes_share_all_end or \ref p4est_lnodes_share_all.*/
380390void p4est_lnodes_buffer_destroy (p4est_lnodes_buffer_t *
381391 buffer );
382392
383393/** Return a pointer to a lnodes_rank array element indexed by a int.
384394 */
385- /*@unused@*/
386- static inline p4est_lnodes_rank_t *
395+ inline p4est_lnodes_rank_t *
387396p4est_lnodes_rank_array_index_int (sc_array_t * array , int it )
388397{
389398 P4EST_ASSERT (array -> elem_size == sizeof (p4est_lnodes_rank_t ));
@@ -395,8 +404,7 @@ p4est_lnodes_rank_array_index_int (sc_array_t * array, int it)
395404
396405/** Return a pointer to a lnodes_rank array element indexed by a size_t.
397406 */
398- /*@unused@*/
399- static inline p4est_lnodes_rank_t *
407+ inline p4est_lnodes_rank_t *
400408p4est_lnodes_rank_array_index (sc_array_t * array , size_t it )
401409{
402410 P4EST_ASSERT (array -> elem_size == sizeof (p4est_lnodes_rank_t ));
@@ -407,8 +415,7 @@ p4est_lnodes_rank_array_index (sc_array_t * array, size_t it)
407415}
408416
409417/** Compute the global number of a local node number */
410- /*@unused@*/
411- static inline p4est_gloidx_t
418+ inline p4est_gloidx_t
412419p4est_lnodes_global_index (p4est_lnodes_t * lnodes , p4est_locidx_t lidx )
413420{
414421 p4est_locidx_t owned = lnodes -> owned_count ;
0 commit comments