Nektar++
Public Member Functions | List of all members
Nektar::MultiRegions::ExchangeMethod Class Referenceabstract

#include <AssemblyCommDG.h>

Inheritance diagram for Nektar::MultiRegions::ExchangeMethod:
[legend]

Public Member Functions

 ExchangeMethod ()=default
 Default constructor. More...
 
virtual ~ExchangeMethod ()=default
 Default destructor. More...
 
virtual void PerformExchange (const Array< OneD, NekDouble > &testFwd, Array< OneD, NekDouble > &testBwd)=0
 

Detailed Description

The ExchangeMethod classes contain the required structure to distribute the Fwd trace of partition edges to the matching locations in the Bwd trace in the corresponding adjacent partitions. This allows for communication between neighbouring partitions in the physical mesh by exchanging quadrature point values.

Definition at line 51 of file AssemblyCommDG.h.

Constructor & Destructor Documentation

◆ ExchangeMethod()

Nektar::MultiRegions::ExchangeMethod::ExchangeMethod ( )
default

Default constructor.

◆ ~ExchangeMethod()

virtual Nektar::MultiRegions::ExchangeMethod::~ExchangeMethod ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ PerformExchange()

virtual void Nektar::MultiRegions::ExchangeMethod::PerformExchange ( const Array< OneD, NekDouble > &  testFwd,
Array< OneD, NekDouble > &  testBwd 
)
pure virtual

Perform MPI comm exchange taking the Fwd trace and sending partition edge trace values to the matching locations in the Bwd trace of corresponding adjacent partitions.

Parameters
[in]testFwdThe values to send to adjacent partitions
[out]testBwdThe values received from adjacent partitions

Implemented in Nektar::MultiRegions::Serial, Nektar::MultiRegions::AllToAll, Nektar::MultiRegions::AllToAllV, Nektar::MultiRegions::NeighborAllToAllV, and Nektar::MultiRegions::Pairwise.