Skip to content

Commit

Permalink
Remove P3M_DEBUG and associated helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Sep 7, 2019
1 parent 369e58d commit a6794cc
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 373 deletions.
2 changes: 0 additions & 2 deletions doc/sphinx/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,6 @@ looking directly at the code.
- ``COMM_DEBUG`` Output from the asynchronous communication code.
- ``P3M_DEBUG``
- ``VIRTUAL_SITES_DEBUG``
- ``ASYNC_BARRIER`` Introduce a barrier after each asynchronous command completion. Helps
Expand Down
1 change: 0 additions & 1 deletion maintainer/configs/nocheck-maxset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

// DEBUG Switches
#define COMM_DEBUG
#define P3M_DEBUG
#define VIRTUAL_SITES_DEBUG
#ifdef CUDA
#define CUDA_DEBUG
Expand Down
1 change: 0 additions & 1 deletion src/config/features.def
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ NO_INTRA_NB notest
ADDITIONAL_CHECKS

COMM_DEBUG
P3M_DEBUG
VIRTUAL_SITES_DEBUG
CUDA_DEBUG
H5MD_DEBUG
Expand Down
8 changes: 0 additions & 8 deletions src/core/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,3 @@ extern int this_node;
* indicated. In that case, no core dump is generated.
*/
extern int regular_exit;

#ifdef P3M_DEBUG
#define P3M_TRACE(cmd) \
{ cmd; }
#else
/** Equals { cmd } iff P3M_DEBUG is set. */
#define P3M_TRACE(cmd)
#endif
38 changes: 0 additions & 38 deletions src/core/electrostatics_magnetostatics/p3m-common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,6 @@
/* For debug messages */
extern int this_node;

/* Debug function printing p3m structures */
void p3m_p3m_print_local_mesh(p3m_local_mesh l) {
fprintf(stderr, "%d: p3m_local_mesh: dim=(%d,%d,%d), size=%d\n", this_node,
l.dim[0], l.dim[1], l.dim[2], l.size);
fprintf(stderr, "%d: ld_ind=(%d,%d,%d), ld_pos=(%f,%f,%f)\n", this_node,
l.ld_ind[0], l.ld_ind[1], l.ld_ind[2], l.ld_pos[0], l.ld_pos[1],
l.ld_pos[2]);
fprintf(stderr, "%d: inner=(%d,%d,%d) [(%d,%d,%d)-(%d,%d,%d)]\n",
this_node, l.inner[0], l.inner[1], l.inner[2], l.in_ld[0], l.in_ld[1],
l.in_ld[2], l.in_ur[0], l.in_ur[1], l.in_ur[2]);
fprintf(stderr, "%d: margin = (%d,%d, %d,%d, %d,%d)\n", this_node,
l.margin[0], l.margin[1], l.margin[2], l.margin[3], l.margin[4],
l.margin[5]);
fprintf(stderr, "%d: r_margin=(%d,%d, %d,%d, %d,%d)\n", this_node,
l.r_margin[0], l.r_margin[1], l.r_margin[2], l.r_margin[3],
l.r_margin[4], l.r_margin[5]);
}

/* Debug function printing p3m structures */
void p3m_p3m_print_send_mesh(p3m_send_mesh sm) {
int i;
fprintf(stderr, "%d: p3m_send_mesh: max=%d\n", this_node, sm.max);
for (i = 0; i < 6; i++) {
fprintf(stderr,
"%d: dir=%d: s_dim (%d,%d,%d) s_ld (%d,%d,%d) s_ur (%d,%d,%d) "
"s_size=%d\n",
this_node, i, sm.s_dim[i][0], sm.s_dim[i][1], sm.s_dim[i][2],
sm.s_ld[i][0], sm.s_ld[i][1], sm.s_ld[i][2], sm.s_ur[i][0],
sm.s_ur[i][1], sm.s_ur[i][2], sm.s_size[i]);
fprintf(stderr,
"%d: r_dim (%d,%d,%d) r_ld (%d,%d,%d) r_ur (%d,%d,%d) "
"r_size=%d\n",
this_node, sm.r_dim[i][0], sm.r_dim[i][1], sm.r_dim[i][2],
sm.r_ld[i][0], sm.r_ld[i][1], sm.r_ld[i][2], sm.r_ur[i][0],
sm.r_ur[i][1], sm.r_ur[i][2], sm.r_size[i]);
}
}

void p3m_add_block(double const *in, double *out, int const start[3],
int const size[3], int const dim[3]) {
/* fast,mid and slow changing indices */
Expand Down
10 changes: 0 additions & 10 deletions src/core/electrostatics_magnetostatics/p3m-common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,6 @@ typedef struct {

} P3MParameters;

/** Print local mesh content.
* \param l local mesh structure.
*/
void p3m_p3m_print_local_mesh(p3m_local_mesh l);

/** Print send mesh content.
* \param sm send mesh structure.
*/
void p3m_p3m_print_send_mesh(p3m_send_mesh sm);

/** Add values of a 3d-grid input block (size[3]) to values of 3d-grid
* output array with dimension dim[3] at start position start[3].
*
Expand Down
Loading

0 comments on commit a6794cc

Please sign in to comment.