1717#include < gsl/gsl_odeiv2.h>
1818#endif
1919
20- #include " ../shell/Shell.h"
21-
22- #include " ../mesh/MeshEntry.h"
23- #include " ../mesh/Boundary.h"
24- #include " ../mesh/ChemCompt.h"
25- #include " ../mesh/VoxelJunction.h"
26-
27- #include " ../utility/print_function.hpp"
28-
2920#include " OdeSystem.h"
3021#include " VoxelPoolsBase.h"
3122#include " VoxelPools.h"
23+ #include " ../mesh/VoxelJunction.h"
3224#include " ZombiePoolInterface.h"
25+
3326#include " RateTerm.h"
3427#include " ../basecode/SparseMatrix.h"
3528#include " KinSparseMatrix.h"
3629#include " Stoich.h"
30+ #include " ../shell/Shell.h"
31+
32+ #include " ../mesh/MeshEntry.h"
33+ #include " ../mesh/Boundary.h"
34+ #include " ../mesh/ChemCompt.h"
3735#include " Ksolve.h"
3836
3937#include < chrono>
@@ -246,15 +244,7 @@ Ksolve::Ksolve()
246244
247245Ksolve::~Ksolve ()
248246{
249- #if 0
250- char* p = getenv( "MOOSE_SHOW_SOLVER_PERF" );
251- if( p != NULL )
252- {
253- cout << "Info: Ksolve (+Dsolve) took " << totalTime_ << " seconds and took " << numSteps_
254- << " steps." << endl;
255-
256- }
257- #endif
247+ ;
258248}
259249
260250// ////////////////////////////////////////////////////////////
@@ -269,7 +259,6 @@ string Ksolve::getMethod() const
269259void Ksolve::setMethod ( string method )
270260{
271261 std::transform (method.begin (), method.end (), method.begin (), ::tolower);
272-
273262 // If user is trying to set ksolve method after ksolve has been initialized,
274263 // show a warning.
275264 if ( isBuilt_ )
@@ -288,44 +277,27 @@ void Ksolve::setMethod( string method )
288277 method_ = " rk5" ;
289278 }
290279 else if ( method == " rk4" || method == " rk2" ||
291- method == " rk8" || method == " rkck" || method == " lsoda"
292- )
280+ method == " rk8" || method == " rkck" || method == " lsoda" )
293281 {
294282 method_ = method;
295283 }
296284 else
297285 {
298286 cout << " Warning: Ksolve::setMethod: '" << method <<
299- " ' not known, using default rk5\n " ;
287+ " ' is not known, using default rk5\n " ;
300288 method_ = " rk5" ;
301289 }
302290#elif USE_BOOST_ODE
303291 // TODO: Check for boost related methods.
304292 method_ = method;
305293#endif
306-
307294}
308295
309296double Ksolve::getEpsAbs () const
310297{
311298 return epsAbs_;
312299}
313300
314- double Ksolve::getEpsRel () const
315- {
316- return epsRel_;
317- }
318-
319- double Ksolve::getRelativeAccuracy ( ) const
320- {
321- return getEpsRel ();
322- }
323-
324- double Ksolve::getAbsoluteAccuracy ( ) const
325- {
326- return getEpsAbs ();
327- }
328-
329301void Ksolve::setEpsAbs ( double epsAbs )
330302{
331303 if ( epsAbs < 0 )
@@ -334,6 +306,12 @@ void Ksolve::setEpsAbs( double epsAbs )
334306 epsAbs_ = epsAbs;
335307}
336308
309+
310+ double Ksolve::getEpsRel () const
311+ {
312+ return epsRel_;
313+ }
314+
337315void Ksolve::setEpsRel ( double epsRel )
338316{
339317 if ( epsRel < 0 )
@@ -537,8 +515,6 @@ double Ksolve::getEstimatedDt() const
537515// ////////////////////////////////////////////////////////////
538516void Ksolve::process ( const Eref& e, ProcPtr p )
539517{
540-
541-
542518 if ( isBuilt_ == false )
543519 return ;
544520
0 commit comments