Changeset 514 in Sophya for trunk/SophyaLib/NTools/rk4cdifeq.h
- Timestamp:
- Oct 25, 1999, 6:43:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/rk4cdifeq.h
r508 r514 4 4 5 5 #include "difeq.h" 6 7 namespace PlanckDPC { 6 8 7 9 // <summary> Runge-Kutta ordre 4 adaptatif </summary> … … 20 22 // <group> 21 23 RK4CDiffEq& Accuracy(double); 22 RK4CDiffEq& AbsAccuracy( OVector const& vScal);24 RK4CDiffEq& AbsAccuracy(Vector const& vScal); 23 25 RK4CDiffEq& AbsAccuracy(double scal); 24 26 RK4CDiffEq& RelAccuracy(); … … 26 28 27 29 // Implementation RK4 adaptatif 28 virtual void SolveArr( OMatrix& y, double* t, double tf, int n);30 virtual void SolveArr(Matrix& y, double* t, double tf, int n); 29 31 30 32 protected: 31 33 // Un pas adaptatif 32 void RKCStep( OVector& newY, OVector const& y0, OVector const& yScale,34 void RKCStep(Vector& newY, Vector const& y0, Vector const& yScale, 33 35 double dttry, double& dtdone, double& dtnext); 34 36 35 37 double eps; 36 38 bool relAccuracy; 37 OVector accScale;38 OVector yTemp; // Pour ne pas reallouer39 OVector ySave;39 Vector accScale; 40 Vector yTemp; // Pour ne pas reallouer 41 Vector ySave; 40 42 }; 41 43 44 } // Fin du namespace 45 42 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.