mathcomp.assemble
Class ErrorCalculatorOverkill
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.assemble.ErrorCalculator
mathcomp.assemble.ErrorCalculatorOverkill
- All Implemented Interfaces:
- Reportable
public class ErrorCalculatorOverkill
- extends ErrorCalculator
- Author:
- chwust
To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorCalculatorOverkill
public ErrorCalculatorOverkill(Assembler a)
setSolution
public void setSolution(Vector sol)
- Description copied from class:
ErrorCalculator
- Sets a solution to this ErrorCalculator.
- Overrides:
setSolution
in class ErrorCalculator
- Parameters:
sol
- the solution to be set (adds the Dirichlet Nodes to that solution)
setFineSolution
public void setFineSolution(Vector fine)
- Overrides:
setFineSolution
in class ErrorCalculator
getMaxError
public double getMaxError()
- Description copied from class:
ErrorCalculator
- Gets the pointwise maximal error compared to the exact solution. The points that are considered here
are all the global dofs and all boundary nodes (we really would not need them, but I used the paintNodes
for this, and they're in here. Remember that the getExactValue mathod has to be implemented
correctly for this.
- Overrides:
getMaxError
in class ErrorCalculator
- Returns:
getL2Error
public double getL2Error()
- Description copied from class:
ErrorCalculator
- Returns the L2 error to the FEM solution x. Remember that the getExactValue mathod has to be implemented
correctly for this.
- Overrides:
getL2Error
in class ErrorCalculator
- Returns:
- the L2 error
getH1Error
public double getH1Error()
- Overrides:
getH1Error
in class ErrorCalculator