#include "Paso.h"
#include "SolverFCT.h"
#include "PasoUtil.h"
Paso_FCTransportProblem* Paso_FCTransportProblem_alloc | ( | double | theta, | |
Paso_SystemMatrixPattern * | pattern, | |||
int | block_size | |||
) |
References Paso_FCTransportProblem::constraint_factor, Paso_FCTransportProblem::constraint_weights, Paso_FCTransportProblem::dt_factor, DT_FACTOR_MAX, Paso_FCTransportProblem::dt_max, FALSE, Paso_Pattern::index, Paso_FCTransportProblem::iteration_matrix, LARGE_POSITIVE_FLOAT, Paso_FCTransportProblem::lumped_mass_matrix, Paso_FCTransportProblem::main_diagonal_low_order_transport_matrix, Paso_FCTransportProblem::main_iptr, Paso_SystemMatrixPattern::mainPattern, Paso_FCTransportProblem::mass_matrix, MATRIX_FORMAT_BLK1, MATRIX_FORMAT_DEFAULT, MEMALLOC, MIN, Paso_SystemMatrixPattern::mpi_info, Paso_FCTransportProblem::mpi_info, Paso_checkPtr(), Paso_Coupler_alloc(), Paso_FCTransportProblem_borrowConnector(), Paso_FCTransportProblem_free(), Paso_MPIInfo_getReference(), Paso_noError(), Paso_setError(), Paso_SystemMatrix_alloc(), Paso_SystemMatrix_getTotalNumRows(), Paso_SystemMatrix::pattern, Paso_Pattern::ptr, Paso_FCTransportProblem::reference_counter, Paso_FCTransportProblem::theta, Paso_FCTransportProblem::transport_matrix, TYPE_ERROR, Paso_FCTransportProblem::u, Paso_FCTransportProblem::u_coupler, Paso_FCTransportProblem::valid_matrices, and VALUE_ERROR.
Referenced by finley::MeshAdapter::newTransportProblem().
Paso_Connector* Paso_FCTransportProblem_borrowConnector | ( | const Paso_FCTransportProblem * | in | ) |
References Paso_SystemMatrixPattern::col_connector, Paso_SystemMatrix::pattern, and Paso_FCTransportProblem::transport_matrix.
Referenced by Paso_FCTransportProblem_alloc(), and Paso_SolverFCT_solve().
double* Paso_FCTransportProblem_borrowLumpedMassMatrix | ( | Paso_FCTransportProblem * | in | ) |
References Paso_FCTransportProblem::lumped_mass_matrix.
Paso_SystemMatrix* Paso_FCTransportProblem_borrowMassMatrix | ( | Paso_FCTransportProblem * | in | ) |
References Paso_FCTransportProblem::mass_matrix.
Paso_SystemMatrix* Paso_FCTransportProblem_borrowTransportMatrix | ( | Paso_FCTransportProblem * | in | ) |
References Paso_FCTransportProblem::transport_matrix.
void Paso_FCTransportProblem_checkinSolution | ( | Paso_FCTransportProblem * | in, | |
double * | u | |||
) |
References Paso_MPIInfo::comm, LARGE_POSITIVE_FLOAT, MIN, MPI_DOUBLE, Paso_FCTransportProblem::mpi_info, Paso_setError(), Paso_SystemMatrix_getTotalNumRows(), Paso_FCTransportProblem::transport_matrix, Paso_FCTransportProblem::u, and VALUE_ERROR.
Referenced by finley::TransportProblemAdapter::copyInitialValue().
void Paso_FCTransportProblem_free | ( | Paso_FCTransportProblem * | in | ) |
References Paso_FCTransportProblem::constraint_weights, Paso_FCTransportProblem::iteration_matrix, Paso_FCTransportProblem::lumped_mass_matrix, Paso_FCTransportProblem::main_diagonal_low_order_transport_matrix, Paso_FCTransportProblem::main_iptr, Paso_FCTransportProblem::mass_matrix, MEMFREE, Paso_FCTransportProblem::mpi_info, Paso_Coupler_free(), Paso_MPIInfo_free(), Paso_SystemMatrix_free(), Paso_FCTransportProblem::reference_counter, Paso_FCTransportProblem::transport_matrix, Paso_FCTransportProblem::u, and Paso_FCTransportProblem::u_coupler.
Referenced by Paso_FCTransportProblem_alloc(), and finley::TransportProblemAdapter::~TransportProblemAdapter().
dim_t Paso_FCTransportProblem_getBlockSize | ( | const Paso_FCTransportProblem * | in | ) |
References Paso_SystemMatrix::row_block_size, and Paso_FCTransportProblem::transport_matrix.
Referenced by Paso_SolverFCT_solve().
Paso_FCTransportProblem* Paso_FCTransportProblem_getReference | ( | Paso_FCTransportProblem * | in | ) |
References Paso_FCTransportProblem::reference_counter.
dim_t Paso_FCTransportProblem_getTotalNumRows | ( | Paso_FCTransportProblem * | in | ) |
index_t Paso_FCTransportProblem_getTypeId | ( | const index_t | solver, | |
const index_t | preconditioner, | |||
const index_t | package, | |||
const bool_t | symmetry, | |||
Paso_MPIInfo * | mpi_info | |||
) |
References MATRIX_FORMAT_BLK1, and MATRIX_FORMAT_DEFAULT.
Referenced by finley::MeshAdapter::getTransportTypeId().
void Paso_FCTransportProblem_insertConstraint | ( | Paso_FCTransportProblem * | fctp, | |
const double * | r, | |||
double * | source | |||
) |
void Paso_FCTransportProblem_setUpConstraint | ( | Paso_FCTransportProblem * | fctp, | |
const double * | q, | |||
const double | factor | |||
) |
References Paso_FCTransportProblem::constraint_factor, Paso_FCTransportProblem::constraint_weights, Paso_FCTransportProblem::dt_factor, Paso_FCTransportProblem::main_iptr, Paso_SystemMatrix::mainBlock, Paso_FCTransportProblem::mass_matrix, Paso_setError(), Paso_SystemMatrix_getTotalNumRows(), Paso_FCTransportProblem::transport_matrix, Paso_SparseMatrix::val, Paso_FCTransportProblem::valid_matrices, and VALUE_ERROR.
Referenced by finley::TransportProblemAdapter::copyConstraint().