| 1 |
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 2 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 |
#include "config.h" |
| 4 |
|
| 5 |
#include <dune/uggrid/parallel/ddd/dddcontext.hh> |
| 6 |
|
| 7 |
#include <dune/uggrid/parallel/ppif/ppifcontext.hh> |
| 8 |
|
| 9 |
namespace DDD { |
| 10 |
|
| 11 |
DDDContext::DDDContext( |
| 12 |
const std::shared_ptr<PPIF::PPIFContext>& ppifContext, |
| 13 |
const std::shared_ptr<void>& data) |
| 14 |
: ppifContext_(ppifContext) |
| 15 |
, data_(data) |
| 16 |
{ |
| 17 |
/* Nothing. */ |
| 18 |
} |
| 19 |
|
| 20 |
int |
| 21 |
DDDContext::me() const |
| 22 |
{ |
| 23 |
return ppifContext().me(); |
| 24 |
} |
| 25 |
|
| 26 |
int |
| 27 |
DDDContext::procs() const |
| 28 |
{ |
| 29 |
return ppifContext().procs(); |
| 30 |
} |
| 31 |
|
| 32 |
bool |
| 33 |
DDDContext::isMaster() const |
| 34 |
{ |
| 35 |
return ppifContext().isMaster(); |
| 36 |
} |
| 37 |
|
| 38 |
} /* namespace DDD */ |