Skip to content
Snippets Groups Projects
Verified Commit 4dc5d10c authored by Dorian Stoll's avatar Dorian Stoll
Browse files

tug: julia: Remove time measurement

parent e22b0177
Branches baseline
No related tags found
No related merge requests found
......@@ -15,12 +15,6 @@ end
CONSOLE_OUTPUT_VERBOSE # print all concentration matrices to console
end
# Enum holding different options for time measurement.
@enum TIME_MEASURE begin
TIME_MEASURE_OFF # do not print any time measures
TIME_MEASURE_ON # print time measure after last iteration
end
# The class forms the interface for performing the diffusion simulations and contains all the
# methods for controlling the desired parameters, such as time step, number of simulations, etc.
#
......@@ -33,7 +27,6 @@ mutable struct Simulation{T<:Real}
innerIterations::Int
csv_output::CSV_OUTPUT
console_output::CONSOLE_OUTPUT
time_measure::TIME_MEASURE
grid::Grid{T}
bc::Boundary{T}
......@@ -59,7 +52,6 @@ mutable struct Simulation{T<:Real}
1,
CSV_OUTPUT_OFF,
CONSOLE_OUTPUT_OFF,
TIME_MEASURE_OFF,
grid,
bc,
)
......@@ -82,11 +74,6 @@ function setSimulationOutputConsole!(this::Simulation{T}, console_output::CONSOL
this.console_output = console_output
end
# Set the Time Measure option. Off by default.
function setSimulationTimeMeasure!(this::Simulation{T}, time_measure::TIME_MEASURE) where {T}
this.time_measure = time_measure
end
# Setting the time step for each iteration step. Time step must be greater than zero.
# Setting the timestep is required.
#
......@@ -254,9 +241,4 @@ function runSimulation!(this::Simulation{T}) where {T}
if this.csv_output != CSV_OUTPUT_OFF
printConcentrationsCSV(this, filename)
end
if this.time_measure != TIME_MEASURE_OFF
dimString::String = @sprintf "%dD" getGridDim(this.grid)
println(stdout, dimString, ":: run() finished in ", Int(milliseconds), "ms")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment