Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC Benchmark Game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dorian Stoll
HPC Benchmark Game
Commits
4dc5d10c
Verified
Commit
4dc5d10c
authored
7 months ago
by
Dorian Stoll
Browse files
Options
Downloads
Patches
Plain Diff
tug: julia: Remove time measurement
parent
e22b0177
Branches
baseline
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/benchmarks/tug/julia/src/tug/simulation.jl
+0
-18
0 additions, 18 deletions
src/benchmarks/tug/julia/src/tug/simulation.jl
with
0 additions
and
18 deletions
src/benchmarks/tug/julia/src/tug/simulation.jl
+
0
−
18
View file @
4dc5d10c
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment