Skip to content

Commit 4fe6ba2

Browse files
committed
Fix MT test with module/environment issue
1 parent ea108a4 commit 4fe6ba2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test-performance.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ end
1717

1818
PlantSimEngine.TimeStepDependencyTrait(::Type{<:ToySleepModel}) = PlantSimEngine.IsTimeStepIndependent()
1919

20+
models1 = ModelList(process1=ToySleepModel(), status=(a=vc,))
21+
models2 = ModelList(process1=ToySleepModel(), status=(a=vc,))
22+
2023
@testset begin "Check number of threads"
2124
nthr = Threads.nthreads()
2225
@test nthr == 4
@@ -26,9 +29,6 @@ PlantSimEngine.TimeStepDependencyTrait(::Type{<:ToySleepModel}) = PlantSimEngine
2629

2730
vc = [0 for i in 1:nrows]
2831

29-
models1 = ModelList(process1=ToySleepModel(), status=(a=vc,))
30-
models2 = ModelList(process1=ToySleepModel(), status=(a=vc,))
31-
3232
t_seq = @benchmark run!(models1, meteo_day; executor = SequentialEx())
3333
#t_seq = run!(models1, meteo_day; executor = SequentialEx())
3434
min_time_seq = minimum(t_seq).time

0 commit comments

Comments
 (0)