Skip to content

Commit a4d6011

Browse files
committed
Revert "Add corner-cases to tests, fix typo exposed by those tests (doesn't affect XPalm in its current state)"
This reverts commit c6895c2.
1 parent c6895c2 commit a4d6011

3 files changed

Lines changed: 1 addition & 73 deletions

File tree

examples/dummy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PlantSimEngine.outputs_(::Process1Model) = (var3=-Inf,)
1818
function PlantSimEngine.run!(::Process1Model, models, status, meteo, constants=nothing, extra=nothing)
1919
status.var3 = models.process1.a + status.var1 * status.var2
2020
end
21-
PlantSimEngine.TimeStepDependencyTrait(::Type{<:Process1Model}) = PlantSimEngine.IsTimeStepDependent()
21+
PlantSimEngine.TimeStepDependencyTrait(::Type{<:Process1Model}) = PlantSimEngine.IsTimeStepIndependent()
2222
PlantSimEngine.ObjectDependencyTrait(::Type{<:Process1Model}) = PlantSimEngine.IsObjectIndependent()
2323

2424

src/internal_tests_import.jl

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/run.jl

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -86,45 +86,6 @@ julia> (models[:var4],models[:var6])
8686
"""
8787
run!
8888

89-
#todo vector of modellists case
90-
function run2!(
91-
object,
92-
meteo=nothing,
93-
constants=PlantMeteo.Constants(),
94-
extra=nothing;
95-
check=true,
96-
nsteps=nothing,
97-
outputs=nothing,
98-
executor=ThreadedEx()
99-
)
100-
isnothing(nsteps) && (nsteps = get_nsteps(meteo))
101-
102-
default_scale = "Default"
103-
104-
mtg = MultiScaleTreeGraph.Node(MultiScaleTreeGraph.NodeMTG("/", default_scale, 0, 0),)
105-
106-
mapping = Dict(
107-
default_scale => (
108-
SingleModelScale1(),
109-
Status(in = 1.0, in1 = 1.0),
110-
),
111-
)
112-
113-
sim = GraphSimulation(object, mapping, nsteps=nsteps, check=check, outputs=outputs)
114-
run!(
115-
sim,
116-
meteo,
117-
constants,
118-
extra;
119-
check=check,
120-
executor=executor
121-
)
122-
123-
return sim
124-
125-
end
126-
127-
12889
# Managing one or several objects, one or several time-steps:
12990

13091
# This is the default function called by the user, which uses traits

0 commit comments

Comments
 (0)