mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove unused templates
This commit is contained in:
parent
1e7816a194
commit
9cf815ab95
@ -659,31 +659,6 @@ ADD_PACK_PROTOTYPES(WellTracerProperties)
|
||||
ADD_PACK_PROTOTYPES(WList)
|
||||
ADD_PACK_PROTOTYPES(WListManager)
|
||||
|
||||
template<class T, class C>
|
||||
const T& packAndSend(const T& in, const C& comm)
|
||||
{
|
||||
if (comm.size() == 1)
|
||||
return in;
|
||||
|
||||
std::size_t size = packSize(in, comm);
|
||||
std::vector<char> buffer(size);
|
||||
int pos = 0;
|
||||
Mpi::pack(in, buffer, pos, comm);
|
||||
comm.broadcast(&pos, 1, 0);
|
||||
comm.broadcast(buffer.data(), pos, 0);
|
||||
return in;
|
||||
}
|
||||
|
||||
template<class T, class C>
|
||||
void receiveAndUnpack(T& result, const C& comm)
|
||||
{
|
||||
int size;
|
||||
comm.broadcast(&size, 1, 0);
|
||||
std::vector<char> buffer(size);
|
||||
comm.broadcast(buffer.data(), size, 0);
|
||||
int pos = 0;
|
||||
unpack(result, buffer, pos, comm);
|
||||
}
|
||||
} // end namespace Mpi
|
||||
|
||||
RestartValue loadParallelRestart(const EclipseIO* eclIO, SummaryState& summaryState,
|
||||
|
Loading…
Reference in New Issue
Block a user