Update fv SAMG interfaces

This commit is contained in:
Hrvoje Jasak 2017-05-26 11:45:40 +01:00
parent 8e342b09df
commit a2deada572
2 changed files with 10 additions and 14 deletions

View file

@ -178,29 +178,26 @@ tmp<labelField> processorFvPatch::internalFieldTransfer
void processorFvPatch::initProlongationTransfer
(
const Pstream::commsTypes commsType,
const crMatrix& P
const crMatrix& filteredP
) const
{
// Select the part of the prolongation matrix to send
// Send prolongation matrix
Pout<< "HJ, in send for processorFvPatch" << endl;
// Send prolongation matrix, using IOstream operators
OPstream toNbr(Pstream::blocking, neighbProcNo());
toNbr<< filteredP;
}
tmp<crMatrix> processorFvPatch::prolongationTransfer
autoPtr<crMatrix> processorFvPatch::prolongationTransfer
(
const Pstream::commsTypes commsType,
const crMatrix& P
const crMatrix& filteredP
) const
{
// Receive and return prolongation matrix
Pout<< "HJ, in receive for processorFvPatch" << endl;
IPstream fromNbr(Pstream::blocking, neighbProcNo());
// Dummy
tmp<crMatrix> tcr(new crMatrix(5, 5, labelList(5)));
autoPtr<crMatrix> tnbrP(new crMatrix(fromNbr));
return tcr;
return tnbrP;
}

View file

@ -195,12 +195,11 @@ public:
//- Transfer and return prolongation matrix adjacent to
// the interface
virtual tmp<crMatrix> prolongationTransfer
virtual autoPtr<crMatrix> prolongationTransfer
(
const Pstream::commsTypes commsType,
const crMatrix& iF
) const;
};