#include <AutoAMRCore.h>

| Public Member Functions | |
| AutoAMRCore (PDE *pde, InitCond &ini, bool constrforced, Integrator *gi, Regridder *regridder, const string &dtdx, int maxi, int npabovemax, int maxl, int r, AMError *amerr, double maxerr, int errchkf, int regridf, int bufzoner, int fms, string f, int fileno, int bdatasize, int blines, const string &dtwrite, bool endless, GReal_t tmax, int maxruntime, const string &datafmt, const string &energyfmt, bool enable) throw (InitCond::Exception&, IllegalArgumentException&, OutFileExistsException&) | |
| Creates an integrator. | |
| AMRCore * | cloneAMRCore () const | 
| Clones this object. | |
| long | getCalcTime () const | 
| long | getWaitTime () const | 
| bool | isOutputAppended () const | 
| bool | isTimeSliceSaved (int tsc) const | 
| void | output () | 
| Writes output. | |
| Protected Member Functions | |
| bool | isLastTime (const Grid &g) const | 
| Tests whether the last time step is reached. | |
| virtual void | coarseStepped (GReal_t t) | 
| This method is called immediately after each coarse time step on the base grid, before refined grid updates. | |
| Classes | |
| class | OutFileExistsException | 
| Thrown if the output file already exists.  More... | |
| gridripper::amr1d::AutoAMRCore::AutoAMRCore | ( | PDE * | pde, | |
| InitCond & | ini, | |||
| bool | constrforced, | |||
| Integrator * | gi, | |||
| Regridder * | regridder, | |||
| const string & | dtdx, | |||
| int | maxi, | |||
| int | npabovemax, | |||
| int | maxl, | |||
| int | r, | |||
| AMError * | amerr, | |||
| double | maxerr, | |||
| int | errchkf, | |||
| int | regridf, | |||
| int | bufzoner, | |||
| int | fms, | |||
| string | f, | |||
| int | fileno, | |||
| int | bdatasize, | |||
| int | blines, | |||
| const string & | dtwrite, | |||
| bool | endless, | |||
| GReal_t | tmax, | |||
| int | maxruntime, | |||
| const string & | datafmt, | |||
| const string & | energyfmt, | |||
| bool | enable | |||
| ) | throw (InitCond::Exception&, IllegalArgumentException&, OutFileExistsException&) | 
Creates an integrator.
| pde | the partial differential equation to integrate | |
| ini | the initial conditions | |
| constrforced | whether to force constraints | |
| gi | the numerical integration method | |
| regridder | the regridder | |
| dtdx | dt/dx | |
| maxi | base grid size | |
| npabovemax | number of grid points above infinity (Xmax) | |
| maxl | maximum allowed refinement level | |
| r | refinement ratio | |
| amerr | the error calculation method | |
| maxerr | the critical error value or 0 | |
| errchkf | error checking frequency | |
| regridf | regridding frequency | |
| bufzoner | radius of buffer zone | |
| fms | milliseconds between two frames | |
| f | the output file | |
| fileno | the initial file number | |
| bdatasize | maximal size of BData file | |
| blines | number of blank lines to write between time slices in the output datafile, in case of text (non-binary) format | |
| dtwrite | time step for data file writing | |
| endless | endless | |
| tmax | the time at which simulation should stop | |
| maxruntime | maximal running time in seconds (-1: unlimited) | |
| datafmt | printf format string for t, x and grid function values | |
| energyfmt | printf format string for energy values | |
| enable | enable data file writing | 
| AMRCore* gridripper::amr1d::AutoAMRCore::cloneAMRCore | ( | ) | const  [virtual] | 
| bool gridripper::amr1d::AutoAMRCore::isLastTime | ( | const Grid & | g | ) | const  [protected, virtual] | 
Tests whether the last time step is reached.
true if no more integration steps are needed, false if simulation should continue Implements gridripper::amr1d::AMRCore.
| virtual void gridripper::amr1d::AutoAMRCore::coarseStepped | ( | GReal_t | t | ) |  [protected, virtual] | 
This method is called immediately after each coarse time step on the base grid, before refined grid updates.
| t | the mean time of the last time step | 
Reimplemented from gridripper::amr1d::AMRCore.
 1.5.6
 1.5.6