Skip to content

Commit a7fcc6f

Browse files
authored
Merge pull request #1850 from DLR-AMR/src_documentation
Documentation: Fix doxygen errors in src
2 parents 7ac347d + a8a169a commit a7fcc6f

File tree

7 files changed

+32
-19
lines changed

7 files changed

+32
-19
lines changed

src/t8.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,25 @@ typedef uint64_t t8_linearidx_t;
119119
/** The MPI datatype of t8_linearidx_t */
120120
#define T8_MPI_LINEARIDX sc_MPI_UNSIGNED_LONG_LONG
121121

122+
/** The padding size is the size of a void pointer*/
122123
#define T8_PADDING_SIZE (sizeof (void *))
123124
/** Compute the number of bytes that have to be added to a given byte_count
124125
* such that it is a multiple of the padding size */
125126
#define T8_ADD_PADDING(_x) ((T8_PADDING_SIZE - ((_x) % T8_PADDING_SIZE)) % T8_PADDING_SIZE)
126127

127-
/** Define precisions for computations */
128+
/** Define machine precision for computations */
128129
#define T8_PRECISION_EPS SC_EPS
130+
/** Define square root of machine precision for computations */
129131
#define T8_PRECISION_SQRT_EPS sqrt (T8_PRECISION_EPS)
130132

131133
/** Access multidimensional data on one-dimensional C arrays. */
134+
/** Access onedimensional data on one-dimensional C arrays. */
132135
#define T8_1D_TO_1D(nx, i) (i)
136+
/** Access twodimensional data on one-dimensional C arrays. */
133137
#define T8_2D_TO_1D(nx, ny, i, j) ((i) * (ny) + (j))
138+
/** Access threedimensional data on one-dimensional C arrays. */
134139
#define T8_3D_TO_1D(nx, ny, nz, i, j, k) (((i) * (ny) + (j)) * (nz) + (k))
140+
/** Access fourdimensional data on one-dimensional C arrays. */
135141
#define T8_4D_TO_1D(nx, ny, nz, nl, i, j, k, l) ((((i) * (ny) + (j)) * (nz) + (k)) * (nl) + (l))
136142

137143
/** Communication tags used internal to t8code. */
@@ -283,11 +289,12 @@ void
283289
t8_init (int log_threshold);
284290

285291
/** Return a pointer to an array element indexed by a t8_locidx_t.
292+
* \param [in] array The array of elements.
286293
* \param [in] index needs to be in [0]..[elem_count-1].
287-
* \return A void * pointing to entry \a it in \a array.
294+
* \return A void * pointing to entry \a index in \a array.
288295
*/
289296
void *
290-
t8_sc_array_index_locidx (const sc_array_t *array, const t8_locidx_t it);
297+
t8_sc_array_index_locidx (const sc_array_t *array, const t8_locidx_t index);
291298

292299
/* call this at the end of a header file to match T8_EXTERN_C_BEGIN (). */
293300
T8_EXTERN_C_END ();

src/t8_cmesh.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <t8_element.h>
3434
#include <t8_schemes/t8_scheme.h>
3535

36-
/* Forward pointer reference to hidden cmesh implementation.
36+
/** Forward pointer reference to hidden cmesh implementation.
3737
* This reference needs to be known by t8_geometry, hence we
3838
* put it before the include. */
3939
typedef struct t8_cmesh *t8_cmesh_t;
@@ -54,9 +54,11 @@ typedef struct t8_cmesh *t8_cmesh_t;
5454
* edit: This should be achieved now.
5555
*/
5656

57-
/* Forward pointer references to hidden implementations of
58-
* tree and ghost tree. */
57+
/** Forward pointer references to hidden implementations of
58+
* tree. */
5959
typedef struct t8_ctree *t8_ctree_t;
60+
/** Forward pointer references to hidden implementations of
61+
* ghost tree. */
6062
typedef struct t8_cghost *t8_cghost_t;
6163

6264
T8_EXTERN_C_BEGIN ();
@@ -146,7 +148,7 @@ t8_cmesh_set_derive (t8_cmesh_t cmesh, t8_cmesh_t set_from);
146148
* \param [in] mpisize The number of processes.
147149
* \param [in] comm The MPI communicator to use. Its mpisize must match \a mpisize.
148150
* The shared memory type must have been set. Best practice would be
149-
* calling \ref sc_shmem_set_type (comm, T8_SHMEM_BEST_TYPE).
151+
* calling sc_shmem_set_type (comm, T8_SHMEM_BEST_TYPE).
150152
* \return A t8_shmem_array struct that stores \a mpisize + 1 t8_gloidx_t entries.
151153
* \see t8_shmem.h
152154
*/
@@ -751,7 +753,7 @@ t8_cmesh_get_partition_table (t8_cmesh_t cmesh);
751753
/** Calculate the section of a uniform forest for the current rank.
752754
* \param [in] cmesh The cmesh to be considered.
753755
* \param [in] level The uniform refinement level to be created.
754-
* \param [in] scheme The element scheme for which to compute the bounds.
756+
* \param [in] tree_scheme The element scheme for which to compute the bounds.
755757
* \param [out] first_local_tree The first tree that contains elements belonging to the calling processor.
756758
* \param [out] child_in_tree_begin The tree-local index of the first element belonging to the calling processor. Not computed if NULL.
757759
* \param [out] last_local_tree The last tree that contains elements belonging to the calling processor.
@@ -770,7 +772,7 @@ t8_cmesh_uniform_bounds_equal_element_count (t8_cmesh_t cmesh, const int level,
770772
/**
771773
* Calculate the section of a uniform hybrid forest for the current rank. Needed for hybrid meshes, especially
772774
* meshes where not all elements refine into 1:2^dim manner. The section is calculated without assuming such refinement
773-
* and each process computes its number of elements on the given \var level, communicates the number to other processes,
775+
* and each process computes its number of elements on the given \a level, communicates the number to other processes,
774776
* and the correct section is computed based on this information.
775777
*
776778
* \param [in] cmesh The cmesh to be considered.
@@ -819,7 +821,6 @@ t8_cmesh_unref (t8_cmesh_t *pcmesh);
819821
* \param [in,out] pcmesh This cmesh must have a reference count of one.
820822
* It can be in any state (committed or not).
821823
* Then it effectively calls \ref t8_cmesh_unref.
822-
* \param [in] comm A mpi communicator that is valid with \a cmesh.
823824
*/
824825
void
825826
t8_cmesh_destroy (t8_cmesh_t *pcmesh);

src/t8_element.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ T8_EXTERN_C_BEGIN ();
4040
typedef struct t8_element t8_element_t;
4141

4242
/** This array holds the reference coordinates of each vertex of each element.
43-
* It can e.g. be used with the \ref t8_element_reference_coords function.
43+
* It can e.g. be used with the \ref t8_scheme::element_get_reference_coords function.
4444
* Usage: t8_element_corner_ref_coords[eclass][vertex][dimension]
4545
*/
4646
extern const double t8_element_corner_ref_coords[T8_ECLASS_COUNT][T8_ECLASS_MAX_CORNERS][3];
4747

4848
/** This array holds the reference coordinates of the centroid of each element.
49-
* It can e.g. be used with the \ref t8_element_reference_coords function.
49+
* It can e.g. be used with the \ref t8_scheme::element_get_reference_coords function.
5050
* Usage: t8_element_centroid_ref_coords[eclass][dimension]
5151
*/
5252
extern const double t8_element_centroid_ref_coords[T8_ECLASS_COUNT][3];

src/t8_element_shape.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef t8_eclass_t t8_element_shape_t;
4545
/** The maximum number of cornes a 3-dimensional element class can have. */
4646
#define T8_ELEMENT_SHAPE_MAX_CORNERS 8
4747

48-
/* Maximum possible number of corner nodes of an element in a specific dimension */
48+
/** Maximum possible number of corner nodes of an element in a specific dimension */
4949
extern const int t8_element_shape_max_num_corner[T8_ECLASS_MAX_DIM + 1];
5050

5151
/** The number of codimension-one boundaries of an element class. */

src/t8_mat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ t8_mat_mult_vec (const double mat[3][3], const double a[3], double b[3])
114114
/** Apply matrix-matrix multiplication: C = A*B.
115115
* \param [in] A 3x3-matrix.
116116
* \param [in] B 3x3-matrix.
117-
* \param [int,out] C 3x3-matrix.
117+
* \param [in,out] C 3x3-matrix.
118118
*/
119119
static inline void
120120
t8_mat_mult_mat (const double A[3][3], const double B[3][3], double C[3][3])

src/t8_netcdf.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,20 @@ typedef enum t8_netcdf_variable_type {
4747
T8_NETCDF_DOUBLE = 2
4848
} t8_netcdf_variable_type_t;
4949

50-
/* Struct for elementwise data variable for a NetCDF file */
50+
/** Struct for elementwise data variable for a NetCDF file */
5151
typedef struct
5252
{
53+
/** short name of the variable*/
5354
const char *variable_name;
55+
/** long name of the variable*/
5456
const char *variable_long_name;
57+
/** unit of the variable*/
5558
const char *variable_units;
59+
/** datatype of the variable*/
5660
t8_netcdf_variable_type_t datatype;
61+
/** The unique identifier netCDF assigns to this variable once it is defined in the file*/
5762
int var_user_dimid;
63+
/** user data for the variable*/
5864
sc_array_t *var_user_data;
5965
} t8_netcdf_variable_t;
6066

@@ -64,7 +70,6 @@ typedef struct
6470
* \param [in] var_long_name A string describing the variable a bit more and what it is about.
6571
* \param [in] var_unit The units in which the data is provided.
6672
* \param [in] var_data A sc_array_t holding the elementwise data of the variable.
67-
* \param [in] num_extern_netcdf_vars The number of extern user-defined variables which hold elementwise data (if none, set it to 0).
6873
*/
6974
t8_netcdf_variable_t *
7075
t8_netcdf_create_var (t8_netcdf_variable_type_t var_type, const char *var_name, const char *var_long_name,
@@ -75,7 +80,6 @@ t8_netcdf_create_var (t8_netcdf_variable_type_t var_type, const char *var_name,
7580
* \param [in] var_long_name A string describing the variable a bit more and what it is about.
7681
* \param [in] var_unit The units in which the data is provided.
7782
* \param [in] var_data A sc_array_t holding the elementwise data of the variable.
78-
* \param [in] num_extern_netcdf_vars The number of extern user-defined variables which hold elementwise data (if none, set it to 0).
7983
*/
8084
t8_netcdf_variable_t *
8185
t8_netcdf_create_integer_var (const char *var_name, const char *var_long_name, const char *var_unit,
@@ -86,7 +90,6 @@ t8_netcdf_create_integer_var (const char *var_name, const char *var_long_name, c
8690
* \param [in] var_long_name A string describing the variable a bit more and what it is about.
8791
* \param [in] var_unit The units in which the data is provided.
8892
* \param [in] var_data A sc_array_t holding the elementwise data of the variable.
89-
* \param [in] num_extern_netcdf_vars The number of extern user-defined variables which hold elementwise data (if none, set it to 0).
9093
*/
9194
t8_netcdf_variable_t *
9295
t8_netcdf_create_double_var (const char *var_name, const char *var_long_name, const char *var_unit,

src/t8_version.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
#include <t8_config.h>
5252
#endif
5353

54-
/* In order to convert a macro to a string, we
54+
/** In order to convert a macro to a string, we
5555
* need to pass it through these two helper macros. */
5656
#define T8_STRINGIFY(arg) #arg
57+
/** In order to convert a macro to a string, we
58+
* need to pass it through these two helper macros. */
5759
#define T8_STRINGIFY_MIDDLE(arg) T8_STRINGIFY (arg)
5860

5961
/** The T8_VERSION_POINT macro as a string */

0 commit comments

Comments
 (0)