mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2274 from atgeirr/fix-auto-in-prototype
Change auto in prototype to template argument.
This commit is contained in:
commit
558873bc80
@ -755,8 +755,8 @@ ADD_PACK_PROTOTYPES(WellTracerProperties)
|
|||||||
ADD_PACK_PROTOTYPES(WList)
|
ADD_PACK_PROTOTYPES(WList)
|
||||||
ADD_PACK_PROTOTYPES(WListManager)
|
ADD_PACK_PROTOTYPES(WListManager)
|
||||||
|
|
||||||
template<class T>
|
template<class T, class C>
|
||||||
const T& packAndSend(const T& in, const auto& comm)
|
const T& packAndSend(const T& in, const C& comm)
|
||||||
{
|
{
|
||||||
if (comm.size() == 0)
|
if (comm.size() == 0)
|
||||||
return in;
|
return in;
|
||||||
@ -770,8 +770,8 @@ const T& packAndSend(const T& in, const auto& comm)
|
|||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T, class C>
|
||||||
void receiveAndUnpack(T& result, const auto& comm)
|
void receiveAndUnpack(T& result, const C& comm)
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
comm.broadcast(&size, 1, 0);
|
comm.broadcast(&size, 1, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user