Added more functions to the virtual base class. This will mean that

all classes that inherit from this class will be broken until they
too add definitions for these functions.
This commit is contained in:
Harry Moffat 2003-07-07 16:45:46 +00:00
parent a23a8b3069
commit af54f50a25

View file

@ -35,8 +35,10 @@ namespace Cantera {
* @param ydot rate of change of solution vector. (input, do
* not modify)
*/
virtual void evalResid(double t, const double* y,
const double* ydot, double* resid)=0;
virtual void evalResid(double t, const double deltaT,
const double* y,
const double* ydot,
double* resid)=0;
/** Number of equations. */
virtual int neq()=0;
@ -45,12 +47,68 @@ namespace Cantera {
virtual double* solution()=0;
virtual double* solution_dot()=0;
/**
* Fill the solution vector with the initial conditions
* at initial time t0.
*/
virtual void getInitialConditions(double t0, size_t leny, double* y)=0;
/**
* Report the analytical result if available and describe
* how close the numerical solution is to the analytical
* solution
*/
virtual void analytical_solution(double, double *)=0;
virtual void analytical_solution_dot(double, double *)=0;
/**
* Write out to a file or to standard output the current solution
* ievent is a description of the event that caused this
* function to be called.
*/
virtual void writeSolution(int ievent, double t,
const double *y, const double *ydot) = 0;
/**
* Apply a filter
*/
virtual void applyFilter(const double time, const double deltaT,
const double *ydot, const double *y,
double *ydot) = 0;
/**
* Write out to a file or to standard output the current solution
* ievent is a description of the event that caused this
* function to be called.
*/
virtual void writeSolutionFilter(int ievent, double t,
const double * const y,
const double * const ydot,
const double * const delta_y,
const char * const fname) = 0;
/**
* This function returns a value of the delta t constraint
* that may exist in the problem.
*
*/
virtual double delta_t_constraint(const double t, const double *y,
const double *ydot) = 0;
virtual void adjustAtol(double *) = 0;
/**
* This function may be used to create output at various points in the
* execution of an application.
*
*/
virtual void user_out(const int ifunc, const double t, const double *y,
const double *ydot) = 0;
protected:
private:
};
}
#endif