Subject | Hash | Author | Date (UTC) |
---|---|---|---|
The FileReader class has been renamed (to DefaultReader). TimeInterval - added a method that calculates the total duration of the interval. TimeReader - added a method for calculating the total duration of the simulation. Changed directory with source files. | 7d82fe691e99d1c76e74a7e95496ca14cd9786e3 | AnMikhaylova | 2022-03-17 20:05:59 |
The FileReader class has been renamed (to DefaultReader). TimeInterval - added a method that calculates the total duration of the interval. TimeReader - added a method for calculating the total duration of the simulation. Changed directory with source files. | e348951a762aed7ed2bf0a6d61a06b7873a73518 | AnMikhaylova | 2022-03-17 20:01:36 |
initial commit | 07cb3f608489e2df5cda5655d3055d7c7e46b522 | oam | 2022-03-17 19:33:58 |
File | Lines added | Lines deleted |
---|---|---|
src/lleak/helpers/TimeInterval.java | 1 | 2 |
src/lleak/helpers/TimeReader.java | 0 | 2 |
File src/lleak/helpers/TimeInterval.java changed (mode: 100644) (index 5682687..f11f4e3) | |||
... | ... | public class TimeInterval { | |
47 | 47 | ||
48 | 48 | public double getCfl() { | public double getCfl() { |
49 | 49 | return cfl; | return cfl; |
50 | } | ||
51 | |||
50 | } | ||
52 | 51 | public double getIntervalDuration() { | public double getIntervalDuration() { |
53 | 52 | return nstep*tau; | return nstep*tau; |
54 | 53 | } | } |
File src/lleak/helpers/TimeReader.java changed (mode: 100644) (index 29d2389..3ff8458) | |||
... | ... | public class TimeReader extends DefaultReader { | |
50 | 50 | public ArrayList<TimeInterval> getTimeIntervals() { | public ArrayList<TimeInterval> getTimeIntervals() { |
51 | 51 | return timeIntervals; | return timeIntervals; |
52 | 52 | } | } |
53 | |||
54 | |||
55 | 53 | public double getSimulationDuration() { | public double getSimulationDuration() { |
56 | 54 | if(timeIntervals.isEmpty()) | if(timeIntervals.isEmpty()) |
57 | 55 | return 0; | return 0; |