mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
fix warnings
This commit is contained in:
parent
ea1c6ec0af
commit
8ada55ff3e
@ -71,7 +71,7 @@ namespace ngcore
|
|||||||
// sync start time when running in parallel
|
// sync start time when running in parallel
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
NgMPI_Comm comm(MPI_COMM_WORLD);
|
NgMPI_Comm comm(MPI_COMM_WORLD);
|
||||||
for(auto i : Range(5))
|
for([[maybe_unused]] auto i : Range(5))
|
||||||
comm.Barrier();
|
comm.Barrier();
|
||||||
#endif // PARALLEL
|
#endif // PARALLEL
|
||||||
|
|
||||||
@ -489,7 +489,7 @@ namespace ngcore
|
|||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
// Hostnames
|
// Hostnames
|
||||||
NgMPI_Comm comm(MPI_COMM_WORLD);
|
NgMPI_Comm comm(MPI_COMM_WORLD);
|
||||||
auto rank = comm.Rank();
|
// auto rank = comm.Rank();
|
||||||
auto nranks = comm.Size();
|
auto nranks = comm.Size();
|
||||||
if(nranks>1)
|
if(nranks>1)
|
||||||
{
|
{
|
||||||
@ -608,7 +608,7 @@ namespace ngcore
|
|||||||
|
|
||||||
int id;
|
int id;
|
||||||
std::string name;
|
std::string name;
|
||||||
for(auto i : IntRange(n_timers))
|
for([[maybe_unused]]auto i : IntRange(n_timers))
|
||||||
{
|
{
|
||||||
comm.Recv (id, src, 0);
|
comm.Recv (id, src, 0);
|
||||||
comm.Recv (name, src, 0);
|
comm.Recv (name, src, 0);
|
||||||
@ -855,8 +855,8 @@ namespace ngcore
|
|||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
// Hostname
|
// Hostname
|
||||||
NgMPI_Comm comm(MPI_COMM_WORLD);
|
NgMPI_Comm comm(MPI_COMM_WORLD);
|
||||||
auto rank = comm.Rank();
|
// auto rank = comm.Rank();
|
||||||
auto nranks = comm.Size();
|
// auto nranks = comm.Size();
|
||||||
|
|
||||||
std::string hostname;
|
std::string hostname;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user