Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Nov 8, 2024
1 parent ad94723 commit 2ea6808
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Omega_h_dbg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ extern bool dbg_print_global;

namespace Omega_h {
#ifdef OMEGA_H_USE_CUDA
OMEGA_H_INLINE std::string proc() { return ""; }
OMEGA_H_INLINE std::string rank() { return ""; }
OMEGA_H_INLINE std::string size() { return ""; }
OMEGA_H_INLINE const char* proc() { return ""; }
OMEGA_H_INLINE const char* rank() { return ""; }
OMEGA_H_INLINE const char* size() { return ""; }
#else
OMEGA_H_INLINE std::string proc() { std::ostringstream _oss_; _oss_ << "P" << (DBG_COMM ? DBG_COMM->rank() : 0) << ": "; return _oss_.str(); }
OMEGA_H_INLINE std::string rank() { std::ostringstream _oss_; _oss_ << (DBG_COMM ? DBG_COMM->rank() : 0); return _oss_.str(); }
Expand Down Expand Up @@ -88,9 +88,9 @@ OMEGA_H_INLINE std::string size() { std::ostringstream _oss_; _oss_ << (DBG_COMM
#else // OMEGA_H_DBG

namespace Omega_h {
OMEGA_H_INLINE std::string proc() { return "P0: "; }
OMEGA_H_INLINE std::string rank() { return "0"; }
OMEGA_H_INLINE std::string size() { return "1"; }
OMEGA_H_INLINE const char* proc() { return ""; }
OMEGA_H_INLINE const char* rank() { return ""; }
OMEGA_H_INLINE const char* size() { return ""; }
}

# define TASK_0_cout std::cout
Expand Down

0 comments on commit 2ea6808

Please sign in to comment.