Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/t8.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ t8_productionf (const char *fmt, ...)
/** Log a message, no matter what rank, with priority SC_LP_DEBUG.
* \param [in] fmt Printf-style format string.
* \note This function does not print anything unless t8code was compiled
* in debug mode (--enable-debug, T8_ENABLE_DEBUG was defined).
* in debug mode (using -DCMAKE_BUILD_TYPE=Debug, so T8_ENABLE_DEBUG is defined).
*/
void
t8_debugf (const char *fmt, ...)
Expand Down
3 changes: 2 additions & 1 deletion src/t8_cmesh/t8_cmesh.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,8 @@ t8_cmesh_debug_print_trees ([[maybe_unused]] const t8_cmesh_t cmesh, [[maybe_unu
}

#else
t8_global_errorf ("Do not call t8_cmesh_debug_print_trees if t8code is not compiled with --enable-debug.\n");
t8_global_errorf (
"Do not call t8_cmesh_debug_print_trees if t8code is not compiled with -DCMAKE_BUILD_TYPE=Debug.\n");
#endif /* T8_ENABLE_DEBUG */
}

Expand Down
4 changes: 2 additions & 2 deletions src/t8_vtk/t8_vtk_write_ASCII.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/** Write the forest in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function writes ASCII files and can be used when
* t8code is not configure with "--enable-vtk" and
* t8code is not configured with "-DT8CODE_ENABLE_VTK=ON" and
* \ref t8_forest_vtk_write_file_via_API is not available.
* \param [in] forest The forest.
* \param [in] fileprefix The prefix of the output files.
Expand All @@ -59,7 +59,7 @@ t8_forest_vtk_write_ASCII (t8_forest_t forest, const char *fileprefix, const int
/** Write the cmesh in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function writes ASCII files and can be used when
* t8code is not configure with "--enable-vtk" and
* t8code is not configured with "-DT8CODE_ENABLE_VTK=ON" and
* \ref t8_cmesh_vtk_write_file_via_API is not available.
* \param [in] cmesh The cmesh.
* \param [in] fileprefix The prefix of the output files.
Expand Down
12 changes: 6 additions & 6 deletions src/t8_vtk/t8_vtk_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ T8_EXTERN_C_BEGIN ();
/**
* Translate a forest into a vtkUnstructuredGrid with respect to the given flags.
* This function uses the vtk library. t8code must be configured with
* "--enable-vtk" in order to use it.
* "-DT8CODE_ENABLE_VTK=ON" in order to use it.
* \param [in] forest The forest.
* \param[in, out] unstructuredGrid
* \param [in] write_treeid If true, the global tree id is written for each element.
Expand All @@ -67,7 +67,7 @@ t8_forest_to_vtkUnstructuredGrid (t8_forest_t forest, vtkSmartPointer<vtkUnstruc
/** Write the forest in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function uses the vtk library. t8code must be configured with
* "--enable-vtk" in order to use it.
* "-DT8CODE_ENABLE_VTK=ON" in order to use it.
* Currently does not support pyramid elements.
* \param [in] forest The forest.
* \param [in] fileprefix The prefix of the output files. The meta file will be named \a fileprefix.pvtu .
Expand All @@ -94,7 +94,7 @@ t8_forest_vtk_write_file_via_API (t8_forest_t forest, const char *fileprefix, co
/** Write the forest in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function writes ASCII files and can be used when
* t8code is not configure with "--enable-vtk" and
* t8code is not configured with "-DT8CODE_ENABLE_VTK=ON" and
* \ref t8_forest_vtk_write_file_via_API is not available.
* \param [in] forest The forest.
* \param [in] fileprefix The prefix of the output files.
Expand All @@ -120,7 +120,7 @@ t8_forest_vtk_write_file (t8_forest_t forest, const char *fileprefix, const int
* Write the cmesh in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function uses the vtk library. t8code must be configured with
* "--enable-vtk" in order to use it.
* "-DT8CODE_ENABLE_VTK=ON" in order to use it.
*
* \param[in] cmesh The cmesh
* \param[in] fileprefix The prefix of the output files
Expand All @@ -135,12 +135,12 @@ t8_cmesh_vtk_write_file_via_API (t8_cmesh_t cmesh, const char *fileprefix, sc_MP
* Write the cmesh in .pvtu file format. Writes one .vtu file per
* process and a meta .pvtu file.
* This function writes ASCII files and can be used when
* t8code is not configure with "--enable-vtk" and
* t8code is not configured with "-DT8CODE_ENABLE_VTK=ON" and
* \ref t8_cmesh_vtk_write_file_via_API is not available.
*
* \param[in] cmesh The cmesh
* \param[in] fileprefix The prefix of the output files
* \return int
* \return 0 if successful, non-zero otherwise
*/
int
t8_cmesh_vtk_write_file (t8_cmesh_t cmesh, const char *fileprefix);
Expand Down
2 changes: 1 addition & 1 deletion test/t8_gtest_netcdf_linkage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* In this test we create a netcdf in memory file and close it.
* The purpose of this test is to check whether t8code successfully links
* against netcdf.
* If t8code was not configured with --enable-netcdf then this test
* If t8code was not configured with --DT8CODE_ENABLE_NETCDF=ON then this test
* does nothing and is always passed.
*/

Expand Down
2 changes: 1 addition & 1 deletion test/t8_gtest_occ_linkage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* In this test we create an occ gp_Pnt object.
* The purpose of this test is to check whether t8code successfully links
* against occ.
* If t8code was not configured with --enable-occ then this test
* If t8code was not configured with -DT8CODE_ENABLE_OCC=ON then this test
* does nothing and is always passed.
*/

Expand Down
2 changes: 1 addition & 1 deletion test/t8_gtest_vtk_linkage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* linked.
* The purpose of this test is to check whether t8code successfully links
* against vtk.
* If t8code was not configured with --enable-vtk then this test
* If t8code was not compiled with -DT8CODE_ENABLE_VTK=ON then this test
* does nothing and is always passed.
*/
#include <gtest/gtest.h>
Expand Down
2 changes: 1 addition & 1 deletion tutorials/general/t8_step3_adapt_forest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ t8_step3_adapt_callback (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_
const struct t8_step3_adapt_data *adapt_data = (const struct t8_step3_adapt_data *) t8_forest_get_user_data (forest);
double dist; /* Will store the distance of the element's midpoint and the sphere midpoint. */

/* You can use T8_ASSERT for assertions that are active in debug mode (when configured with --enable-debug).
/* You can use T8_ASSERT for assertions that are active in debug mode (when compiled with -DCMAKE_BUILD_TYPE=Debug).
* If the condition is not true, then the code will abort.
* In this case, we want to make sure that we actually did set a user pointer to forest and thus
* did not get the NULL pointer from t8_forest_get_user_data.
Expand Down
2 changes: 1 addition & 1 deletion tutorials/general/t8_step7_interpolation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ t8_step7_adapt_callback (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_
const struct t8_step7_adapt_data *adapt_data = (const struct t8_step7_adapt_data *) t8_forest_get_user_data (forest);
double dist; /* Will store the distance of the element's midpoint and the sphere midpoint. */

/* You can use T8_ASSERT for assertions that are active in debug mode (when configured with --enable-debug).
/* You can use T8_ASSERT for assertions that are active in debug mode (when compiled with -DCMAKE_BUILD_TYPE=Debug).
* If the condition is not true, then the code will abort.
* In this case, we want to make sure that we actually did set a user pointer to forest and thus
* did not get the NULL pointer from t8_forest_get_user_data.
Expand Down