libMesh
Public Member Functions | Protected Attributes | List of all members
libMesh::SolutionTransfer Class Referenceabstract

Base class for objects that allow transferring variable values between different systems with different meshes. More...

#include <solution_transfer.h>

Inheritance diagram for libMesh::SolutionTransfer:
[legend]

Public Member Functions

 SolutionTransfer (const libMesh::Parallel::Communicator &comm_in)
 
virtual ~SolutionTransfer ()
 
virtual void transfer (const Variable &from_var, const Variable &to_var)=0
 Transfer the values of a variable to another. More...
 
const Parallel::Communicatorcomm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Protected Attributes

const Parallel::Communicator_communicator
 

Detailed Description

Base class for objects that allow transferring variable values between different systems with different meshes.

Author
Derek Gaston
Date
2013 Base class for all SolutionTransfer implementations.

Definition at line 40 of file solution_transfer.h.

Constructor & Destructor Documentation

◆ SolutionTransfer()

libMesh::SolutionTransfer::SolutionTransfer ( const libMesh::Parallel::Communicator comm_in)

Definition at line 44 of file solution_transfer.h.

44  :
45  ParallelObject(comm_in)
46  {}
ParallelObject(const Parallel::Communicator &comm_in)
Constructor.

◆ ~SolutionTransfer()

virtual libMesh::SolutionTransfer::~SolutionTransfer ( )
virtual

Definition at line 48 of file solution_transfer.h.

48 {}

Member Function Documentation

◆ comm()

const Parallel::Communicator& libMesh::ParallelObject::comm ( ) const
inherited

◆ n_processors()

processor_id_type libMesh::ParallelObject::n_processors ( ) const
inherited
Returns
The number of processors in the group.

Definition at line 93 of file parallel_object.h.

References libMesh::ParallelObject::_communicator, and libMesh::Parallel::Communicator::size().

Referenced by libMesh::MeshBase::partition().

94  { return cast_int<processor_id_type>(_communicator.size()); }
processor_id_type size() const
Definition: communicator.h:175
const Parallel::Communicator & _communicator

◆ processor_id()

processor_id_type libMesh::ParallelObject::processor_id ( ) const
inherited

◆ transfer()

virtual void libMesh::SolutionTransfer::transfer ( const Variable from_var,
const Variable to_var 
)
pure virtual

Transfer the values of a variable to another.

This is meant for transferring values from one EquationSystems to another even in the case of having different meshes.

Implemented in libMesh::DTKSolutionTransfer, libMesh::BoundaryVolumeSolutionTransfer, libMesh::DirectSolutionTransfer, libMesh::MeshfreeSolutionTransfer, and libMesh::MeshFunctionSolutionTransfer.

Member Data Documentation

◆ _communicator

const Parallel::Communicator& libMesh::ParallelObject::_communicator
protectedinherited

The documentation for this class was generated from the following file: