Skip to content

Commit

Permalink
update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed Sep 19, 2024
1 parent 1cfb17e commit 2db5322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/results/results_initial_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ test60_x0_init = Dict(
],
)

test60_x0_init = Dict(
test61_x0_init = Dict(
"V_R" => [
1.05
1.0197944718502572
Expand Down
12 changes: 6 additions & 6 deletions test/test_case60_st8c.jl → test/test_case61_st8c.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ raw_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/ThreeBusMulti.raw")
dyr_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/ThreeBus_ST8C.dyr")
#csv_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/results_PSSe.csv")

@testset "Test 60 ST8C ResidualModel" begin
@testset "Test 61 ST8C ResidualModel" begin
path = joinpath(pwd(), "test-psse-ST8C")
!isdir(path) && mkdir(path)
try
Expand All @@ -34,7 +34,7 @@ dyr_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/ThreeBus_ST8C.dyr")
# Test Initial Condition
diff_val = [0.0]
res = get_init_values_for_comparison(sim)
for (k, v) in test60_x0_init
for (k, v) in test61_x0_init
diff_val[1] += LinearAlgebra.norm(res[k] - v)
end

Expand All @@ -46,7 +46,7 @@ dyr_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/ThreeBus_ST8C.dyr")
@test small_sig.stable

# Test Eigenvalues
@test LinearAlgebra.norm(eigs - test60_eigvals) < 1e-3
@test LinearAlgebra.norm(eigs - test61_eigvals) < 1e-3

# Solve problem
@test execute!(sim, IDA(); dtmax = 0.005, saveat = 0.005) ==
Expand Down Expand Up @@ -84,7 +84,7 @@ dyr_file = joinpath(TEST_FILES_DIR, "benchmarks/psse/ST8C/ThreeBus_ST8C.dyr")
end
end

@testset "Test 60 ST8C MassMatrixModel" begin
@testset "Test 61 ST8C MassMatrixModel" begin
path = joinpath(pwd(), "test-psse-ST6B")
!isdir(path) && mkdir(path)
try
Expand All @@ -106,7 +106,7 @@ end
# Test Initial Condition
diff_val = [0.0]
res = get_init_values_for_comparison(sim)
for (k, v) in test60_x0_init
for (k, v) in test61_x0_init
diff_val[1] += LinearAlgebra.norm(res[k] - v)
end

Expand All @@ -118,7 +118,7 @@ end
@test small_sig.stable

# Test Eigenvalues
@test LinearAlgebra.norm(eigs - test60_eigvals) < 1e-3
@test LinearAlgebra.norm(eigs - test61_eigvals) < 1e-3

# Solve problem
@test execute!(sim, Rodas4(); dtmax = 0.005, saveat = 0.005) ==
Expand Down

0 comments on commit 2db5322

Please sign in to comment.