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

View file

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