libMesh
Public Member Functions | Protected Attributes | List of all members
libMesh::MeshFunctionSolutionTransfer Class Reference

Implementation of a SolutionTransfer object that only works for transferring the solution using a MeshFunction. More...

#include <meshfunction_solution_transfer.h>

Inheritance diagram for libMesh::MeshFunctionSolutionTransfer:
[legend]

Public Member Functions

 MeshFunctionSolutionTransfer (const libMesh::Parallel::Communicator &comm)
 
virtual ~MeshFunctionSolutionTransfer ()
 
virtual void transfer (const Variable &from_var, const Variable &to_var) override
 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

Implementation of a SolutionTransfer object that only works for transferring the solution using a MeshFunction.

Note
A serialization of the "from" solution vector will be performed! This can be slow in parallel and take a lot of memory!
Author
Derek Gaston
Date
2013 SolutionTransfer object which uses a MeshFunction.

Definition at line 39 of file meshfunction_solution_transfer.h.

Constructor & Destructor Documentation

◆ MeshFunctionSolutionTransfer()

libMesh::MeshFunctionSolutionTransfer::MeshFunctionSolutionTransfer ( const libMesh::Parallel::Communicator comm)

◆ ~MeshFunctionSolutionTransfer()

virtual libMesh::MeshFunctionSolutionTransfer::~MeshFunctionSolutionTransfer ( )
virtual

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::MeshFunctionSolutionTransfer::transfer ( const Variable from_var,
const Variable to_var 
)
overridevirtual

Transfer the values of a variable to another.

Implements libMesh::SolutionTransfer.

Member Data Documentation

◆ _communicator

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

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