time.hpp 392 B

1234567891011121314151617181920212223242526
  1. #ifndef TIME_HPP
  2. #define TIME_HPP
  3. #include <fstream>
  4. #include <iostream>
  5. using namespace std;
  6. class Time{
  7. public:
  8. //! Total duration of the simulation
  9. static double T;
  10. //! Number of time steps
  11. static size_t nT;
  12. //! Time step
  13. static double dT;
  14. //! Save time in file
  15. static void save(fstream& file);
  16. //! Load time from file
  17. static void load(fstream& file);
  18. };
  19. #endif