Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::AlephMatrixPETSc Class Reference
Inheritance diagram for Arcane::AlephMatrixPETSc:
Collaboration diagram for Arcane::AlephMatrixPETSc:

Public Member Functions

 AlephMatrixPETSc (ITraceMng *, AlephKernel *, Integer)
void AlephMatrixCreate (void) override
void AlephMatrixSetFilled (bool) override
int AlephMatrixAssemble (void) override
void AlephMatrixFill (int, AlephInt *, AlephInt *, double *) override
Real LinftyNormVectorProductAndSub (AlephVector *, AlephVector *)
bool isAlreadySolved (AlephVectorPETSc *, AlephVectorPETSc *, AlephVectorPETSc *, Real *, AlephParams *)
int AlephMatrixSolve (AlephVector *, AlephVector *, AlephVector *, Integer &, Real *, AlephParams *) override
void writeToFile (const String) override
Public Member Functions inherited from Arcane::IAlephMatrix
 IAlephMatrix (ITraceMng *tm, AlephKernel *kernel, Integer index)
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Attributes

Mat m_petsc_matrix = nullptr
KSP m_ksp_solver = nullptr

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Attributes inherited from Arcane::IAlephMatrix
Integer m_index
AlephKernelm_kernel

Detailed Description

Definition at line 129 of file AlephPETSc.cc.

Constructor & Destructor Documentation

◆ AlephMatrixPETSc()

Arcane::AlephMatrixPETSc::AlephMatrixPETSc ( ITraceMng * tm,
AlephKernel * kernel,
Integer index )

Definition at line 395 of file AlephPETSc.cc.

◆ ~AlephMatrixPETSc()

Arcane::AlephMatrixPETSc::~AlephMatrixPETSc ( )

Definition at line 405 of file AlephPETSc.cc.

Member Function Documentation

◆ AlephMatrixAssemble()

int Arcane::AlephMatrixPETSc::AlephMatrixAssemble ( void )
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 489 of file AlephPETSc.cc.

◆ AlephMatrixCreate()

void Arcane::AlephMatrixPETSc::AlephMatrixCreate ( void )
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 420 of file AlephPETSc.cc.

◆ AlephMatrixFill()

void Arcane::AlephMatrixPETSc::AlephMatrixFill ( int size,
AlephInt * rows,
AlephInt * cols,
double * values )
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 501 of file AlephPETSc.cc.

◆ AlephMatrixSetFilled()

void Arcane::AlephMatrixPETSc::AlephMatrixSetFilled ( bool )
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 479 of file AlephPETSc.cc.

◆ AlephMatrixSolve()

int Arcane::AlephMatrixPETSc::AlephMatrixSolve ( AlephVector * x,
AlephVector * b,
AlephVector * t,
Integer & nb_iteration,
Real * residual_norm,
AlephParams * solver_param )
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 546 of file AlephPETSc.cc.

◆ isAlreadySolved()

bool Arcane::AlephMatrixPETSc::isAlreadySolved ( AlephVectorPETSc * x,
AlephVectorPETSc * b,
AlephVectorPETSc * tmp,
Real * residual_norm,
AlephParams * params )

Definition at line 528 of file AlephPETSc.cc.

◆ LinftyNormVectorProductAndSub()

Real Arcane::AlephMatrixPETSc::LinftyNormVectorProductAndSub ( AlephVector * x,
AlephVector * b )

Definition at line 517 of file AlephPETSc.cc.

◆ writeToFile()

void Arcane::AlephMatrixPETSc::writeToFile ( const String filename)
overridevirtual

Implements Arcane::IAlephMatrix.

Definition at line 814 of file AlephPETSc.cc.

Member Data Documentation

◆ m_ksp_solver

KSP Arcane::AlephMatrixPETSc::m_ksp_solver = nullptr
private

Definition at line 150 of file AlephPETSc.cc.

◆ m_petsc_matrix

Mat Arcane::AlephMatrixPETSc::m_petsc_matrix = nullptr
private

Definition at line 149 of file AlephPETSc.cc.


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