Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CryoGrid.jl
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
CryoGrid
CryoGrid.jl
Commits
b6580e37
Commit
b6580e37
authored
3 years ago
by
Brian Groenke
Browse files
Options
Downloads
Patches
Plain Diff
Remove broken flag on allocs test for TimeSeriesForcing
parent
bda26a0f
No related branches found
No related tags found
1 merge request
!57
Add support for per-layer callbacks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/Physics/Boundaries/forcing_tests.jl
+1
-3
1 addition, 3 deletions
test/Physics/Boundaries/forcing_tests.jl
with
1 addition
and
3 deletions
test/Physics/Boundaries/forcing_tests.jl
+
1
−
3
View file @
b6580e37
...
@@ -16,9 +16,7 @@ using Test, BenchmarkTools
...
@@ -16,9 +16,7 @@ using Test, BenchmarkTools
@test
forcing
((
Dates
.
datetime2epochms
(
t1
)
+
Dates
.
datetime2epochms
(
t2
))
/
2000.0
)
≈
(
y1
+
y2
)
/
2
@test
forcing
((
Dates
.
datetime2epochms
(
t1
)
+
Dates
.
datetime2epochms
(
t2
))
/
2000.0
)
≈
(
y1
+
y2
)
/
2
t
=
Dates
.
datetime2epochms
(
t1
)
/
1000.0
t
=
Dates
.
datetime2epochms
(
t1
)
/
1000.0
benchres
=
@benchmark
$
forcing
(
$
t
)
benchres
=
@benchmark
$
forcing
(
$
t
)
# This suddenly passes when run directly (in this file) but not when run as part of the test suite.
@test
benchres
.
allocs
==
0
# Likely is a compiler bug or issue caused by recent update to a package (maybe BenchmarkTools?)
@test_broken
benchres
.
allocs
==
0
out
=
zeros
(
100
)
out
=
zeros
(
100
)
queries
=
t
.+
(
1
:
100
);
queries
=
t
.+
(
1
:
100
);
benchres
=
@benchmark
$
out
.=
$
forcing
.
(
$
queries
)
benchres
=
@benchmark
$
out
.=
$
forcing
.
(
$
queries
)
...
...
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