* Standardized data struct to pipe additional data to the solver.
*/
- struct AdditionalData
+ struct AdditionalData : public SolverBase::AdditionalData
{
/**
* Set the additional data field to the desired output format.
*/
explicit
AdditionalData (const bool output_solver_details = false);
-
- /**
- * Enables/disables the output of solver details (residual in each
- * iterations etc.).
- */
- bool output_solver_details;
};
/**
/**
* Standardized data struct to pipe additional data to the solver.
*/
- struct AdditionalData
+ struct AdditionalData : public SolverBase::AdditionalData
{
/**
* Set the additional data field to the desired output format.
*/
explicit
AdditionalData (const bool output_solver_details = false);
-
- /**
- * Enables/disables the output of solver details (residual in each
- * iterations etc.).
- */
- bool output_solver_details;
};
/**
/**
* Standardized data struct to pipe additional data to the solver.
*/
- struct AdditionalData
+ struct AdditionalData : public SolverBase::AdditionalData
{
/**
* Constructor. By default, set the number of temporary vectors to 30,
explicit
AdditionalData (const bool output_solver_details = false,
const unsigned int restart_parameter = 30);
-
- /**
- * Enables/disables the output of solver details (residual in each
- * iterations etc.).
- */
- bool output_solver_details;
-
- /**
- * Maximum number of tmp vectors.
- */
- unsigned int restart_parameter;
};
/**
/**
* Standardized data struct to pipe additional data to the solver.
*/
- struct AdditionalData
+ struct AdditionalData : public SolverBase::AdditionalData
{
/**
* Set the additional data field to the desired output format.
*/
explicit
AdditionalData (const bool output_solver_details = false);
-
- /**
- * Enables/disables the output of solver details (residual in each
- * iterations etc.).
- */
- bool output_solver_details;
};
/**
/**
* Standardized data struct to pipe additional data to the solver.
*/
- struct AdditionalData
+ struct AdditionalData : public SolverBase::AdditionalData
{
/**
* Set the additional data field to the desired output format.
*/
explicit
AdditionalData (const bool output_solver_details = false);
-
- /**
- * Enables/disables the output of solver details (residual in each
- * iterations etc.).
- */
- bool output_solver_details;
};
/**
SolverCG::AdditionalData::
AdditionalData (const bool output_solver_details)
:
- output_solver_details (output_solver_details)
+ SolverBase::AdditionalData (output_solver_details)
{}
SolverCG::SolverCG (SolverControl &cn,
const AdditionalData &data)
:
- SolverBase (cn,
- SolverBase::AdditionalData(data.output_solver_details)),
- additional_data (data.output_solver_details)
+ SolverBase (cn, data),
+ additional_data (data)
{
solver_name = cg;
}
AdditionalData (const bool output_solver_details,
const unsigned int restart_parameter)
:
- output_solver_details (output_solver_details),
- restart_parameter (restart_parameter)
+ SolverBase::AdditionalData (output_solver_details,
+ restart_parameter)
{}
SolverGMRES::SolverGMRES (SolverControl &cn,
const AdditionalData &data)
:
- SolverBase (cn,
- SolverBase::AdditionalData(data.output_solver_details,
- data.restart_parameter)),
- additional_data (data.output_solver_details,
- data.restart_parameter)
+ SolverBase (cn, data),
+ additional_data (data)
{
solver_name = gmres;
}
SolverBicgstab::AdditionalData::
AdditionalData (const bool output_solver_details)
:
- output_solver_details (output_solver_details)
+ SolverBase::AdditionalData (output_solver_details)
{}
SolverBicgstab::SolverBicgstab (SolverControl &cn,
const AdditionalData &data)
:
- SolverBase (cn,
- SolverBase::AdditionalData(data.output_solver_details)),
- additional_data (data.output_solver_details)
+ SolverBase (cn, data),
+ additional_data (data)
{
solver_name = bicgstab;
}
SolverCGS::AdditionalData::
AdditionalData (const bool output_solver_details)
:
- output_solver_details (output_solver_details)
+ SolverBase::AdditionalData (output_solver_details)
{}
-
SolverCGS::SolverCGS (SolverControl &cn,
const AdditionalData &data)
:
- SolverBase (cn,
- SolverBase::AdditionalData(data.output_solver_details)),
- additional_data (data.output_solver_details)
+ SolverBase (cn, data),
+ additional_data (data)
{
solver_name = cgs;
}
SolverTFQMR::AdditionalData::
AdditionalData (const bool output_solver_details)
:
- output_solver_details (output_solver_details)
+ SolverBase::AdditionalData (output_solver_details)
{}
SolverTFQMR::SolverTFQMR (SolverControl &cn,
const AdditionalData &data)
:
- SolverBase (cn,
- SolverBase::AdditionalData(data.output_solver_details)),
- additional_data (data.output_solver_details)
+ SolverBase (cn, data),
+ additional_data (data)
{
solver_name = tfqmr;
}