Revise docs and struct name; add basic MPI test

This commit is contained in:
2023-05-26 10:52:23 -05:00
parent 9dc3607c56
commit 3961aedaf5
13 changed files with 230 additions and 226 deletions

View File

@@ -4,10 +4,10 @@
function read(
paths::Vector{String},
method::ProgressiveHedging.Method,
::ProgressiveHedging,
)::UnitCommitmentInstance
comm = MPI.COMM_WORLD
mpi = ProgressiveHedging.MpiInfo(comm)
mpi = MpiInfo(comm)
(length(paths) % mpi.nprocs == 0) || error(
"Number of processes $(mpi.nprocs) is not a divisor of $(length(paths))",
)